From 1395a8b4e5ee37362d3603a12b1b42d06a219c41 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 4 Oct 2020 21:55:43 +0200 Subject: [PATCH] DIRECTOR: Process '@' in file path conversion --- engines/director/util.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engines/director/util.cpp b/engines/director/util.cpp index 70055c14b69..e76f6028ff7 100644 --- a/engines/director/util.cpp +++ b/engines/director/util.cpp @@ -246,7 +246,7 @@ Common::String convertPath(Common::String &path) { if (path.empty()) return path; - if (!path.contains(':') && !path.contains('/') && !path.contains('\\')) { + if (!path.contains(':') && !path.contains('/') && !path.contains('\\') && !path.contains('@')) { return path; } @@ -256,6 +256,9 @@ Common::String convertPath(Common::String &path) { if (path.hasPrefix("::")) { res = "..\\"; idx = 2; + } else if (path.hasPrefix("@:")) { + res = ".\\"; + idx = 2; } else { res = ".\\";