WIP CrashReporter, misc refactoring

This commit is contained in:
Regalis
2015-09-19 15:14:47 +03:00
parent 16bf562837
commit f6966f06c3
86 changed files with 1616 additions and 631 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ namespace Subsurface
}
else
{
File.Copy(Game1.GameSession.Submarine.FilePath, tempPath + "\\map.gz");
File.Copy(GameMain.GameSession.Submarine.FilePath, tempPath + "\\map.gz");
}
}
catch (Exception e)
@@ -48,7 +48,7 @@ namespace Subsurface
try
{
Game1.GameSession.Save(tempPath + "\\gamesession.xml");
GameMain.GameSession.Save(tempPath + "\\gamesession.xml");
}
catch (Exception e)
@@ -76,7 +76,7 @@ namespace Subsurface
DecompressToDirectory(filePath, tempPath, null);
Submarine selectedMap = Submarine.Load(tempPath +"\\map.gz");
Game1.GameSession = new GameSession(selectedMap, fileName, tempPath + "\\gamesession.xml");
GameMain.GameSession = new GameSession(selectedMap, fileName, tempPath + "\\gamesession.xml");
//Directory.Delete(tempPath, true);
}