Error and warnibg messages functions
This commit is contained in:
parent
3d5a9ae44b
commit
25ab02e6ed
|
|
@ -110,3 +110,12 @@ void crash(const char* reason, Exception::Type t, bool do_exp){
|
||||||
throw Exception(t, msg);
|
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"
|
#include "exception.h"
|
||||||
void crash(const char* reason, Exception::Type t, bool do_exp);
|
void crash(const char* reason, Exception::Type t, bool do_exp);
|
||||||
|
void ErrorMsg(const char* message);
|
||||||
|
void WarnMsg(const char* message);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue