diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/applets/applet_mii_edit.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/mii/mii_database_manager.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/mii/types/char_info.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/mii/types/core_data.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nfc/common/device.cpp | 2 |
5 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/service/am/applets/applet_mii_edit.cpp b/src/core/hle/service/am/applets/applet_mii_edit.cpp index ff77830d2..50adc7c02 100644 --- a/src/core/hle/service/am/applets/applet_mii_edit.cpp +++ b/src/core/hle/service/am/applets/applet_mii_edit.cpp | |||
| @@ -145,6 +145,8 @@ void MiiEdit::MiiEditOutput(MiiEditResult result, s32 index) { | |||
| 145 | .index{index}, | 145 | .index{index}, |
| 146 | }; | 146 | }; |
| 147 | 147 | ||
| 148 | LOG_INFO(Input, "called, result={}, index={}", result, index); | ||
| 149 | |||
| 148 | std::vector<u8> out_data(sizeof(MiiEditAppletOutput)); | 150 | std::vector<u8> out_data(sizeof(MiiEditAppletOutput)); |
| 149 | std::memcpy(out_data.data(), &applet_output, sizeof(MiiEditAppletOutput)); | 151 | std::memcpy(out_data.data(), &applet_output, sizeof(MiiEditAppletOutput)); |
| 150 | 152 | ||
diff --git a/src/core/hle/service/mii/mii_database_manager.cpp b/src/core/hle/service/mii/mii_database_manager.cpp index c39898594..0080b6705 100644 --- a/src/core/hle/service/mii/mii_database_manager.cpp +++ b/src/core/hle/service/mii/mii_database_manager.cpp | |||
| @@ -168,7 +168,7 @@ Result DatabaseManager::FindIndex(s32& out_index, const Common::UUID& create_id, | |||
| 168 | return ResultSuccess; | 168 | return ResultSuccess; |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | for (std::size_t i = 0; i <= index; ++i) { | 171 | for (std::size_t i = 0; i < index; ++i) { |
| 172 | if (database.Get(i).IsSpecial()) { | 172 | if (database.Get(i).IsSpecial()) { |
| 173 | continue; | 173 | continue; |
| 174 | } | 174 | } |
diff --git a/src/core/hle/service/mii/types/char_info.cpp b/src/core/hle/service/mii/types/char_info.cpp index c82186c73..e90124af4 100644 --- a/src/core/hle/service/mii/types/char_info.cpp +++ b/src/core/hle/service/mii/types/char_info.cpp | |||
| @@ -37,7 +37,7 @@ void CharInfo::SetFromStoreData(const StoreData& store_data) { | |||
| 37 | eyebrow_aspect = store_data.GetEyebrowAspect(); | 37 | eyebrow_aspect = store_data.GetEyebrowAspect(); |
| 38 | eyebrow_rotate = store_data.GetEyebrowRotate(); | 38 | eyebrow_rotate = store_data.GetEyebrowRotate(); |
| 39 | eyebrow_x = store_data.GetEyebrowX(); | 39 | eyebrow_x = store_data.GetEyebrowX(); |
| 40 | eyebrow_y = store_data.GetEyebrowY(); | 40 | eyebrow_y = store_data.GetEyebrowY() + 3; |
| 41 | nose_type = store_data.GetNoseType(); | 41 | nose_type = store_data.GetNoseType(); |
| 42 | nose_scale = store_data.GetNoseScale(); | 42 | nose_scale = store_data.GetNoseScale(); |
| 43 | nose_y = store_data.GetNoseY(); | 43 | nose_y = store_data.GetNoseY(); |
diff --git a/src/core/hle/service/mii/types/core_data.cpp b/src/core/hle/service/mii/types/core_data.cpp index 1068031e3..970c748ca 100644 --- a/src/core/hle/service/mii/types/core_data.cpp +++ b/src/core/hle/service/mii/types/core_data.cpp | |||
| @@ -113,7 +113,7 @@ void CoreData::BuildRandom(Age age, Gender gender, Race race) { | |||
| 113 | .values[MiiUtil::GetRandomValue<std::size_t>(eyebrow_type_info.values_count)]); | 113 | .values[MiiUtil::GetRandomValue<std::size_t>(eyebrow_type_info.values_count)]); |
| 114 | 114 | ||
| 115 | const auto eyebrow_rotate_1{race == Race::Asian ? 6 : 0}; | 115 | const auto eyebrow_rotate_1{race == Race::Asian ? 6 : 0}; |
| 116 | const auto eyebrow_y{race == Race::Asian ? 9 : 10}; | 116 | const auto eyebrow_y{race == Race::Asian ? 6 : 7}; |
| 117 | const auto eyebrow_rotate_offset{32 - RawData::EyebrowRotateLookup[eyebrow_rotate_1] + 6}; | 117 | const auto eyebrow_rotate_offset{32 - RawData::EyebrowRotateLookup[eyebrow_rotate_1] + 6}; |
| 118 | const auto eyebrow_rotate{ | 118 | const auto eyebrow_rotate{ |
| 119 | 32 - RawData::EyebrowRotateLookup[static_cast<std::size_t>(data.eyebrow_type.Value())]}; | 119 | 32 - RawData::EyebrowRotateLookup[static_cast<std::size_t>(data.eyebrow_type.Value())]}; |
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp index 05951d8cb..68c407f81 100644 --- a/src/core/hle/service/nfc/common/device.cpp +++ b/src/core/hle/service/nfc/common/device.cpp | |||
| @@ -1374,7 +1374,7 @@ NFP::AmiiboName NfcDevice::GetAmiiboName(const NFP::AmiiboSettings& settings) co | |||
| 1374 | 1374 | ||
| 1375 | // Convert from utf16 to utf8 | 1375 | // Convert from utf16 to utf8 |
| 1376 | const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data()); | 1376 | const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data()); |
| 1377 | memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size() - 1); | 1377 | memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size()); |
| 1378 | 1378 | ||
| 1379 | return amiibo_name; | 1379 | return amiibo_name; |
| 1380 | } | 1380 | } |