From a7620a29be99336108ef87f2a70d7ce6ee7bdcbb Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 21 Jan 2024 12:18:18 -0600 Subject: service: set: Don't allow invalid mii author id --- src/core/hle/service/set/system_settings_server.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/hle/service/set/system_settings_server.cpp b/src/core/hle/service/set/system_settings_server.cpp index 87242ae68..2e5785fed 100644 --- a/src/core/hle/service/set/system_settings_server.cpp +++ b/src/core/hle/service/set/system_settings_server.cpp @@ -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()); -- cgit v1.2.3