mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 13:20:57 -06:00
load shit from command line
This commit is contained in:
@ -1006,7 +1006,6 @@ int main(int argc, char** argv)
|
|||||||
emuThread->start();
|
emuThread->start();
|
||||||
emuThread->emuPause(true);
|
emuThread->emuPause(true);
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
char* file = argv[1];
|
char* file = argv[1];
|
||||||
@ -1014,32 +1013,25 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if (!strcasecmp(ext, "nds") || !strcasecmp(ext, "srl"))
|
if (!strcasecmp(ext, "nds") || !strcasecmp(ext, "srl"))
|
||||||
{
|
{
|
||||||
strncpy(ROMPath[0], file, 1023);
|
int res = Frontend::LoadROM(file, Frontend::ROMSlot_NDS);
|
||||||
ROMPath[0][1023] = '\0';
|
|
||||||
|
|
||||||
//SetupSRAMPath(0);
|
if (res == Frontend::Load_OK)
|
||||||
|
|
||||||
//if (NDS::LoadROM(ROMPath[0], SRAMPath[0], Config::DirectBoot))
|
|
||||||
// Run();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (argc > 2)
|
|
||||||
{
|
|
||||||
file = argv[2];
|
|
||||||
ext = &file[strlen(file)-3];
|
|
||||||
|
|
||||||
if (!strcasecmp(ext, "gba"))
|
|
||||||
{
|
{
|
||||||
strncpy(ROMPath[1], file, 1023);
|
if (argc > 2)
|
||||||
ROMPath[1][1023] = '\0';
|
{
|
||||||
|
file = argv[2];
|
||||||
|
ext = &file[strlen(file)-3];
|
||||||
|
|
||||||
//SetupSRAMPath(1);
|
if (!strcasecmp(ext, "gba"))
|
||||||
|
{
|
||||||
|
Frontend::LoadROM(file, Frontend::ROMSlot_GBA);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//NDS::LoadGBAROM(ROMPath[1], SRAMPath[1]);
|
emuThread->emuRun();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
int ret = melon.exec();
|
int ret = melon.exec();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user