summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-11-02 17:34:04 +0100
committerJosJuice <josjuice@gmail.com>2017-11-03 23:17:36 +0100
commit6902bbb696ea7089daded57569cca637a5e69eae (patch)
tree55770a92c545cb2aa7914b93d75da47cf4ae9512 /Source/Core/Common/StringUtil.cpp
parent5a6d90900ec2dcf8ebec4182c29019ca5537c89f (diff)
When NAND is damaged, show title names from save files
The earlier code always tried to use TitleDatabase for getting title names, but that didn't work for disc-based games, because there was no way to get the maker ID.
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
-rw-r--r--Source/Core/Common/StringUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp
index a368e703fe..c904f150da 100644
--- a/Source/Core/Common/StringUtil.cpp
+++ b/Source/Core/Common/StringUtil.cpp
@@ -582,6 +582,6 @@ std::string UTF16BEToUTF8(const char16_t* str, size_t max_size)
{
const char16_t* str_end = std::find(str, str + max_size, '\0');
std::wstring result(static_cast<size_t>(str_end - str), '\0');
- std::transform(str, str_end, result.begin(), static_cast<u16(&)(u16)>(Common::swap16));
+ std::transform(str, str_end, result.begin(), static_cast<u16 (&)(u16)>(Common::swap16));
return UTF16ToUTF8(result);
}