From 25ab02e6edc7d04324aa129ed59434a37bb91093 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Sun, 31 May 2026 23:57:09 +0300 Subject: [PATCH] Error and warnibg messages functions --- src/meow.cpp | 9 +++++++++ src/meow.h | 2 ++ 2 files changed, 11 insertions(+) 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);