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

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

No files matched your search

+9 -7
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;
}
}
}