mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
[FileUtil] windows directories fix (#352)
This commit is contained in:
parent
9969445cf7
commit
17b05a9e40
|
@ -160,7 +160,7 @@ std::string base_name(const std::string& filename) {
|
|||
size_t pos = 0;
|
||||
assert(!filename.empty());
|
||||
for (size_t i = filename.size() - 1; i-- > 0;) {
|
||||
if (filename.at(i) == '/') {
|
||||
if (filename.at(i) == '/' || filename.at(i) == '\\') {
|
||||
pos = (i + 1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue