Fake some of the on screen keyboard

Now games that use it assume the user has input "000000" which seems to
work for most games. Gets Pixel junk monsters deluxe and Worms battle
island in-game
This commit is contained in:
TMaul committed 2012-12-15 16:42:38 +00:00
1 parent ffdc96a06a
commit a2a4248381
9 files changed
+294 -24

No files matched your search

+16
View File
@@ -175,6 +175,22 @@ void GetString(std::string& _string, const u32 em_address)
_string = stringBuffer;
}
// Same as get string but read out 16bit
void GetStringWide(std::string& _string, const u32 em_address)
{
char stringBuffer[2048];
char *string = stringBuffer;
char c;
u32 addr = em_address;
while ((c = (Read_U16(addr))))
{
*string++ = c;
addr+=2;
}
*string++ = '\0';
_string = stringBuffer;
}
const char *GetAddressName(u32 address)
{
// TODO, follow GetPointer