Page 1 of 1
How to save game data
Posted: Thu May 17, 2012 10:03 pm
by codycox.c
Can anybody explain to me how to save data like in a text file or something similar. I know how to make text files in c programing for the computer?
Re: How to save game data
Posted: Fri May 18, 2012 11:20 am
by WinterMute
You do it in exactly the same way on the DS. The only extra thing you need to do is add fatInitDefault() at the start of your program and link with libfat.
There's an example that does a directory listing found in examples/nds/filesystem/libfat/libfatdir which has the necessary function call and appropriate LIBS line.