mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Handle /Nintendo 3DS folder deletion
This commit is contained in:
parent
8f5cc140b3
commit
a9f3b1d6ea
@ -566,6 +566,8 @@ u32 GodMode() {
|
|||||||
// basic sanity checking
|
// basic sanity checking
|
||||||
if (!current_dir->n_entries) { // current dir is empty -> revert to root
|
if (!current_dir->n_entries) { // current dir is empty -> revert to root
|
||||||
*current_path = '\0';
|
*current_path = '\0';
|
||||||
|
DeinitExtFS(); // deinit and...
|
||||||
|
InitExtFS(); // reinitialize extended file system
|
||||||
GetDirContents(current_dir, current_path);
|
GetDirContents(current_dir, current_path);
|
||||||
cursor = 0;
|
cursor = 0;
|
||||||
if (!current_dir->n_entries) { // should not happen, if it does fail gracefully
|
if (!current_dir->n_entries) { // should not happen, if it does fail gracefully
|
||||||
|
Loading…
x
Reference in New Issue
Block a user