mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix breaking NAND when unmounting NitroFS (#144)
This commit is contained in:
parent
26661dc6b3
commit
21c8ad9e54
@ -413,7 +413,6 @@ void nitroUnmount(void) {
|
||||
imgUnmount();
|
||||
|
||||
ownNitroFSMounted = 2;
|
||||
fatUnmount("nitro");
|
||||
nitroMounted = false;
|
||||
}
|
||||
|
||||
|
||||
@ -68,7 +68,7 @@ u32 fntOffset; //offset to start of filename table
|
||||
u32 fatOffset; //offset to start of file alloc table
|
||||
bool hasLoader; //single global nds filehandle (is null if not in dldi/fat mode)
|
||||
u16 chdirpathid; //default dir path id...
|
||||
FILE *ndsFile;
|
||||
FILE *ndsFile = NULL;
|
||||
off_t ndsFileLastpos; //Used to determine need to fseek or not
|
||||
|
||||
devoptab_t nitroFSdevoptab = {
|
||||
@ -136,7 +136,10 @@ nitroFSInit(const char *ndsfile)
|
||||
char romstr[0x10];
|
||||
chdirpathid = NITROROOT;
|
||||
ndsFileLastpos = 0;
|
||||
ndsFile = NULL;
|
||||
if(ndsFile != NULL) {
|
||||
fclose(ndsFile);
|
||||
ndsFile = NULL;
|
||||
}
|
||||
if (ndsfile != NULL)
|
||||
{
|
||||
if ((ndsFile = fopen(ndsfile, "rb")))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user