diff options
author | Max Horn | 2008-09-15 22:43:20 +0000 |
---|---|---|
committer | Max Horn | 2008-09-15 22:43:20 +0000 |
commit | 05d78c26b442bccc1d1e773591900ad0d2087278 (patch) | |
tree | 8c44d59eef4897d8409ab216a5e9760ab4160038 /backends/platform/ds/arm9/source/ramsave.cpp | |
parent | 880bc085b160c642e360332546fe90f47a5ea852 (diff) | |
download | scummvm-rg350-05d78c26b442bccc1d1e773591900ad0d2087278.tar.gz scummvm-rg350-05d78c26b442bccc1d1e773591900ad0d2087278.tar.bz2 scummvm-rg350-05d78c26b442bccc1d1e773591900ad0d2087278.zip |
DS: Backported 0.12 changes to trunk
svn-id: r34568
Diffstat (limited to 'backends/platform/ds/arm9/source/ramsave.cpp')
-rw-r--r-- | backends/platform/ds/arm9/source/ramsave.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/source/ramsave.cpp b/backends/platform/ds/arm9/source/ramsave.cpp index 30c3a06721..a9f4e3d2fc 100644 --- a/backends/platform/ds/arm9/source/ramsave.cpp +++ b/backends/platform/ds/arm9/source/ramsave.cpp @@ -19,7 +19,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ - // Save in order 1,2,3,4,larger 2,5 +#ifdef GBA_SRAM_SAVE + + #include "ramsave.h" #include "nds.h" #include "compressor/lz.h" @@ -237,7 +239,7 @@ uint32 DSSaveFile::write(const void *buf, uint32 size) { return size; } -bool DSSaveFile::matches(char* prefix, int num) { +bool DSSaveFile::matches(const char *prefix, int num) { char str[16]; if (isValid()) { sprintf(str, "%s%02d", prefix, num); @@ -251,7 +253,7 @@ bool DSSaveFile::matches(char* prefix, int num) { } } -bool DSSaveFile::matches(char* filename) { +bool DSSaveFile::matches(const char *filename) { if (isValid()) { return !strcmp(save.name, filename); } else { @@ -532,3 +534,5 @@ int DSSaveFileManager::getExtraData() { return 0; } } + +#endif |