mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Scripting: Properly deinit filesystems on reboot / poweroff
This commit is contained in:
parent
1838c608e1
commit
01bc03244c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user