diff options
| author | Jason <[email protected]> | 2017-07-22 23:43:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-22 23:43:39 +0200 |
| commit | 5afd2ec6c6d7c458c1caffc55566d4365602c122 (patch) | |
| tree | b9e2c5f7861799b7b5f209046f97052493565734 /TimeHACK.Main/Program.cs | |
| parent | 7b12feef44adfcafd46d651adcd3e8fe11cb8523 (diff) | |
| parent | c97b5bddf841573e92c67fd2d325ca44825351f0 (diff) | |
| download | histacom2-5afd2ec6c6d7c458c1caffc55566d4365602c122.tar.gz histacom2-5afd2ec6c6d7c458c1caffc55566d4365602c122.tar.bz2 histacom2-5afd2ec6c6d7c458c1caffc55566d4365602c122.zip | |
Merge pull request #133 from Alex-TIMEHACK/master
Done a lot of work on the Windows ExplorerS
Diffstat (limited to 'TimeHACK.Main/Program.cs')
| -rw-r--r-- | TimeHACK.Main/Program.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index 086c084..cba20d6 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -13,6 +13,7 @@ using TimeHACK.OS.Win95.Win95Apps; using TimeHACK.Engine; using TimeHACK.Engine.Template; using System.Drawing; +using TimeHACK.SaveDialogs; namespace TimeHACK { @@ -58,15 +59,21 @@ namespace TimeHACK //MySaveData = (TimeHACK.Engine.GameSave.SaveData)JsonConvert.DeserializeObject(TheJSON, MySaveData.GetType()); //MessageBox.Show(MySaveData.OS.ToString()); + + Engine.SaveSystem.troubleshooter = new SaveFileTroubleShooter(); Application.EnableVisualStyles(); Application.Run(title); } public static string OpenFileExplorerAsDialogAndReturnGivenPath() { - WinClassicWindowsExplorer we = new WinClassicWindowsExplorer(); - - WinClassic app = wm.StartWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true, true); + if (SaveSystem.CurrentSave.CurrentOS == "95") + { + WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true, true); + } else { + WinClassic app = wm.StartWin95(new WinClassicWindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true, true); + } + try { return WindowsExplorerReturnPath; @@ -90,6 +97,7 @@ namespace TimeHACK public static void AddTaskbarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon) { TitleScreen.frm95.AddTaskBarItem(Application, ApplicationID, ApplicationName, ApplicationIcon); + TitleScreen.frm98.AddTaskBarItem(Application, ApplicationID, ApplicationName, ApplicationIcon); } public static void NonImportantApp_Closing(object sender, FormClosingEventArgs e) |
