diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-07-01 14:52:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-01 14:52:41 -0400 |
| commit | 2871fe08c97ac2153f3c7e29ebe72d3e32af61be (patch) | |
| tree | beca60cabf2be67a5ffb11a84121d593cb400d12 /Source/Core | |
| parent | 9a0d4501f8e41f186068ecbc52408d5281223760 (diff) | |
| parent | f8e22f448dd3351fb0eab4dca174cca6014cb903 (diff) | |
Merge pull request #13782 from noahpistilli/wii_no_pad
IOS/KD: Pad Wii Numbers to 16 digits
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp index 19c8652f4a..d0d49fef9b 100644 --- a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp +++ b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp @@ -391,7 +391,7 @@ NWC24::ErrorCode NetKDRequestDevice::KDCheckMail(u32* mail_flag, u32* interval) // On a real Wii, a response to a challenge is expected and would be verified by KD. const std::string hmac_message = - fmt::format("{}\nw{}\n{}\n{}", random_number, m_config.Id(), str_mail_flag, str_interval); + fmt::format("{}\nw{:016}\n{}\n{}", random_number, m_config.Id(), str_mail_flag, str_interval); std::array<u8, 20> hashed{}; Common::HMAC::HMACWithSHA1( MAIL_CHECK_KEY, @@ -533,7 +533,7 @@ NWC24::ErrorCode NetKDRequestDevice::KDSendMail() m_send_list.ReadSendList(); const std::string auth = - fmt::format("mlid=w{}\r\npasswd={}", m_config.Id(), m_config.GetPassword()); + fmt::format("mlid=w{:016}\r\npasswd={}", m_config.Id(), m_config.GetPassword()); std::vector<Common::HttpRequest::Multiform> multiform = {{"mlid", auth}}; std::vector<u32> mails = m_send_list.GetMailToSend(); @@ -932,8 +932,8 @@ IPCReply NetKDRequestDevice::HandleRequestRegisterUserId(const IOS::HLE::IOCtlRe const Common::SettingsReader settings_reader{data}; const std::string serno = settings_reader.GetValue("SERNO"); - const std::string form_data = - fmt::format("mlid=w{}&hdid={}&rgncd={}", m_config.Id(), m_ios.GetIOSC().GetDeviceId(), serno); + const std::string form_data = fmt::format("mlid=w{:016}&hdid={}&rgncd={}", m_config.Id(), + m_ios.GetIOSC().GetDeviceId(), serno); const Common::HttpRequest::Response response = m_http.Post(m_config.GetAccountURL(), form_data); if (!response) |
