So I make something like that:
Code:
#include <fat.h>
#include <filesystem.h>
...
bool savePossible = false;
bool fatInitialized = false;
FILE *savefile = NULL;
...
int main(void) {
// savePossible = fatInitDefault();
if(nitroFSInit(NULL)){
chdir("nitro:/");
savePossible = true;
}
srand(time(NULL));
initGraph(); //here loading nitroFS resources and this is working fine
if(savePossible){
chdir("fat:/data/");
loadBest5(); //here loading topScore from the card on R4 works fine, but It doesn't work with Unlaunch and TWiLight Menu++ on DSi mode
fatInitialized = true;
}
gameMode = TITLE_SCREEN;
initTitleScreen();
....
On R4 card this method also works.
On DSi now it doesn't crash anymore, but It doesn't load/save score too. Any tips?