From 0af54bd67a4e1875084d79a63fe7a5288fc6ad7f Mon Sep 17 00:00:00 2001 From: d0k3 Date: Sun, 20 Aug 2017 15:32:16 +0200 Subject: [PATCH] NDS mount code cleanup --- source/game/nds.c | 2 +- source/game/nds.h | 2 +- source/virtual/vgame.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/game/nds.c b/source/game/nds.c index 58725f8..8f611c3 100644 --- a/source/game/nds.c +++ b/source/game/nds.c @@ -137,7 +137,7 @@ u32 NextNitroRomEntry(u32* fileid, u8** fnt_entry) { return 0; } -u32 ReadNitroRomEntry(u64* offset, u64* size, bool* is_dir, u32 fileid, u8* fnt_entry, TwlHeader* hdr, u8* fnt, u8* fat) { +u32 ReadNitroRomEntry(u64* offset, u64* size, bool* is_dir, u32 fileid, u8* fnt_entry, u8* fat) { // check for end of subtable if (!fnt_entry || !*fnt_entry) return 1; diff --git a/source/game/nds.h b/source/game/nds.h index 5e0cfec..7473e62 100644 --- a/source/game/nds.h +++ b/source/game/nds.h @@ -130,4 +130,4 @@ u32 GetTwlIcon(u8* icon, const TwlIconData* twl_icon); u32 FindNitroRomDir(u32 dirid, u32* fileid, u8** fnt_entry, TwlHeader* hdr, u8* fnt, u8* fat); u32 NextNitroRomEntry(u32* fileid, u8** fnt_entry); -u32 ReadNitroRomEntry(u64* offset, u64* size, bool* is_dir, u32 fileid, u8* fnt_entry, TwlHeader* hdr, u8* fnt, u8* fat); +u32 ReadNitroRomEntry(u64* offset, u64* size, bool* is_dir, u32 fileid, u8* fnt_entry, u8* fat); diff --git a/source/virtual/vgame.c b/source/virtual/vgame.c index f6b5fdc..d41b2da 100644 --- a/source/virtual/vgame.c +++ b/source/virtual/vgame.c @@ -820,7 +820,7 @@ bool ReadVGameDirNitro(VirtualFile* vfile, VirtualDir* vdir) { u8* fnt_entry = fnt + (vdir->offset >> 32); u32 fileid = vdir->index; bool is_dir; - if (ReadNitroRomEntry(&(vfile->offset), &(vfile->size), &is_dir, fileid, fnt_entry, twl, fnt, fat) == 0) { + if (ReadNitroRomEntry(&(vfile->offset), &(vfile->size), &is_dir, fileid, fnt_entry, fat) == 0) { if (!is_dir) vfile->offset += offset_nds; vfile->offset |= ((u64)(fnt_entry - fnt)) << 32; if (is_dir) vfile->flags |= VFLAG_DIR;