forked from MoonsideGames/MoonWorks
add Game.ShowRuntimeError method
parent
f761d4f76e
commit
bf3ad0c8b0
10
src/Game.cs
10
src/Game.cs
|
@ -299,6 +299,16 @@ namespace MoonWorks
|
|||
Inputs.RemoveGamepad(evt.cdevice.which);
|
||||
}
|
||||
|
||||
public static void ShowRuntimeError(string title, string message)
|
||||
{
|
||||
SDL.SDL_ShowSimpleMessageBox(
|
||||
SDL.SDL_MessageBoxFlags.SDL_MESSAGEBOX_ERROR,
|
||||
title ?? "",
|
||||
message ?? "",
|
||||
IntPtr.Zero
|
||||
);
|
||||
}
|
||||
|
||||
private TimeSpan AdvanceElapsedTime()
|
||||
{
|
||||
long currentTicks = gameTimer.Elapsed.Ticks;
|
||||
|
|
Loading…
Reference in New Issue