Scripting: Properly deinit filesystems on reboot / poweroff

This commit is contained in:
d0k3 2017-09-08 15:24:29 +02:00
parent 1838c608e1
commit 01bc03244c

View File

@ -625,8 +625,12 @@ bool run_cmd(cmd_id id, u32 flags, char** argv, char* err_str) {
AutoEmuNandBase(true); AutoEmuNandBase(true);
InitExtFS(); InitExtFS();
} else if (id == CMD_ID_REBOOT) { } else if (id == CMD_ID_REBOOT) {
DeinitExtFS();
DeinitSDCardFS();
Reboot(); Reboot();
} else if (id == CMD_ID_POWEROFF) { } else if (id == CMD_ID_POWEROFF) {
DeinitExtFS();
DeinitSDCardFS();
PowerOff(); PowerOff();
} else { // command not recognized / bad number of arguments } else { // command not recognized / bad number of arguments
ret = false; ret = false;