summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-07-10 13:07:24 +0200
committerZach Hilman <zachhilman@gmail.com>2019-07-10 13:07:24 +0200
commit37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa (patch)
tree7b890a9d00e46f0bed90834c3a60898b162fd8d0
parentSet up CI with Azure Pipelines (diff)
downloadyuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.tar
yuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.tar.gz
yuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.tar.bz2
yuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.tar.lz
yuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.tar.xz
yuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.tar.zst
yuzu-37a352e9d33f6f8bd85a9f3839bb7b54bb6363fa.zip
-rw-r--r--src/core/hle/service/mii/mii_manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/mii/mii_manager.cpp b/src/core/hle/service/mii/mii_manager.cpp
index 131b01d62..8d0353075 100644
--- a/src/core/hle/service/mii/mii_manager.cpp
+++ b/src/core/hle/service/mii/mii_manager.cpp
@@ -175,6 +175,10 @@ MiiStoreData ConvertInfoToStoreData(const MiiInfo& info) {
} // namespace
std::ostream& operator<<(std::ostream& os, Source source) {
+ if (static_cast<std::size_t>(source) >= SOURCE_NAMES.size()) {
+ return os << "[UNKNOWN SOURCE]";
+ }
+
os << SOURCE_NAMES.at(static_cast<std::size_t>(source));
return os;
}