Browse Source
Merge pull request #2708 from DarkLordZach/mii-db-source-crash
mii: Handle logging of unknown database source
pull/15/merge
David
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
|