mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 22:41:21 -08:00
mii: Handle logging of unknown database source
This commit is contained in:
parent
05d55b0fd7
commit
37a352e9d3
@ -175,6 +175,10 @@ MiiStoreData ConvertInfoToStoreData(const MiiInfo& info) {
|
|||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, Source source) {
|
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));
|
os << SOURCE_NAMES.at(static_cast<std::size_t>(source));
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user