Pass the actual arg-str start to envSetNextLoad().
This commit is contained in:
parent
77baa0c32f
commit
52a012c50f
@ -17,7 +17,7 @@ static void launchFile(const char* path, argData_s* args)
|
|||||||
/*if (strncmp(path, "sdmc:/",6) == 0)
|
/*if (strncmp(path, "sdmc:/",6) == 0)
|
||||||
path += 5;*/
|
path += 5;*/
|
||||||
memcpy(argBuf, args->buf, sizeof(args->buf));
|
memcpy(argBuf, args->buf, sizeof(args->buf));
|
||||||
Result rc = envSetNextLoad(path, (char*)argBuf);
|
Result rc = envSetNextLoad(path, (char*)&argBuf[1]);
|
||||||
if(R_FAILED(rc)) fatalSimple(rc);//TODO: How should failing be handled?
|
if(R_FAILED(rc)) fatalSimple(rc);//TODO: How should failing be handled?
|
||||||
uiExitLoop();
|
uiExitLoop();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user