From 0869194b607dfaca130b5f551b42d216ef72a1ed Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 18 Dec 2014 18:15:26 +0000 Subject: [PATCH] Wii: Add non-interactive cases to wm_msgbox and wm_ynbox. git-svn-id: https://svn.eduke32.com/eduke32@4825 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 3 +++ polymer/eduke32/build/src/sdlayer12.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 83ed35ab2..16d060bbe 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -182,6 +182,9 @@ int32_t wm_msgbox(const char *name, const char *fmt, ...) } # endif return SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, name, buf, NULL); +#elif defined GEKKO + puts(buf); + return 0; #endif puts(buf); puts(" (press Return or Enter to continue)"); diff --git a/polymer/eduke32/build/src/sdlayer12.c b/polymer/eduke32/build/src/sdlayer12.c index dbba20baa..779e877af 100644 --- a/polymer/eduke32/build/src/sdlayer12.c +++ b/polymer/eduke32/build/src/sdlayer12.c @@ -22,6 +22,10 @@ int32_t wm_ynbox(const char *name, const char *fmt, ...) if (r >= 0) return r; } +#elif defined GEKKO + puts(buf); + puts("Assuming yes..."); + return 1; #endif // NOTE: this is dead code for most #ifdef cases above.