all repos — mgba @ 1f7616831799b550653b0aca61e6c714cba0383c

mGBA Game Boy Advance Emulator

Wii: Add argv loading
Jeffrey Pfau jeffrey@endrift.com
Sat, 09 Jan 2016 02:09:41 -0800
commit

1f7616831799b550653b0aca61e6c714cba0383c

parent

f5d6d6fbc90ee44bd396b7baea528621af019e3c

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M src/platform/wii/main.csrc/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);