diff options
| author | 2024-01-21 14:08:58 -0500 | |
|---|---|---|
| committer | 2024-01-21 14:08:58 -0500 | |
| commit | a3199401f4f3a005666618595c36ec63331e827d (patch) | |
| tree | c6b21b463b1fcbc7999e6ec83aea772929dbe22c /src | |
| parent | Merge pull request #12728 from t895/sync-translations (diff) | |
| parent | service: set: Don't allow invalid mii author id (diff) | |
| download | yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.gz yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.xz yuzu-a3199401f4f3a005666618595c36ec63331e827d.zip | |
Merge pull request #12733 from german77/settings_services
service: set: Don't allow invalid mii author id
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/set/system_settings_server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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) { | |||
| 1038 | } | 1038 | } |
| 1039 | 1039 | ||
| 1040 | void ISystemSettingsServer::GetMiiAuthorId(HLERequestContext& ctx) { | 1040 | void ISystemSettingsServer::GetMiiAuthorId(HLERequestContext& ctx) { |
| 1041 | if (m_system_settings.mii_author_id.IsInvalid()) { | ||
| 1042 | m_system_settings.mii_author_id = Common::UUID::MakeDefault(); | ||
| 1043 | SetSaveNeeded(); | ||
| 1044 | } | ||
| 1045 | |||
| 1041 | LOG_INFO(Service_SET, "called, author_id={}", | 1046 | LOG_INFO(Service_SET, "called, author_id={}", |
| 1042 | m_system_settings.mii_author_id.FormattedString()); | 1047 | m_system_settings.mii_author_id.FormattedString()); |
| 1043 | 1048 | ||