diff --git a/src/meow.cpp b/src/meow.cpp index cea695b..800704f 100644 --- a/src/meow.cpp +++ b/src/meow.cpp @@ -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); +} diff --git a/src/meow.h b/src/meow.h index 897e512..53afde0 100644 --- a/src/meow.h +++ b/src/meow.h @@ -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);