[Scummvm-cvs-logs] SF.net SVN: scummvm:[33719] scummvm/trunk/backends/platform/wii

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Sat Aug 9 20:37:19 CEST 2008


Revision: 33719
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33719&view=rev
Author:   dhewg
Date:     2008-08-09 18:37:18 +0000 (Sat, 09 Aug 2008)

Log Message:
-----------
Updates to the recent OSystem API changes

Modified Paths:
--------------
    scummvm/trunk/backends/platform/wii/osystem.cpp
    scummvm/trunk/backends/platform/wii/osystem.h

Modified: scummvm/trunk/backends/platform/wii/osystem.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/osystem.cpp	2008-08-09 18:34:16 UTC (rev 33718)
+++ scummvm/trunk/backends/platform/wii/osystem.cpp	2008-08-09 18:37:18 UTC (rev 33719)
@@ -89,8 +89,12 @@
 
 void OSystem_Wii::initBackend() {
 	_startup_time = gettime();
+	
+	char buf[MAXPATHLEN];
+	if (!getcwd(buf, MAXPATHLEN))
+		strcpy(buf, "/");
 
-	_savefile = new DefaultSaveFileManager();
+	_savefile = new DefaultSaveFileManager(buf);
 	_mixer = new Audio::MixerImpl(this);
 	_timer = new DefaultTimerManager();
 

Modified: scummvm/trunk/backends/platform/wii/osystem.h
===================================================================
--- scummvm/trunk/backends/platform/wii/osystem.h	2008-08-09 18:34:16 UTC (rev 33718)
+++ scummvm/trunk/backends/platform/wii/osystem.h	2008-08-09 18:37:18 UTC (rev 33719)
@@ -22,9 +22,9 @@
 #ifndef _WII_OSYSTEM_H_
 #define _WII_OSYSTEM_H_
 
+#include "base/main.h"
 #include "common/system.h"
-#include "base/main.h"
-
+#include "common/fs.h"
 #include "common/rect.h"
 #include "common/events.h"
 


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