Skip to content

Commit

Permalink
Start ROM passed via argv
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Aug 4, 2023
1 parent 6611fbc commit f8eb158
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/nds/PokeMini_NDS.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ int main(int argc, char **argv)
//CommandLine.low_battery = 2; // NDS can report battery status
CommandLine.lcdfilter = 0; // Disable LCD filtering
CommandLine.lcdmode = LCDMODE_3SHADES;
if (argc >= 1) {
strcpy(CommandLine.min_file, argv[1]); // Start ROM passed via argv
}
CommandLineConfFile("pokemini.cfg", "pokemini_nds.cfg", CustomConf);
JoystickSetup("NDS", 0, 30000, NDS_KeysNames, 12, NDS_KeysMapping);
keysSetRepeat(30, 8);
Expand Down

0 comments on commit f8eb158

Please sign in to comment.