mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix crash in sceFontClose().
Still some other issues but Fieldrunners now plays again with tons of errors showing.
This commit is contained in:
parent
4ab5348a8a
commit
128d181558
1 changed files with 9 additions and 3 deletions
|
@ -577,10 +577,16 @@ u32 sceFontOpenUserFile(u32 libHandle, const char *fileName, u32 mode, u32 error
|
|||
}
|
||||
|
||||
int sceFontClose(u32 fontHandle) {
|
||||
INFO_LOG(HLE, "sceFontClose(%x)", fontHandle);
|
||||
LoadedFont *font = GetLoadedFont(fontHandle, false);
|
||||
FontLib *fontLib = font->GetFontLib();
|
||||
fontLib->CloseFont(font);
|
||||
if (font)
|
||||
{
|
||||
INFO_LOG(HLE, "sceFontClose(%x)", fontHandle);
|
||||
FontLib *fontLib = font->GetFontLib();
|
||||
if (fontLib)
|
||||
fontLib->CloseFont(font);
|
||||
}
|
||||
else
|
||||
ERROR_LOG(HLE, "sceFontClose(%x) - font not open?", fontHandle);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue