Homebrew My app fails to load any files from NitroFS on hardware

Poketard

Well-Known Member
OP
Member
Joined
Apr 3, 2013
Messages
180
Trophies
1
XP
1,490
Country
United States
nitroFSInit returns true, but fopen always returns NULL. This issue doesn't happen on emulator. Tested on Twilight menu and an Acekard 2i, same results on both.
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
pk11.us
XP
3,895
Country
United States
Are you running fatInitDefault() before nitroFSInit()? With the default devkitPro NitroFS library that breaks on hardware. nitroFSInit() will automatically call fatInitDefault() so it's safe to just remove that.

If you use the alternate NitroFS code (used in TWiLight Menu++, etc) which lets you specify a path to use then you will need to fatInitDefault() before calling it.
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
pk11.us
XP
3,895
Country
United States
I am not calling fatInitDefault, no. And yes, I am using the default devkitPro NitroFS library.
Hmm that's odd... Do you have nitro: in your file paths? (ex. "nitro:/file.txt")

iirc due to the order it initializes the filesystems in no$gba "/file.txt" (no drive specified) will be NitroFS where on hardware it'll be SD.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    I @ idonthave: :)