mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DIRECTOR: Check if path is good before changing
For Virtual Murder: Brett game (id murderbrett), a script takes care of making the path proper and trampling on that causes loading to fail.
This commit is contained in:
@@ -305,6 +305,9 @@ bool testPath(Common::String &path) {
|
||||
Common::String pathMakeRelative(Common::String path, bool recursive, bool addexts) {
|
||||
Common::String initialPath(path);
|
||||
|
||||
if (testPath(initialPath))
|
||||
return initialPath;
|
||||
|
||||
if (recursive) // first level
|
||||
initialPath = convertPath(initialPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user