mirror of https://github.com/PCSX2/pcsx2.git
Minor fix for the new Shift-JIS console encoding. For some reason FFX sends it an invalid/reserved character. Ignoring invalid/reserved characters for now, pending possible discovery of a better handling of them.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2118 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
24d6221141
commit
a98284c3e8
|
@ -813,7 +813,17 @@ wchar_t ShiftJIS_ConvertChar(const char* input, int& used)
|
|||
}
|
||||
else
|
||||
{
|
||||
used=2;
|
||||
//if( !pxAssert( NumBytes[FirstByte] != 0 ) )
|
||||
if( NumBytes[FirstByte] == 0 )
|
||||
{
|
||||
// FIXME : Hackfixed a null pointer in FFX (during opening scenes). It tries to
|
||||
// print an 0xfc/0x0a combo, followed by a NULL. Other IOP prints seem to have valid
|
||||
// Shift-JIS encodings. not sure what's going on yet, so this needs reviewed sometime
|
||||
// --air
|
||||
used = 1; return (wchar_t)input;
|
||||
}
|
||||
|
||||
used = 2;
|
||||
int SecondByte = (unsigned char)input[1];
|
||||
return TwoBytes[FirstByte][SecondByte];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue