[Scummvm-git-logs] scummvm master -> 1d1a12b3aca53aa36dd07ef31cc795083ad33357
sev-
noreply at scummvm.org
Tue Mar 22 00:50:15 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1d1a12b3ac DIRECTOR: LINGO: Make the path relative before trying to open
Commit: 1d1a12b3aca53aa36dd07ef31cc795083ad33357
https://github.com/scummvm/scummvm/commit/1d1a12b3aca53aa36dd07ef31cc795083ad33357
Author: eientei95 (einstein95 at users.noreply.github.com)
Date: 2022-03-22T01:50:10+01:00
Commit Message:
DIRECTOR: LINGO: Make the path relative before trying to open
D3 game called "Wacky Jacks" attempts to open `Wacky Jacks:Wacky Jacks 1.2:WJPrefs`. Before this would be passed straight to File->open, now properly opens `Wacky Jacks 1.2/WJPrefs`
Changed paths:
engines/director/lingo/xlibs/fileio.cpp
diff --git a/engines/director/lingo/xlibs/fileio.cpp b/engines/director/lingo/xlibs/fileio.cpp
index fd7de383fa5..a1a36a71254 100644
--- a/engines/director/lingo/xlibs/fileio.cpp
+++ b/engines/director/lingo/xlibs/fileio.cpp
@@ -172,7 +172,7 @@ void FileIO::m_new(int nargs) {
// Maybe we're trying to read one of the game files
Common::File *f = new Common::File;
- if (!f->open(origpath)) {
+ if (!f->open(Common::Path(pathMakeRelative(origpath), g_director->_dirSeparator))) {
delete f;
saveFileError();
me->dispose();
More information about the Scummvm-git-logs
mailing list