mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
nn_act: Fix errors in Mii name (#95)
nn_act: Don't swap the Mii name again Account: Zero out miiName before copying in data
This commit is contained in:
parent
ef61361b87
commit
07ce5b0aa6
2 changed files with 3 additions and 2 deletions
|
@ -101,6 +101,7 @@ Account::Account(uint32 persistent_id, std::wstring_view mii_name)
|
|||
// set default name
|
||||
FFLData_t* fflData = (FFLData_t*)m_mii_data.data();
|
||||
const auto tmp_name = GetMiiName();
|
||||
memset(fflData->miiName, 0, sizeof(fflData->miiName));
|
||||
std::copy(tmp_name.cbegin(), tmp_name.cend(), fflData->miiName);
|
||||
|
||||
// calculate checksum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue