diff options
author | Andre Heider | 2008-08-09 18:37:18 +0000 |
---|---|---|
committer | Andre Heider | 2008-08-09 18:37:18 +0000 |
commit | f098b2817f03866d062418da289f365826b79d74 (patch) | |
tree | 37a28b21c4384abf03db24a14b43566c066e3f8e /backends/platform | |
parent | 71f4a15e4efebf4de7a25d2b09817cf3a5aa51b5 (diff) | |
download | scummvm-rg350-f098b2817f03866d062418da289f365826b79d74.tar.gz scummvm-rg350-f098b2817f03866d062418da289f365826b79d74.tar.bz2 scummvm-rg350-f098b2817f03866d062418da289f365826b79d74.zip |
Updates to the recent OSystem API changes
svn-id: r33719
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/wii/osystem.cpp | 6 | ||||
-rw-r--r-- | backends/platform/wii/osystem.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/backends/platform/wii/osystem.cpp b/backends/platform/wii/osystem.cpp index 9e708345c5..3ec32126f0 100644 --- a/backends/platform/wii/osystem.cpp +++ b/backends/platform/wii/osystem.cpp @@ -89,8 +89,12 @@ OSystem_Wii::~OSystem_Wii() { 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(); diff --git a/backends/platform/wii/osystem.h b/backends/platform/wii/osystem.h index 7fbc560b1a..71bf9bce2e 100644 --- a/backends/platform/wii/osystem.h +++ b/backends/platform/wii/osystem.h @@ -22,9 +22,9 @@ #ifndef _WII_OSYSTEM_H_ #define _WII_OSYSTEM_H_ -#include "common/system.h" #include "base/main.h" - +#include "common/system.h" +#include "common/fs.h" #include "common/rect.h" #include "common/events.h" |