Search found 8 matches

by ain faren lasen
Mon Apr 27, 2009 4:02 pm
Forum: Bug Reports
Topic: libnds: glTexImage2D use of DynamicArray
Replies: 3
Views: 3817

Re: libnds: glTexImage2D use of DynamicArray

I also want to suggest something ...

Shouldn't

Code: Select all

void DynamicArrayDelete(DynamicArray* v)
{
	if(v->data) free(v->data);
}
rather be

Code: Select all

void DynamicArrayDelete(DynamicArray* v)
{
	if(v->data) free(v->data);
	v->cur_size = 0;
}
?

Regards,
ain
by ain faren lasen
Fri Mar 27, 2009 1:19 pm
Forum: libfat
Topic: fseek() doesn't work any more as it should
Replies: 6
Views: 8309

Re: fseek() doesn't work any more as it should

Works for me. :/
by ain faren lasen
Wed Mar 25, 2009 10:03 pm
Forum: libfat
Topic: fseek() doesn't work any more as it should
Replies: 6
Views: 8309

Re: fseek() doesn't work any more as it should

NightFox wrote:Including #include <filesystem.h> then adding you code i just get a erro compiling
You get a linker error, not compiler error. :) You need to add the filesystem lib to your make file, just set "-lfilesystem" before "-lfat".

HTH,
ain
by ain faren lasen
Tue Mar 24, 2009 2:23 pm
Forum: libfat
Topic: fseek() doesn't work any more as it should
Replies: 6
Views: 8309

Re: fseek() doesn't work any more as it should

I got a solution for my problem, don't know if it helps in your case.

I now include filesystem.h and write the following:

Code: Select all

if(!nitroFSInit())
{
   if(!fatInitDefault())
   return false;
}
... instead of initialising libfat only. This way it works on No$GBA and on hardware.

HTH,
ain
by ain faren lasen
Sun Mar 01, 2009 8:24 pm
Forum: libfat
Topic: fseek() doesn't work any more as it should
Replies: 6
Views: 8309

fseek() doesn't work any more as it should

Hi, I just updated devkitpro to the new version, and now my small homebrew project for the NDS doesn't work anymore on the No$GBA. To be precise, the line fseek (f , 0 , SEEK_END); returns garbage now - it returns a size in the range of ~2GB. But it fails only on the No$GBA! (I use the same steps as...
by ain faren lasen
Sun Dec 28, 2008 5:37 pm
Forum: DS/DSi Development
Topic: nehe samples not working
Replies: 7
Views: 3476

Re: nehe samples not working

Some friend gave the equipment (+NDS) to me for some time, so I am not an expert in this matter. I upload the compiled .nds-files on the mini SD card, put this card into the M3 Movie Player cartridge (slot-2) (in combination with a slot-1 PassCard) and start the NDS lite. Then I start the file, e.g....
by ain faren lasen
Sun Dec 28, 2008 4:30 pm
Forum: DS/DSi Development
Topic: nehe samples not working
Replies: 7
Views: 3476

Re: nehe samples not working

Yeah ... used the windows installer.
by ain faren lasen
Sun Dec 28, 2008 3:11 pm
Forum: DS/DSi Development
Topic: nehe samples not working
Replies: 7
Views: 3476

nehe samples not working

Hi,

I just build some of the 3D examples and learned that the NeHe lessons 1 to 5 work perfectly, but after that they're broken (black/white screen, nothing shown on the NDS). As other examples with texturing don't seem to work I think that may be the culprit. But perhaps I'm wrong.

- AFL