diff options
| author | hyperiris <hyperiris@gmail.com> | 2009-02-28 18:44:39 +0000 |
|---|---|---|
| committer | hyperiris <hyperiris@gmail.com> | 2009-02-28 18:44:39 +0000 |
| commit | 1922779b82ab2ea6d2253e979c927171c61a8725 (patch) | |
| tree | 9574ae51404323e8e25dba17fe3e58b9c165ddb7 /Source/Core/DiscIO/Src/BannerLoader.cpp | |
| parent | 0b08ce466d5e78a40a90bedbbf37f0b846cf51b8 (diff) | |
fix JAP Wii game name/description display
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2473 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/BannerLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/BannerLoader.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/DiscIO/Src/BannerLoader.cpp b/Source/Core/DiscIO/Src/BannerLoader.cpp index ff7d888207..c759a5265a 100644 --- a/Source/Core/DiscIO/Src/BannerLoader.cpp +++ b/Source/Core/DiscIO/Src/BannerLoader.cpp @@ -96,8 +96,6 @@ bool IBannerLoader::CopyToStringAndCheck(std::string& _rDestination, const char* bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16* _src, int length ) { - - bool returnCode = false; #ifdef WIN32 if (_src) @@ -111,8 +109,8 @@ bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16 buffer[i] = swap16(buffer[i]); } - u32 ansiNameSize = WideCharToMultiByte(CP_ACP, 0, - (LPCWSTR)buffer, (int)wcslen((const wchar_t*)buffer), + u32 ansiNameSize = WideCharToMultiByte(932, 0, + (LPCWSTR)buffer, (int)wcslen((LPCWSTR)buffer), NULL, NULL, NULL, NULL); if (ansiNameSize > 0) { @@ -120,8 +118,8 @@ bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16 if (pAnsiStrBuffer) { memset(pAnsiStrBuffer, 0, (ansiNameSize + 1) * sizeof(char)); - if (WideCharToMultiByte(CP_ACP, 0, - (LPCWSTR)buffer, (int)wcslen((const wchar_t*)buffer), + if (WideCharToMultiByte(932, 0, + (LPCWSTR)buffer, (int)wcslen((LPCWSTR)buffer), pAnsiStrBuffer, ansiNameSize, NULL, NULL)) { _rDestination = pAnsiStrBuffer; |
