The problem still persists. It looks like the cause of it is CR (0x0D) linebreaks being ignored. I've looked into RAM dump and that's how this text is represented:
There is also another version of text in memory, which seems to be straight loaded from game's files, not formated for output. Game inserts 0A 00 for automatic line wrapping, and so it works, but not the manual line-breaks, which retain 0D 00.
It's not present in the font (jpn0.pgf, even if it's extracted from PSP), so font.fontInfo.getCharInfo() results in null and JPCSP tries to provide default DebugFont values. Looks like it's not what game expects to get. Simply initializing pspCharInfo and not setting anything fixes manual line breaks in game, so I've added a check if char code is higher or equal to 0x20. Characters below are not supposed to be printable anyway, so I hope it won't have any negative side effects.
It's not present in the font (jpn0.pgf, even if it's extracted from PSP), so font.fontInfo.getCharInfo() results in null and JPCSP tries to provide default DebugFont values. Looks like it's not what game expects to get. Simply initializing pspCharInfo and not setting anything fixes manual line breaks in game, so I've added a check if char code is higher or equal to 0x20. Characters below are not supposed to be printable anyway, so I hope it won't have any negative side effects.
Nice finding!
Fix added in r2895: I've tested it on a real PSP to implement the proper behavior.
Thank you!
Always include a complete log file at INFO level in your reports. Thanks! How to post a log