gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > wierd bug with NE + libfat

#166450 - hacker013 - Sun Feb 08, 2009 11:39 am

hey everybody,

The bug is when I init fat with:
Code:

if(fatInitDefault()==false)
{
NE_FATAL_ERROR("Fatsystem initing .... failed.");
}

This is the first thing what got inited. When it shows the splash screens loaded from fat it goes perfect but then it shows my error message: Fatsystem initing .... failed.

Does somebody knows what i'm doing wrong?
_________________
Website / Blog

Let the nds be with you.

#166481 - wintermute - Sun Feb 08, 2009 7:43 pm

you're only supposed to call fatInitDefault once at the start of your application.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#166483 - hacker013 - Sun Feb 08, 2009 8:17 pm

no, i'm only calling it ones, it is the first thing what got inited.
_________________
Website / Blog

Let the nds be with you.

#166498 - wintermute - Sun Feb 08, 2009 10:49 pm

The symptoms you describe -

Quote:

When it shows the splash screens loaded from fat it goes perfect but then it shows my error message: Fatsystem initing .... failed.


can only be created by calling fatInitDefault twice.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#166620 - silent_code - Thu Feb 12, 2009 12:10 am

On hardware?
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#166622 - elhobbs - Thu Feb 12, 2009 2:48 am

his actual sentence says that he is calling it twice. it needed to be called once for the image to be loaded from fat and then he gets an error when he calls it again.