DIRECTOR: Process '@' in file path conversion

This commit is contained in:
Eugene Sandulenko 2020-10-04 21:55:43 +02:00
parent 1d70ed4d24
commit 1395a8b4e5

View File

@ -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 = ".\\";