mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
add timerMs function, unmounting emu does not unmount sd
This commit is contained in:
parent
e98a3bba68
commit
502a246949
2 changed files with 6 additions and 4 deletions
|
@ -392,6 +392,10 @@ scriptFunction(funcSignSave){
|
|||
return varInt((saveCommit(vars[0].stringType).err));
|
||||
}
|
||||
|
||||
scriptFunction(funcGetMs){
|
||||
return varInt(get_tmr_ms());
|
||||
}
|
||||
|
||||
u8 fiveInts[] = {IntType, IntType, IntType, IntType, IntType};
|
||||
u8 singleIntArray[] = { IntArrayType };
|
||||
u8 singleInt[] = { IntType };
|
||||
|
@ -443,6 +447,7 @@ functionStruct_t scriptFunctions[] = {
|
|||
{"mmcRestore", funcMmcRestore, 3, mmcReadWrite},
|
||||
{"ncaGetType", funcGetNcaType, 1, singleStr},
|
||||
{"saveSign", funcSignSave, 1, singleStr},
|
||||
{"timerMs", funcGetMs, 0, NULL},
|
||||
// Left from old: keyboard(?)
|
||||
};
|
||||
|
||||
|
|
|
@ -175,10 +175,7 @@ out:
|
|||
|
||||
int emummc_storage_end(sdmmc_storage_t *storage)
|
||||
{
|
||||
if (!emu_cfg.enabled || h_cfg.emummc_force_disable)
|
||||
sdmmc_storage_end(storage);
|
||||
else
|
||||
sd_end();
|
||||
sdmmc_storage_end(storage);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue