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:
Nathanael Gentry
2020-08-04 22:25:50 -04:00
parent dabc82efdb
commit 20fa33a689
+3
View File
@@ -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);