Wii: Add argv loading

This commit is contained in:
Jeffrey Pfau 2016-01-09 02:09:41 -08:00
parent f5d6d6fbc9
commit 1f76168317
1 changed files with 6 additions and 2 deletions

View File

@ -131,7 +131,7 @@ static void reconfigureScreen(GXRModeObj* vmode) {
}
};
int main() {
int main(int argc, char* argv[]) {
VIDEO_Init();
PAD_Init();
WPAD_Init();
@ -358,7 +358,11 @@ int main() {
.pollGameInput = _pollGameInput
};
GBAGUIInit(&runner, "wii");
GBAGUIRunloop(&runner);
if (argc > 1) {
GBAGUIRun(&runner, argv[1]);
} else {
GBAGUIRunloop(&runner);
}
GBAGUIDeinit(&runner);
free(fifo);