2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #12733 from german77/settings_services

service: set: Don't allow invalid mii author id
This commit is contained in:
Charles Lombardo 2024-01-21 14:08:58 -05:00 committed by GitHub
commit a3199401f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1038,6 +1038,11 @@ void ISystemSettingsServer::SetBluetoothEnableFlag(HLERequestContext& ctx) {
}
void ISystemSettingsServer::GetMiiAuthorId(HLERequestContext& ctx) {
if (m_system_settings.mii_author_id.IsInvalid()) {
m_system_settings.mii_author_id = Common::UUID::MakeDefault();
SetSaveNeeded();
}
LOG_INFO(Service_SET, "called, author_id={}",
m_system_settings.mii_author_id.FormattedString());