mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-04 15:06:25 +00: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
@ -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…
Reference in New Issue
Block a user