2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Minor improvements

This commit is contained in:
Jack Andersen
2017-10-25 19:37:15 -10:00
parent b7208bfc5f
commit 5e99ee1d95
4 changed files with 7 additions and 0 deletions

View File

@@ -323,6 +323,8 @@ ProjectRootPath SearchForProject(const SystemString& path, SystemString& subpath
SystemString::const_iterator origEnd = testRoot.getAbsolutePath().end();
while (end != origEnd && *end != _S('/') && *end != _S('\\'))
++end;
if (*end == _S('/') || *end == _S('\\'))
++end;
subpathOut.assign(end, origEnd);
return newRootPath;
}