diff options
author | Eugene Sandulenko | 2020-01-01 15:15:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-01 15:15:27 +0100 |
commit | ec56be281d65384edb643d10ab705a7cf6a2c858 (patch) | |
tree | 544527b5f16718b09643aaec7d03c891bdab808d /engines/director/util.cpp | |
parent | 4526ba8fae5ccaa809a1bd64b0f9079c8864d948 (diff) | |
download | scummvm-rg350-ec56be281d65384edb643d10ab705a7cf6a2c858.tar.gz scummvm-rg350-ec56be281d65384edb643d10ab705a7cf6a2c858.tar.bz2 scummvm-rg350-ec56be281d65384edb643d10ab705a7cf6a2c858.zip |
DIRECTOR: Use current path for navigating between movies
Diffstat (limited to 'engines/director/util.cpp')
-rw-r--r-- | engines/director/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/util.cpp b/engines/director/util.cpp index 1774630b95..9afc19171f 100644 --- a/engines/director/util.cpp +++ b/engines/director/util.cpp @@ -142,13 +142,13 @@ Common::String convertPath(Common::String &path) { return res; } -Common::String getPath(Common::String path) { +Common::String getPath(Common::String path, Common::String cwd) { const char *s; if ((s = strrchr(path.c_str(), '/'))) { return Common::String(path.c_str(), s + 1); } - return ""; + return cwd; // The path is not altered } } // End of namespace Director |