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.
This commit is contained in:
JosJuice
2017-11-02 17:34:04 +01:00
parent 5a6d90900e
commit 6902bbb696
5 changed files with 51 additions and 13 deletions

View File

@ -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);
}