Saving game data

ENAY
Posts: 15
Joined: Mon Aug 16, 2010 7:29 am
Location: Japan

Re: Saving game data

Post by ENAY » Sun May 22, 2011 4:17 am

That's what I thought. I can only assume then it's because I am running in an emulator on the PC.
It doesn't seem to matter what text string I put in there, whenever I call fopen the pointer is always null.

No idea what's causing it but in the end I found it easier to just print the contents of the save file onto the screen for debugging purposes than reading the file directory. Saving wear and tear having to continually put the memory in and out of the PC and DS.

Thanks for the comment zeromus :)

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: Saving game data

Post by lazyprogramer » Sun May 22, 2011 2:51 pm

Ah, now I understand!!
You thought you can use your c disk if you run a nds file in emulator on PC ?!
WRONG!! :evil:
If you run a nds file on PC there's still no C disk for the emulator, because the emulator only emulates the nds hardware!

If you want to open the file on PC you have to create an exe file! However that's not part of the libnds / devkitPro forum!

digithree

Re: Saving game data

Post by digithree » Mon May 30, 2011 3:08 pm

zeromus wrote:that code should work. you must be confused, or you must have no c: drive. unless, of course, by running on PC, you mean, running on an emulator. in which case you are very badly confused.
unhelpful

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

Re: Saving game data

Post by zeromus » Thu Jun 02, 2011 4:49 am

that was for enay, not you

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests