diff options
author | Bertrand Augereau | 2008-05-14 06:59:23 +0000 |
---|---|---|
committer | Bertrand Augereau | 2008-05-14 06:59:23 +0000 |
commit | 5f2e26e5774edc1f77b68db1ba9e8d264d385967 (patch) | |
tree | a9901ab34d68ce0d616bd9887c227ceb320978eb /backends/platform/ds | |
parent | d942fd42bb06c621a53eca06f40cb0fcffa54ea8 (diff) | |
download | scummvm-rg350-5f2e26e5774edc1f77b68db1ba9e8d264d385967.tar.gz scummvm-rg350-5f2e26e5774edc1f77b68db1ba9e8d264d385967.tar.bz2 scummvm-rg350-5f2e26e5774edc1f77b68db1ba9e8d264d385967.zip |
NDS : Compilation fixes
svn-id: r32098
Diffstat (limited to 'backends/platform/ds')
-rw-r--r-- | backends/platform/ds/arm9/source/gbampsave.cpp | 5 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/ramsave.cpp | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/backends/platform/ds/arm9/source/gbampsave.cpp b/backends/platform/ds/arm9/source/gbampsave.cpp index fbe0c69944..3ee572f0f7 100644 --- a/backends/platform/ds/arm9/source/gbampsave.cpp +++ b/backends/platform/ds/arm9/source/gbampsave.cpp @@ -146,7 +146,7 @@ GBAMPSaveFileManager::~GBAMPSaveFileManager() { GBAMPSaveFile* GBAMPSaveFileManager::openSavefile(char const* name, bool saveOrLoad) { char fileSpec[128]; - strcpy(fileSpec, getSavePath()); + strcpy(fileSpec, getSavePath().c_str()); if (fileSpec[strlen(fileSpec) - 1] == '/') { sprintf(fileSpec, "%s%s", getSavePath(), name); @@ -169,7 +169,7 @@ Common::StringList GBAMPSaveFileManager::listSavefiles(const char *pattern) { enum { TYPE_NO_MORE = 0, TYPE_FILE = 1, TYPE_DIR = 2 }; char name[256]; - DS::std_cwd((char *) getSavePath()); + DS::std_cwd((char*)getSavePath().c_str()); //TODO : Check this suspicious const-cast // consolePrintf("Save path: '%s', pattern: '%s'\n", getSavePath(),pattern); @@ -177,7 +177,6 @@ Common::StringList GBAMPSaveFileManager::listSavefiles(const char *pattern) { Common::StringList list; - do { if (fileType == TYPE_FILE) { diff --git a/backends/platform/ds/arm9/source/ramsave.cpp b/backends/platform/ds/arm9/source/ramsave.cpp index 8bcc34f9af..a9ac773dd2 100644 --- a/backends/platform/ds/arm9/source/ramsave.cpp +++ b/backends/platform/ds/arm9/source/ramsave.cpp @@ -383,16 +383,24 @@ void DSSaveFileManager::deleteFile(char* name) { flushToSaveRAM(); } -void DSSaveFileManager::removeSavefile(const char *filename) { - TODO: Implement this. Most likely, you just have to use the code of deleteFile? +bool DSSaveFileManager::removeSavefile(const char *filename) { + consolePrintf("DSSaveFileManager::removeSavefile : Not implemented yet.\n"); + assert(false); + //TODO: Implement this. Most likely, you just have to use the code of deleteFile? + return false; } Common::StringList DSSaveFileManager::listSavefiles(const char *pattern) { + consolePrintf("DSSaveFileManager::listSavefiles : Not implemented yet.\n"); + assert(false); + return Common::StringList(); + /* TODO: Implement this. If you don't understand what it should do, just ask (e.g. on scummvm-devel or Fingolfin). It should be pretty simple if you use Common::matchString from common/util.h and read the Doxygen docs, then combine this with the old code below... + */ /* void DSSaveFileManager::listSavefiles(const char *prefix, bool *marks, int num) { |