diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2019-09-04 05:07:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 05:07:10 +0200 |
commit | e1981b8b8d028132ca13d24782110c6715a1652f (patch) | |
tree | 9c67d2c2e7df7aa6ad97f1b1bca171bc5a0fc316 | |
parent | Merge pull request #2793 from ReinUsesLisp/bgr565 (diff) | |
parent | mii: Handle logging of unknown database source (diff) | |
download | yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.tar yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.tar.gz yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.tar.bz2 yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.tar.lz yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.tar.xz yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.tar.zst yuzu-e1981b8b8d028132ca13d24782110c6715a1652f.zip |
-rw-r--r-- | src/core/hle/service/mii/mii_manager.cpp | 4 |
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; } |