mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-01 23:26:03 +00:00
fix an ascii/wxstring in gamelistctrl, replace fromascii("") with wxemptystring, don't push_back 0 at the end of wstrings
This commit is contained in:
parent
8f6c25a5aa
commit
825e2ea4df
4 changed files with 8 additions and 10 deletions
|
@ -176,7 +176,6 @@ bool CBannerLoaderWii::GetName(std::vector<std::wstring>& _rNames)
|
|||
{
|
||||
temp.push_back(Common::swap16(pBanner->m_Comment[0][i]));
|
||||
}
|
||||
temp.push_back('\0');
|
||||
_rNames.push_back(temp);
|
||||
return true;
|
||||
}
|
||||
|
@ -220,8 +219,7 @@ bool CBannerLoaderWii::GetDescription(std::wstring& _rDescription)
|
|||
std::wstring description;
|
||||
for (int i = 0; i < WII_BANNER_COMMENT_SIZE; ++i)
|
||||
description.push_back(Common::swap16(pBanner->m_Comment[1][i]));
|
||||
|
||||
description.push_back('\0');
|
||||
|
||||
_rDescription = description;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue