mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-24 00:31:52 +01:00
coreinit: Implement support for ".." in paths
This commit is contained in:
parent
f1ebfa9941
commit
0bead50065
@ -108,14 +108,30 @@ namespace iosu
|
||||
if ((input.size() - idx) >= 3 && input[idx + 1] == '.' && input[idx + 2] == '/')
|
||||
{
|
||||
// "../"
|
||||
cemu_assert_unimplemented();
|
||||
while(!tmp.empty())
|
||||
{
|
||||
if(tmp.back() == '/')
|
||||
{
|
||||
tmp.pop_back();
|
||||
break;
|
||||
}
|
||||
tmp.pop_back();
|
||||
}
|
||||
idx += 3;
|
||||
continue;
|
||||
}
|
||||
else if ((input.size() - idx) == 2 && input[idx + 1] == '.')
|
||||
{
|
||||
// ".." at the end
|
||||
cemu_assert_unimplemented();
|
||||
while(!tmp.empty())
|
||||
{
|
||||
if(tmp.back() == '/')
|
||||
{
|
||||
tmp.pop_back();
|
||||
break;
|
||||
}
|
||||
tmp.pop_back();
|
||||
}
|
||||
idx += 2;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user