From 6902bbb696ea7089daded57569cca637a5e69eae Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 2 Nov 2017 17:34:04 +0100 Subject: 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. --- Source/Core/Common/StringUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/StringUtil.cpp') 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(str_end - str), '\0'); - std::transform(str, str_end, result.begin(), static_cast(Common::swap16)); + std::transform(str, str_end, result.begin(), static_cast(Common::swap16)); return UTF16ToUTF8(result); } -- cgit v1.2.3