From f6a7037dbcd24d23bd5572a44283a482dff70ce2 Mon Sep 17 00:00:00 2001 From: strongleong Date: Sun, 6 Feb 2022 23:51:12 +1100 Subject: [PATCH] Code cleaner results --- ScrapModLoader/App.xaml.cs | 14 +++++--------- ScrapModLoader/MainWindow.xaml.cs | 2 +- ScrapModLoader/Utils.cs | 3 --- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/ScrapModLoader/App.xaml.cs b/ScrapModLoader/App.xaml.cs index 670614c..18ddd5b 100644 --- a/ScrapModLoader/App.xaml.cs +++ b/ScrapModLoader/App.xaml.cs @@ -1,15 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; +using System.Windows; -namespace ScrapModLoader { +namespace ScrapModLoader +{ /// /// Interaction logic for App.xaml /// - public partial class App : Application { + public partial class App : Application + { } } diff --git a/ScrapModLoader/MainWindow.xaml.cs b/ScrapModLoader/MainWindow.xaml.cs index b2c1a74..3970de4 100644 --- a/ScrapModLoader/MainWindow.xaml.cs +++ b/ScrapModLoader/MainWindow.xaml.cs @@ -163,7 +163,7 @@ namespace ScrapModLoader if (Windowed.IsChecked ?? false) args = "-fullscreen:0"; - String gamePath = modsLauncher.SelectedGameVersion == "1.0" ? + String gamePath = modsLauncher.SelectedGameVersion == "1.0" ? modsLauncher.ScraplandPath : modsLauncher.ScraplandRemasteredPath; Process.Start(gamePath + @"\bin\Scrap.exe", args); diff --git a/ScrapModLoader/Utils.cs b/ScrapModLoader/Utils.cs index 7eee65b..13fc653 100644 --- a/ScrapModLoader/Utils.cs +++ b/ScrapModLoader/Utils.cs @@ -1,9 +1,6 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; -using System.IO; - -using Microsoft.Win32; namespace ScrapModLoader {