add Game.ShowRuntimeError method

remotes/1695061714407202320/main
cosmonaut 2023-06-29 11:30:32 -07:00
parent f761d4f76e
commit bf3ad0c8b0
1 changed files with 10 additions and 0 deletions

View File

@ -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;