From 0b693b336592fc0dd61b171647ede5cbb5f529bd Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 12 Feb 2018 19:22:15 +0300 Subject: [PATCH] no message --- src/console.c | 6 +++--- src/studio.c | 5 +++++ src/studio.h | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/console.c b/src/console.c index 1a3476a..f392349 100644 --- a/src/console.c +++ b/src/console.c @@ -2992,9 +2992,9 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config, { if(~argp & 1 << i) { - // char buf[256]; - // sprintf(buf, "parameter or file not processed: %s\n", argv[i]); - // SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, "Warning", buf, NULL); + char buf[256]; + sprintf(buf, "parameter or file not processed: %s\n", argv[i]); + showMessageBox("Warning", buf); } } } diff --git a/src/studio.c b/src/studio.c index 83e71e5..3f281b6 100644 --- a/src/studio.c +++ b/src/studio.c @@ -3291,4 +3291,9 @@ void netDirRequest(Net* net, const char* path, ListCallback callback, void* data NetDirData netDirData = {callback, data}; onDirResponse(buffer, size, &netDirData); +} + +void showMessageBox(const char* title, const char* message) +{ + // SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, "Warning", buf, NULL); } \ No newline at end of file diff --git a/src/studio.h b/src/studio.h index 68d6f07..d4e5230 100644 --- a/src/studio.h +++ b/src/studio.h @@ -267,3 +267,4 @@ typedef struct NetVersion netVersionRequest(Net* net); void netDirRequest(Net* net, const char* path, ListCallback callback, void* data); +void showMessageBox(const char* title, const char* message); \ No newline at end of file