set default device so relative paths work in 3dmoo
This commit is contained in:
parent
4b4b781ec3
commit
88bef35b8f
@ -140,6 +140,8 @@ Result sdmcInit(void)
|
||||
|
||||
int dev = AddDevice(&sdmc_devoptab);
|
||||
|
||||
if (dev != -1) {
|
||||
setDefaultDevice(dev);
|
||||
if (__system_argc != 0 && __system_argv[0] != NULL)
|
||||
{
|
||||
if (FindDevice(__system_argv[0]) == dev)
|
||||
@ -153,6 +155,7 @@ Result sdmcInit(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user