Error and warnibg messages functions

This commit is contained in:
DepressedTWM 2026-05-31 23:57:09 +03:00
parent 3d5a9ae44b
commit 25ab02e6ed
2 changed files with 11 additions and 0 deletions

View file

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

View file

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