[Scummvm-cvs-logs] SF.net SVN: scummvm: [32098] scummvm/trunk/backends/platform/ds/arm9/source

tramboi at users.sourceforge.net tramboi at users.sourceforge.net
Wed May 14 08:59:23 CEST 2008


Revision: 32098
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32098&view=rev
Author:   tramboi
Date:     2008-05-13 23:59:23 -0700 (Tue, 13 May 2008)

Log Message:
-----------
NDS : Compilation fixes

Modified Paths:
--------------
    scummvm/trunk/backends/platform/ds/arm9/source/gbampsave.cpp
    scummvm/trunk/backends/platform/ds/arm9/source/ramsave.cpp

Modified: scummvm/trunk/backends/platform/ds/arm9/source/gbampsave.cpp
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/gbampsave.cpp	2008-05-14 05:47:29 UTC (rev 32097)
+++ scummvm/trunk/backends/platform/ds/arm9/source/gbampsave.cpp	2008-05-14 06:59:23 UTC (rev 32098)
@@ -146,7 +146,7 @@
 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 @@
 	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 list;
 
-
 	do {
 
 		if (fileType == TYPE_FILE) {

Modified: scummvm/trunk/backends/platform/ds/arm9/source/ramsave.cpp
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/ramsave.cpp	2008-05-14 05:47:29 UTC (rev 32097)
+++ scummvm/trunk/backends/platform/ds/arm9/source/ramsave.cpp	2008-05-14 06:59:23 UTC (rev 32098)
@@ -383,16 +383,24 @@
 	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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list