Don't mount NitroFS, if not found in the ROM

This commit is contained in:
RocketRobz 2020-02-04 20:00:46 -07:00
parent 6226892784
commit 81e6b7afb0

View File

@ -160,8 +160,15 @@ nitroFSInit(const char *ndsfile)
hasLoader = false;
}
setvbuf(ndsFile, NULL, _IONBF, 0); //we dont need double buffs u_u
AddDevice(&nitroFSdevoptab);
return (1);
if (fntOffset==0 || fatOffset==0)
{
return (0);
}
else
{
AddDevice(&nitroFSdevoptab);
return (1);
}
}
}
return (0);