Add stub framework for .pbp demos (nowhere near working). Fix an OSK crash.

This commit is contained in:
Henrik Rydgard 2013-04-27 23:16:51 +02:00
parent b603214777
commit b9f45e4530
5 changed files with 95 additions and 24 deletions

View file

@ -220,14 +220,16 @@ int PSPOskDialog::Init(u32 oskPtr)
inputChars = L"";
u16 *src = (u16 *) Memory::GetPointer(oskData.intextPtr);
int c;
while (c = *src++)
{
inputChars += c;
if(c == 0x00)
if (oskData.intextPtr) {
u16 *src = (u16 *) Memory::GetPointer(oskData.intextPtr);
int c;
while (c = *src++)
{
break;
inputChars += c;
if(c == 0x00)
{
break;
}
}
}