Skip to content

Commit

Permalink
Wii U: Fix MakeDirectory logic
Browse files Browse the repository at this point in the history
Consider "/vol" a valid path
  • Loading branch information
Ghabry committed Jun 3, 2024
1 parent 6467523 commit 4251958
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ bool Platform::File::MakeDirectory(bool follow_symlinks) const {
}
}

#if defined(__WIIU__)
if (cur_path == "fs:/vol" || cur_path == "/vol") {
// /vol is part of the path but checking for existance fails
continue;
}
#endif

File cf(cur_path);
if (cf.IsDirectory(follow_symlinks)) {
continue;
Expand Down

0 comments on commit 4251958

Please sign in to comment.