[Scummvm-cvs-logs] SF.net SVN: scummvm:[54444] scummvm/trunk/engines/mohawk/myst_saveload.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Nov 23 23:32:56 CET 2010
Revision: 54444
http://scummvm.svn.sourceforge.net/scummvm/?rev=54444&view=rev
Author: fingolfin
Date: 2010-11-23 22:32:55 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
MOHAWK: Pass Common::Strings directly to SaveFileManager, instead of first converting to a C string
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/myst_saveload.cpp
Modified: scummvm/trunk/engines/mohawk/myst_saveload.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/myst_saveload.cpp 2010-11-23 22:32:39 UTC (rev 54443)
+++ scummvm/trunk/engines/mohawk/myst_saveload.cpp 2010-11-23 22:32:55 UTC (rev 54444)
@@ -47,8 +47,8 @@
if (_vm->getFeatures() & GF_DEMO) // Don't load games in the demo
return false;
- Common::InSaveFile *loadFile;
- if (!(loadFile = _saveFileMan->openForLoading(filename.c_str())))
+ Common::InSaveFile *loadFile = _saveFileMan->openForLoading(filename);
+ if (!loadFile)
return false;
debugC(kDebugSaveLoad, "Loading game from \'%s\'", filename.c_str());
@@ -330,8 +330,8 @@
if (!filename.hasSuffix(".mys") && !filename.hasSuffix(".MYS"))
filename += ".mys";
- Common::OutSaveFile *saveFile;
- if (!(saveFile = _saveFileMan->openForSaving(filename.c_str())))
+ Common::OutSaveFile *saveFile = _saveFileMan->openForSaving(filename);
+ if (!saveFile)
return false;
debugC(kDebugSaveLoad, "Saving game to \'%s\'", filename.c_str());
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