Merge pull request #192 from tmaul/master

fake sceFontGetFontList
This commit is contained in:
Henrik Rydgård 2012-12-17 16:03:42 -08:00
commit c75f37fdb6

View File

@ -318,6 +318,22 @@ int sceFontGetCharGlyphImage_Clip(u32 libHandler, u32 charCode, u32 glyphImagePt
return 0; return 0;
} }
int sceFontGetFontList(u32 fontLibHandle, u32 fontStylePtr, u32 numFonts)
{
ERROR_LOG(HLE, "sceFontGetFontList %x, %x, %x", fontLibHandle, fontStylePtr, numFonts);
FontStyle style;
memset(&style, 0, sizeof (style));
style.fontH = 20 / 64.f;
style.fontV = 20 / 64.f;
style.fontHRes = 20 / 64.f;
style.fontVRes = 20 / 64.f;
style.fontStyle = 1;
Memory::WriteStruct(fontStylePtr, &style);
return 0;
}
const HLEFunction sceLibFont[] = const HLEFunction sceLibFont[] =
{ {
@ -325,7 +341,7 @@ const HLEFunction sceLibFont[] =
{0x574b6fbc, WrapI_U<sceFontDoneLib>, "sceFontDoneLib"}, {0x574b6fbc, WrapI_U<sceFontDoneLib>, "sceFontDoneLib"},
{0x48293280, 0, "sceFontSetResolution"}, {0x48293280, 0, "sceFontSetResolution"},
{0x27f6e642, WrapI_UU<sceFontGetNumFontList>, "sceFontGetNumFontList"}, {0x27f6e642, WrapI_UU<sceFontGetNumFontList>, "sceFontGetNumFontList"},
{0xbc75d85b, 0, "sceFontGetFontList"}, {0xbc75d85b, WrapI_UUU<sceFontGetFontList>, "sceFontGetFontList"},
{0x099ef33c, WrapI_UUU<sceFontFindOptimumFont>, "sceFontFindOptimumFont"}, {0x099ef33c, WrapI_UUU<sceFontFindOptimumFont>, "sceFontFindOptimumFont"},
{0x681e61a7, WrapI_UUU<sceFontFindFont>, "sceFontFindFont"}, {0x681e61a7, WrapI_UUU<sceFontFindFont>, "sceFontFindFont"},
{0x2f67356a, 0, "sceFontCalcMemorySize"}, {0x2f67356a, 0, "sceFontCalcMemorySize"},