mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
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:
parent
5a6d90900e
commit
6902bbb696
5 changed files with 51 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue