diff options
| author | Eugene Sandulenko | 2020-01-01 14:50:53 +0100 |
|---|---|---|
| committer | Eugene Sandulenko | 2020-01-01 14:50:53 +0100 |
| commit | 693149ee56a4fd32dc8fff79b1f033bf244c9563 (patch) | |
| tree | dc5755cd15a6fe9c6b51f64fdccbceff8ace7d16 /engines/director/util.cpp | |
| parent | f263ed4bb63dca26a73790eb12ec908e75e5818a (diff) | |
| download | scummvm-rg350-693149ee56a4fd32dc8fff79b1f033bf244c9563.tar.gz scummvm-rg350-693149ee56a4fd32dc8fff79b1f033bf244c9563.tar.bz2 scummvm-rg350-693149ee56a4fd32dc8fff79b1f033bf244c9563.zip | |
DIRECTOR: Load Shared Cast from movie directory
Diffstat (limited to 'engines/director/util.cpp')
| -rw-r--r-- | engines/director/util.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/director/util.cpp b/engines/director/util.cpp index 55a9893dfc..1774630b95 100644 --- a/engines/director/util.cpp +++ b/engines/director/util.cpp @@ -142,4 +142,13 @@ Common::String convertPath(Common::String &path) { return res; } +Common::String getPath(Common::String path) { + const char *s; + if ((s = strrchr(path.c_str(), '/'))) { + return Common::String(path.c_str(), s + 1); + } + + return ""; +} + } // End of namespace Director |
