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
This commit is contained in:
hendricks266 2014-12-18 18:15:26 +00:00
parent 30407c8e87
commit 0869194b60
2 changed files with 7 additions and 0 deletions

View file

@ -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)");

View file

@ -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.