mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
debug stuff for launcher crash
This commit is contained in:
parent
ed06bc54f2
commit
a98766f55c
@ -123,9 +123,10 @@ namespace Launcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void SetScreen(Screen screen) {
|
public void SetScreen(Screen screen) {
|
||||||
|
Console.WriteLine("CLOSE CASE 1");
|
||||||
if (this.Screen != null)
|
if (this.Screen != null)
|
||||||
this.Screen.Dispose();
|
this.Screen.Dispose();
|
||||||
|
|
||||||
RedrawBackground();
|
RedrawBackground();
|
||||||
this.Screen = screen;
|
this.Screen = screen;
|
||||||
screen.Init();
|
screen.Init();
|
||||||
@ -183,8 +184,10 @@ namespace Launcher {
|
|||||||
Window.ProcessEvents();
|
Window.ProcessEvents();
|
||||||
if (!Window.Exists) break;
|
if (!Window.Exists) break;
|
||||||
if (ShouldExit) {
|
if (ShouldExit) {
|
||||||
if (Screen != null)
|
if (Screen != null) {
|
||||||
|
Console.WriteLine("CLOSE CASE 2");
|
||||||
Screen.Dispose();
|
Screen.Dispose();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user