Wii: Add argv loading
Jeffrey Pfau jeffrey@endrift.com
Sat, 09 Jan 2016 02:09:41 -0800
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
src/platform/wii/main.c
→
src/platform/wii/main.c
@@ -131,7 +131,7 @@ scaleFactor = hfactor;
} }; -int main() { +int main(int argc, char* argv[]) { VIDEO_Init(); PAD_Init(); WPAD_Init();@@ -358,7 +358,11 @@ .unpaused = _unpaused,
.pollGameInput = _pollGameInput }; GBAGUIInit(&runner, "wii"); - GBAGUIRunloop(&runner); + if (argc > 1) { + GBAGUIRun(&runner, argv[1]); + } else { + GBAGUIRunloop(&runner); + } GBAGUIDeinit(&runner); free(fifo);