mirror of
https://github.com/GerbilSoft/mst06.git
synced 2025-06-19 12:05:34 -04:00
Mst::loadMST(): Convert the string table name from Shift-JIS to UTF-8.
This commit is contained in:
parent
8cf572184a
commit
4f7df957eb
@ -240,9 +240,8 @@ int Mst::loadMST(const TCHAR *filename)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Convert from Shift-JIS to UTF-8.
|
|
||||||
size_t msgNameLen = strnlen(pMsgName, reinterpret_cast<const char*>(pDiffTblEnd) - pMsgName);
|
size_t msgNameLen = strnlen(pMsgName, reinterpret_cast<const char*>(pDiffTblEnd) - pMsgName);
|
||||||
m_name = string(pMsgName, msgNameLen);
|
m_name = cpN_to_utf8(932, pMsgName, static_cast<int>(msgNameLen));
|
||||||
} while (0);
|
} while (0);
|
||||||
|
|
||||||
// Temporary string for text.
|
// Temporary string for text.
|
||||||
|
Loading…
Reference in New Issue
Block a user