From 20fa33a6890abac60592effd2d00a467f7340a7d Mon Sep 17 00:00:00 2001 From: Nathanael Gentry Date: Tue, 4 Aug 2020 22:20:37 -0400 Subject: [PATCH] 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. --- engines/director/util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engines/director/util.cpp b/engines/director/util.cpp index 9985cfb89c5..4ad4468e92e 100644 --- a/engines/director/util.cpp +++ b/engines/director/util.cpp @@ -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);