mirror of
https://github.com/open-goal/jak-project
synced 2026-07-07 14:13:45 -04:00
[FileUtil] windows directories fix (#352)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user