瀏覽代碼

service: set: Don't allow invalid mii author id

german77 2 年之前
父節點
當前提交
a7620a29be
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/core/hle/service/set/system_settings_server.cpp

+ 5 - 0
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());