How to save game data

support for the ARM toolchain
Post Reply
codycox.c
Posts: 49
Joined: Thu Mar 08, 2012 2:26 am

How to save game data

Post by codycox.c » Thu May 17, 2012 10:03 pm

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?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: How to save game data

Post by WinterMute » Fri May 18, 2012 11:20 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest