From f8eb158f7082d80739075baa3653afc14fdf3d70 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Thu, 3 Aug 2023 21:56:31 -0600 Subject: [PATCH] Start ROM passed via argv --- platform/nds/PokeMini_NDS.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/nds/PokeMini_NDS.c b/platform/nds/PokeMini_NDS.c index a808bee..4fae846 100644 --- a/platform/nds/PokeMini_NDS.c +++ b/platform/nds/PokeMini_NDS.c @@ -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);