mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
MOHAWK: Strip slashes from beginning of LB Windows paths.
This commit is contained in:
parent
40d922206b
commit
023cb90842
@ -763,6 +763,8 @@ Common::String MohawkEngine_LivingBooks::convertWinFileName(const Common::String
|
||||
Common::String filename;
|
||||
|
||||
for (uint32 i = 0; i < string.size(); i++) {
|
||||
if (i == 0 && (string[i] == '/' || string[i] == '\\')) // ignore slashes at start
|
||||
continue;
|
||||
if (string[i] == '\\')
|
||||
filename += '/';
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user