diff options
author | Bertrand Augereau | 2006-10-05 20:27:09 +0000 |
---|---|---|
committer | Bertrand Augereau | 2006-10-05 20:27:09 +0000 |
commit | b01275d8c5eec2b4a868d681f2b89649f50d2325 (patch) | |
tree | d682c23fbc5ead5f5a40f7e3c233848c530256eb /backends/platform/ds/arm9 | |
parent | ac7651b273568eff89a6bcb7488c8801164dd13c (diff) | |
download | scummvm-rg350-b01275d8c5eec2b4a868d681f2b89649f50d2325.tar.gz scummvm-rg350-b01275d8c5eec2b4a868d681f2b89649f50d2325.tar.bz2 scummvm-rg350-b01275d8c5eec2b4a868d681f2b89649f50d2325.zip |
Path fixup in the zipreader (necessary with my adapter/zip/build combination?)
svn-id: r24128
Diffstat (limited to 'backends/platform/ds/arm9')
-rw-r--r-- | backends/platform/ds/arm9/source/zipreader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/ds/arm9/source/zipreader.cpp b/backends/platform/ds/arm9/source/zipreader.cpp index c74cb87c78..92dd170c2a 100644 --- a/backends/platform/ds/arm9/source/zipreader.cpp +++ b/backends/platform/ds/arm9/source/zipreader.cpp @@ -215,6 +215,9 @@ void ZipFile::changeToRoot() { void ZipFile::changeDirectory(char* dir) { // consolePrintf("Current dir now '%s'\n", dir); strcpy(_directory, dir); + size_t l = strlen(_directory); + if (l && (_directory[l-1] == '/' )) + _directory[l-1] = '\0'; } ZipFile::~ZipFile() { |