mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #1166 from unknownbrackets/perf-fix
Clean up restricted ISO reading
This commit is contained in:
commit
b85810a3d5
1 changed files with 3 additions and 1 deletions
|
@ -141,8 +141,10 @@ ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevic
|
|||
while (pos != _restrictPath.npos)
|
||||
{
|
||||
size_t endPos = _restrictPath.find_first_of('/', pos);
|
||||
if (endPos == _restrictPath.npos)
|
||||
endPos = _restrictPath.length();
|
||||
if (pos != endPos)
|
||||
restrictTree.push_back(_restrictPath.substr(pos, endPos));
|
||||
restrictTree.push_back(_restrictPath.substr(pos, endPos - pos));
|
||||
pos = _restrictPath.find_first_not_of('/', endPos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue