mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Fix truncated names and descriptions in the game list on linux.
This commit is contained in:
parent
91023e133b
commit
3da05af30a
3 changed files with 19 additions and 11 deletions
|
@ -155,7 +155,14 @@ public:
|
|||
Do(stringLen);
|
||||
|
||||
switch (mode) {
|
||||
case MODE_READ: x = (wchar_t*)*ptr; break;
|
||||
case MODE_READ:
|
||||
{
|
||||
wchar_t* tmp = new wchar_t[stringLen / sizeof(wchar_t)];
|
||||
memcpy(tmp, *ptr, stringLen);
|
||||
x = tmp;
|
||||
delete[] tmp;
|
||||
}
|
||||
break;
|
||||
case MODE_WRITE: memcpy(*ptr, x.c_str(), stringLen); break;
|
||||
case MODE_MEASURE: break;
|
||||
case MODE_VERIFY: _dbg_assert_msg_(COMMON, x == (wchar_t*)*ptr, "Savestate verification failure: \"%ls\" != \"%ls\" (at %p).\n", x.c_str(), (wchar_t*)*ptr, ptr); break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue