mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
DIRECTOR: Improve path converting
This commit is contained in:
parent
ec56be281d
commit
724ced87d0
@ -212,8 +212,8 @@ void Lingo::func_goto(Datum &frame, Datum &movie) {
|
||||
}
|
||||
}
|
||||
|
||||
debug(1, "func_goto: '%s' -> '%s' -> '%s", movie.u.s->c_str(), movieFilename.c_str(),
|
||||
cleanedFilename.c_str());
|
||||
debug(1, "func_goto: '%s' -> '%s' -> '%s' -> '%s", movie.u.s->c_str(), convertPath(*movie.u.s).c_str(),
|
||||
movieFilename.c_str(), cleanedFilename.c_str());
|
||||
|
||||
if (!fileExists) {
|
||||
warning("Movie %s does not exist", movieFilename.c_str());
|
||||
|
@ -122,9 +122,9 @@ Common::String convertPath(Common::String &path) {
|
||||
Common::String res;
|
||||
uint32 idx = 0;
|
||||
|
||||
if (path.hasPrefix(":::")) {
|
||||
if (path.hasPrefix("::")) {
|
||||
res = "../";
|
||||
idx = 3;
|
||||
idx = 2;
|
||||
} else {
|
||||
res = "./";
|
||||
idx = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user