mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
oops.
svn-id: r29030
This commit is contained in:
parent
2115e5d181
commit
b93e906285
@ -116,16 +116,16 @@ public:
|
||||
* @return Pointer to the first char of the last component inside str.
|
||||
*/
|
||||
const char *lastPathComponent(const Common::String &str) {
|
||||
int offset = p.size();
|
||||
const char *str = p.c_str();
|
||||
int offset = str.size();
|
||||
const char *p = str.c_str();
|
||||
|
||||
while (offset > 0 && (str[offset-1] == '/' || str[offset-1] == ':'))
|
||||
while (offset > 0 && (p[offset-1] == '/' || p[offset-1] == ':'))
|
||||
offset--;
|
||||
|
||||
while (offset > 0 && (str[offset-1] != '/' && str[offset-1] != ':'))
|
||||
while (offset > 0 && (p[offset-1] != '/' && p[offset-1] != ':'))
|
||||
offset--;
|
||||
|
||||
return str.c_str() + offset;
|
||||
return p + offset;
|
||||
}
|
||||
|
||||
AmigaOSFilesystemNode::AmigaOSFilesystemNode() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user