summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-08-03 11:50:27 -0400
committerGravatar Zach Hilman2018-08-08 21:18:45 -0400
commitaaa8fdea527d635e6503a1411a06938325cba216 (patch)
tree59cc67b3e315c0470b8ef644d6736c492ae3dac8 /src/core
parentvfs: Add RealVfsFilesystem implementation (diff)
downloadyuzu-aaa8fdea527d635e6503a1411a06938325cba216.tar.gz
yuzu-aaa8fdea527d635e6503a1411a06938325cba216.tar.xz
yuzu-aaa8fdea527d635e6503a1411a06938325cba216.zip
vfs: Add unreachable assert to file permissions converter
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/vfs_real.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index 2923a8e6a..21ea35aaf 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -6,7 +6,7 @@
6#include <cstddef> 6#include <cstddef>
7#include <iterator> 7#include <iterator>
8#include <utility> 8#include <utility>
9 9#include "common/assert.h"
10#include "common/common_paths.h" 10#include "common/common_paths.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "core/file_sys/vfs_real.h" 12#include "core/file_sys/vfs_real.h"
@@ -29,6 +29,8 @@ static std::string ModeFlagsToString(Mode mode) {
29 mode_str = "a"; 29 mode_str = "a";
30 else if (mode & Mode::Write) 30 else if (mode & Mode::Write)
31 mode_str = "w"; 31 mode_str = "w";
32 else
33 UNREACHABLE_MSG("Invalid file open mode: {:02X}", static_cast<u8>(mode));
32 } 34 }
33 35
34 mode_str += "b"; 36 mode_str += "b";