mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Simplify fsdrive code
This commit is contained in:
parent
f184ad5701
commit
1889f4fd57
@ -91,7 +91,7 @@ bool GetRootDirContentsWorker(DirStruct* contents) {
|
||||
GetVCartTypeString(carttype);
|
||||
|
||||
// virtual root objects hacked in
|
||||
for (u32 i = 0; (i < NORM_FS+VIRT_FS) && (n_entries < MAX_DIR_ENTRIES); i++) {
|
||||
for (u32 i = 0; (i < countof(drvnum)) && (n_entries < MAX_DIR_ENTRIES); i++) {
|
||||
DirEntry* entry = &(contents->entry[n_entries]);
|
||||
if (!DriveType(drvnum[i])) continue; // drive not available
|
||||
entry->p_name = 4;
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#define NORM_FS 10
|
||||
#define IMGN_FS 3 // image normal filesystems
|
||||
#define VIRT_FS 13
|
||||
|
||||
// primary drive types
|
||||
#define DRV_UNKNOWN (0<<0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user