diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-09 19:42:34 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-09 20:10:22 +0200 |
commit | 9ff743bc0acb63a176cd7c823aa63f5602c41299 (patch) | |
tree | 205ae8a773cd7a8ec304c42a2c6e3ecc0e95e929 /src/core | |
parent | ips_layer: Add missing includes (diff) | |
download | yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.tar yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.tar.gz yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.tar.bz2 yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.tar.lz yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.tar.xz yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.tar.zst yuzu-9ff743bc0acb63a176cd7c823aa63f5602c41299.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/file_sys/ips_layer.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index f832bf8e6..90f91f230 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -22,11 +22,19 @@ enum class IPSFileType { Error, }; -constexpr std::array<std::pair<const char*, const char*>, 11> ESCAPE_CHARACTER_MAP{ - std::pair{"\\a", "\a"}, {"\\b", "\b"}, {"\\f", "\f"}, {"\\n", "\n"}, - {"\\r", "\r"}, {"\\t", "\t"}, {"\\v", "\v"}, {"\\\\", "\\"}, - {"\\\'", "\'"}, {"\\\"", "\""}, {"\\\?", "\?"}, -}; +constexpr std::array<std::pair<const char*, const char*>, 11> ESCAPE_CHARACTER_MAP{{ + {"\\a", "\a"}, + {"\\b", "\b"}, + {"\\f", "\f"}, + {"\\n", "\n"}, + {"\\r", "\r"}, + {"\\t", "\t"}, + {"\\v", "\v"}, + {"\\\\", "\\"}, + {"\\\'", "\'"}, + {"\\\"", "\""}, + {"\\\?", "\?"}, +}}; static IPSFileType IdentifyMagic(const std::vector<u8>& magic) { if (magic.size() != 5) |