The prefill text is optional in the OSK.

This commit is contained in:
Unknown W. Brackets 2013-04-21 01:54:36 -07:00
parent cc9d037108
commit 7eeba4b120

View File

@ -62,6 +62,12 @@ void PSPOskDialog::ConvertUCS2ToUTF8(std::string& _string, const u32 em_address)
char stringBuffer[2048];
char *string = stringBuffer;
if (em_address == 0)
{
_string = "";
return;
}
u16 *src = (u16 *) Memory::GetPointer(em_address);
int c;
while (c = *src++)