[Scummvm-cvs-logs] SF.net SVN: scummvm:[44423] scummvm/trunk/engines/sci/engine/kfile.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sun Sep 27 23:52:15 CEST 2009
Revision: 44423
http://scummvm.svn.sourceforge.net/scummvm/?rev=44423&view=rev
Author: wjpalenstijn
Date: 2009-09-27 21:52:14 +0000 (Sun, 27 Sep 2009)
Log Message:
-----------
SCI: Remove directory prefix added by QfG3's char import
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kfile.cpp
Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp 2009-09-27 21:25:34 UTC (rev 44422)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp 2009-09-27 21:52:14 UTC (rev 44423)
@@ -109,6 +109,10 @@
void file_open(EngineState *s, const char *filename, int mode) {
+ // QfG3 character import prepends /\ to the filenames.
+ if (filename[0] == '/' && filename[1] == '\\')
+ filename += 2;
+
Common::String englishName = s->getLanguageString(filename, K_LANG_ENGLISH);
const Common::String wrappedName = ((Sci::SciEngine*)g_engine)->wrapFilename(englishName);
Common::SeekableReadStream *inFile = 0;
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