some minor wii-specific adjustments to startup

This commit is contained in:
Gered 2016-10-30 22:36:28 -04:00
parent 3fead3d718
commit 9def4afc2e
2 changed files with 21 additions and 1 deletions

View file

@ -26,6 +26,12 @@
#include "i_system.h"
#include "m_argv.h"
#ifdef GEKKO
#include <gccore.h>
#include <fat.h>
#include <debug.h>
#endif
//
// D_DoomMain()
// Not a globally visible function, just included for source reference,
@ -36,7 +42,16 @@ void D_DoomMain (void);
int main(int argc, char **argv)
{
// save arguments
#ifdef GEKKO
#ifdef DEBUG_GDB
DEBUG_Init(GDBSTUB_DEVICE_USB, 1);
_break();
#endif
fatInitDefault();
#endif
// save arguments
myargc = argc;
myargv = argv;

View file

@ -2098,6 +2098,11 @@ static char *GetDefaultConfigDir(void)
}
else
#endif /* #ifndef _WIN32 */
#ifdef GEKKO
{
return M_StringDuplicate("sd:/apps/chocolate-doom/");
}
#endif
{
return M_StringDuplicate("");
}