mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Error and warnibg messages functions
This commit is contained in:
parent
3d5a9ae44b
commit
25ab02e6ed
2 changed files with 11 additions and 0 deletions
|
|
@ -110,3 +110,12 @@ void crash(const char* reason, Exception::Type t, bool do_exp){
|
|||
throw Exception(t, msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void ErrorMsg(const char* message){
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", message, NULL);
|
||||
}
|
||||
|
||||
void WarnMsg(const char* message){
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, "Warning", message, NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
#include "exception.h"
|
||||
void crash(const char* reason, Exception::Type t, bool do_exp);
|
||||
void ErrorMsg(const char* message);
|
||||
void WarnMsg(const char* message);
|
||||
|
|
|
|||
Loading…
Reference in a new issue