Merge pull request #12370 from kyon-eth/feat/freetypeot-1360-inventory
feat(libSceFreeTypeOt): declare missing exports and forward base APIs
This commit is contained in:
4 files changed
+396
-71
No files matched your search
@@ -9,6 +9,16 @@ if(MINGW OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
endif()
|
||||
configure_windows_unwind(libSceFreeTypeOt)
|
||||
|
||||
target_sources(libSceFreeTypeOt PRIVATE ForwardExports.cpp)
|
||||
if(APPLE)
|
||||
target_link_libraries(libSceFreeTypeOt PRIVATE "-Wl,-needed_library,$<TARGET_FILE:libSceFreeType>")
|
||||
add_dependencies(libSceFreeTypeOt libSceFreeType)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_link_libraries(libSceFreeTypeOt PRIVATE "-Wl,--no-as-needed" libSceFreeType "-Wl,--as-needed")
|
||||
else()
|
||||
target_link_libraries(libSceFreeTypeOt PRIVATE libSceFreeType)
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_test_executable(guest_freetype_ot_constants_tests ${LIBS_INCLUDE_DIR}/tests/GuestFreeTypeOtConstants.cpp)
|
||||
target_include_directories(guest_freetype_ot_constants_tests PRIVATE ${LIBS_INCLUDE_DIR})
|
||||
|
||||
@@ -183,11 +183,6 @@ int APS5_VABI sceFreeTypeOtUnknown_yrtsLmTfa48_nid_no_patch() {
|
||||
}
|
||||
APS5_EXPORT("yrtsLmTfa48", sceFreeTypeOtUnknown_yrtsLmTfa48_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtNewSize_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("zyezaHweY3U", sceFreeTypeOtNewSize_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtUnknown_C_PpdS5zris_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
@@ -218,11 +213,6 @@ int APS5_VABI sceFreeTypeOtOutlineEmboldenXY_nid_no_patch() {
|
||||
}
|
||||
APS5_EXPORT("BgUMBGvhATU", sceFreeTypeOtOutlineEmboldenXY_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtOutlineGetBBox_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("0Aal-TIC4so", sceFreeTypeOtOutlineGetBBox_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtOutlineGetBitmap_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
@@ -288,11 +278,6 @@ int APS5_VABI sceFreeTypeOtUnknown_8A0cAU4yBVY_nid_no_patch() {
|
||||
}
|
||||
APS5_EXPORT("8A0cAU4yBVY", sceFreeTypeOtUnknown_8A0cAU4yBVY_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtRequestSize_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("PaDk9bdmdhU", sceFreeTypeOtRequestSize_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtUnknown_uK7vGxAQVxM_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
@@ -333,31 +318,6 @@ int APS5_VABI sceFreeTypeOtUnknown_iruPsrXCN7U_nid_no_patch() {
|
||||
}
|
||||
APS5_EXPORT("iruPsrXCN7U", sceFreeTypeOtUnknown_iruPsrXCN7U_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerBeginSubPath_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("xj3tNJptfLI", sceFreeTypeOtStrokerBeginSubPath_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerConicTo_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("TPKhRt1QIeE", sceFreeTypeOtStrokerConicTo_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerCubicTo_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("6+yXRlVrjbc", sceFreeTypeOtStrokerCubicTo_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerDone_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("+RLa-6fbshA", sceFreeTypeOtStrokerDone_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerEndSubPath_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("pBqh-Uh-gns", sceFreeTypeOtStrokerEndSubPath_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerExport_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
@@ -368,41 +328,11 @@ int APS5_VABI sceFreeTypeOtStrokerExportBorder_nid_no_patch() {
|
||||
}
|
||||
APS5_EXPORT("7cIS2cFG3PE", sceFreeTypeOtStrokerExportBorder_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerGetBorderCounts_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("LfyUi-LkdCk", sceFreeTypeOtStrokerGetBorderCounts_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerGetCounts_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("rzIWh7FJnmU", sceFreeTypeOtStrokerGetCounts_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerLineTo_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("cKndiZnt0EA", sceFreeTypeOtStrokerLineTo_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerNew_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("eqGCaeizvWM", sceFreeTypeOtStrokerNew_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerParseOutline_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("RvFx7dv9ThU", sceFreeTypeOtStrokerParseOutline_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerRewind_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("Po8kyd3DlIw", sceFreeTypeOtStrokerRewind_nid_no_patch);
|
||||
|
||||
int APS5_VABI sceFreeTypeOtStrokerSet_nid_no_patch() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
}
|
||||
APS5_EXPORT("B3uU5aDZn94", sceFreeTypeOtStrokerSet_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Trace_Get_Count_nid_no_patch() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,350 @@
|
||||
#include "prx/libSceFreeType/include/Api.hpp"
|
||||
#include "prx/libc/include/general/ExportMacros.hpp"
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
extern "C" {
|
||||
|
||||
int APS5_VABI FT_Activate_SizeForward_nid_no_patch(FreeType::GuestSizeRec* size) {
|
||||
return FT_Activate_Size_nid_postfix(size);
|
||||
}
|
||||
APS5_EXPORT("EBvr2CZnjVo", FT_Activate_SizeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Bitmap_ConvertForward_nid_no_patch(FreeType::GuestLibrary* library, const FreeType::GuestBitmap* source, FreeType::GuestBitmap* target, std::int32_t alignment) {
|
||||
return FT_Bitmap_Convert_nid_postfix(library, source, target, alignment);
|
||||
}
|
||||
APS5_EXPORT("cR-yQldyXvs", FT_Bitmap_ConvertForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Bitmap_CopyForward_nid_no_patch(FreeType::GuestLibrary* library, const FreeType::GuestBitmap* source, FreeType::GuestBitmap* target) {
|
||||
return FT_Bitmap_Copy_nid_postfix(library, source, target);
|
||||
}
|
||||
APS5_EXPORT("1GL9pCFuiHQ", FT_Bitmap_CopyForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Bitmap_DoneForward_nid_no_patch(FreeType::GuestLibrary* library, FreeType::GuestBitmap* bitmap) {
|
||||
return FT_Bitmap_Done_nid_postfix(library, bitmap);
|
||||
}
|
||||
APS5_EXPORT("Mu2upxmY2C8", FT_Bitmap_DoneForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Bitmap_NewForward_nid_no_patch(FreeType::GuestBitmap* bitmap) {
|
||||
return FT_Bitmap_New_nid_postfix(bitmap);
|
||||
}
|
||||
APS5_EXPORT("-AeE58GkM+Q", FT_Bitmap_NewForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Done_FaceForward_nid_no_patch(FreeType::GuestFaceRec* face) {
|
||||
return FT_Done_Face_nid_postfix(face);
|
||||
}
|
||||
APS5_EXPORT("OgFczHko0w8", FT_Done_FaceForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Done_FreeTypeForward_nid_no_patch(FreeType::GuestLibrary* library) {
|
||||
return FT_Done_FreeType_nid_postfix(library);
|
||||
}
|
||||
APS5_EXPORT("dH02CpEEcYk", FT_Done_FreeTypeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Done_SizeForward_nid_no_patch(FreeType::GuestSizeRec* size) {
|
||||
return FT_Done_Size_nid_postfix(size);
|
||||
}
|
||||
APS5_EXPORT("-2rnxRCeHMs", FT_Done_SizeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_CID_From_Glyph_IndexForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t glyphIndex, std::uint32_t* cid) {
|
||||
return FT_Get_CID_From_Glyph_Index_nid_postfix(face, glyphIndex, cid);
|
||||
}
|
||||
APS5_EXPORT("NLwiYXdX5WU", FT_Get_CID_From_Glyph_IndexForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_CID_Is_Internally_CID_KeyedForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint8_t* isCid) {
|
||||
return FT_Get_CID_Is_Internally_CID_Keyed_nid_postfix(face, isCid);
|
||||
}
|
||||
APS5_EXPORT("p-LFZYbDPDU", FT_Get_CID_Is_Internally_CID_KeyedForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_CID_Registry_Ordering_SupplementForward_nid_no_patch(FreeType::GuestFaceRec* face, const char** registry, const char** ordering, std::int32_t* supplement) {
|
||||
return FT_Get_CID_Registry_Ordering_Supplement_nid_postfix(face, registry, ordering, supplement);
|
||||
}
|
||||
APS5_EXPORT("Pr3eI2uGgvU", FT_Get_CID_Registry_Ordering_SupplementForward_nid_no_patch);
|
||||
|
||||
std::int64_t APS5_VABI FT_Get_CMap_FormatForward_nid_no_patch(FreeType::GuestCharMapRec* charmap) {
|
||||
return FT_Get_CMap_Format_nid_postfix(charmap);
|
||||
}
|
||||
APS5_EXPORT("MXgrzq0nh1Q", FT_Get_CMap_FormatForward_nid_no_patch);
|
||||
|
||||
std::uint64_t APS5_VABI FT_Get_CMap_Language_IDForward_nid_no_patch(FreeType::GuestCharMapRec* charmap) {
|
||||
return FT_Get_CMap_Language_ID_nid_postfix(charmap);
|
||||
}
|
||||
APS5_EXPORT("2UZg+FAym4c", FT_Get_CMap_Language_IDForward_nid_no_patch);
|
||||
|
||||
std::uint32_t APS5_VABI FT_Get_Char_IndexForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint64_t charcode) {
|
||||
return FT_Get_Char_Index_nid_postfix(face, charcode);
|
||||
}
|
||||
APS5_EXPORT("obnSzeb-KXk", FT_Get_Char_IndexForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_Charmap_IndexForward_nid_no_patch(FreeType::GuestCharMapRec* charmap) {
|
||||
return FT_Get_Charmap_Index_nid_postfix(charmap);
|
||||
}
|
||||
APS5_EXPORT("edmDMsPE7Zg", FT_Get_Charmap_IndexForward_nid_no_patch);
|
||||
|
||||
std::uint16_t APS5_VABI FT_Get_FSType_FlagsForward_nid_no_patch(FreeType::GuestFaceRec* face) {
|
||||
return FT_Get_FSType_Flags_nid_postfix(face);
|
||||
}
|
||||
APS5_EXPORT("H4eyE4ez7O4", FT_Get_FSType_FlagsForward_nid_no_patch);
|
||||
|
||||
std::uint64_t APS5_VABI FT_Get_First_CharForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t* glyphIndex) {
|
||||
return FT_Get_First_Char_nid_postfix(face, glyphIndex);
|
||||
}
|
||||
APS5_EXPORT("qoysbJFu5sI", FT_Get_First_CharForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_GaspForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t ppem) {
|
||||
return FT_Get_Gasp_nid_postfix(face, ppem);
|
||||
}
|
||||
APS5_EXPORT("l4azYkX86Ds", FT_Get_GaspForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_Glyph_NameForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t glyphIndex, void* buffer, std::uint32_t bufferSize) {
|
||||
return FT_Get_Glyph_Name_nid_postfix(face, glyphIndex, buffer, bufferSize);
|
||||
}
|
||||
APS5_EXPORT("tGmYdLIYT98", FT_Get_Glyph_NameForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_KerningForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t leftGlyph, std::uint32_t rightGlyph, std::uint32_t kernMode, FreeType::GuestVector* kerning) {
|
||||
return FT_Get_Kerning_nid_postfix(face, leftGlyph, rightGlyph, kernMode, kerning);
|
||||
}
|
||||
APS5_EXPORT("LPtlB241JSg", FT_Get_KerningForward_nid_no_patch);
|
||||
|
||||
std::uint32_t APS5_VABI FT_Get_Name_IndexForward_nid_no_patch(FreeType::GuestFaceRec* face, const char* glyphName) {
|
||||
return FT_Get_Name_Index_nid_postfix(face, glyphName);
|
||||
}
|
||||
APS5_EXPORT("sZzliEQrICM", FT_Get_Name_IndexForward_nid_no_patch);
|
||||
|
||||
std::uint64_t APS5_VABI FT_Get_Next_CharForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint64_t charcode, std::uint32_t* glyphIndex) {
|
||||
return FT_Get_Next_Char_nid_postfix(face, charcode, glyphIndex);
|
||||
}
|
||||
APS5_EXPORT("egPbre4QGBI", FT_Get_Next_CharForward_nid_no_patch);
|
||||
|
||||
const char* APS5_VABI FT_Get_Postscript_NameForward_nid_no_patch(FreeType::GuestFaceRec* face) {
|
||||
return FT_Get_Postscript_Name_nid_postfix(face);
|
||||
}
|
||||
APS5_EXPORT("GVnNjpJWCXM", FT_Get_Postscript_NameForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_Sfnt_NameForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t index, FreeType::GuestSfntName* name) {
|
||||
return FT_Get_Sfnt_Name_nid_postfix(face, index, name);
|
||||
}
|
||||
APS5_EXPORT("B4-zPp0EATE", FT_Get_Sfnt_NameForward_nid_no_patch);
|
||||
|
||||
std::uint32_t APS5_VABI FT_Get_Sfnt_Name_CountForward_nid_no_patch(FreeType::GuestFaceRec* face) {
|
||||
return FT_Get_Sfnt_Name_Count_nid_postfix(face);
|
||||
}
|
||||
APS5_EXPORT("fbRv4M+XzL8", FT_Get_Sfnt_Name_CountForward_nid_no_patch);
|
||||
|
||||
const char* APS5_VABI FT_Get_X11_Font_FormatForward_nid_no_patch(FreeType::GuestFaceRec* face) {
|
||||
return FT_Get_X11_Font_Format_nid_postfix(face);
|
||||
}
|
||||
APS5_EXPORT("aWMUKhiwUbk", FT_Get_X11_Font_FormatForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Init_FreeTypeForward_nid_no_patch(FreeType::GuestLibrary** alibrary) {
|
||||
return FT_Init_FreeType_nid_postfix(alibrary);
|
||||
}
|
||||
APS5_EXPORT("GNsiLzm4SH8", FT_Init_FreeTypeForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_List_AddForward_nid_no_patch(FreeType::GuestListRec* list, FreeType::GuestListNodeRec* node) {
|
||||
return FT_List_Add_nid_postfix(list, node);
|
||||
}
|
||||
APS5_EXPORT("ZuYkeoBhJ1Y", FT_List_AddForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_List_FinalizeForward_nid_no_patch(FreeType::GuestListRec* list, FreeType::GuestListDestructor destroy, FreeType::GuestMemoryRec* memory, void* user) {
|
||||
return FT_List_Finalize_nid_postfix(list, destroy, memory, user);
|
||||
}
|
||||
APS5_EXPORT("0SFUOd2K6n0", FT_List_FinalizeForward_nid_no_patch);
|
||||
|
||||
FreeType::GuestListNodeRec* APS5_VABI FT_List_FindForward_nid_no_patch(FreeType::GuestListRec* list, void* data) {
|
||||
return FT_List_Find_nid_postfix(list, data);
|
||||
}
|
||||
APS5_EXPORT("ld-zX5i4Y4I", FT_List_FindForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_List_InsertForward_nid_no_patch(FreeType::GuestListRec* list, FreeType::GuestListNodeRec* node) {
|
||||
return FT_List_Insert_nid_postfix(list, node);
|
||||
}
|
||||
APS5_EXPORT("7VnJtqQSwUU", FT_List_InsertForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_List_IterateForward_nid_no_patch(FreeType::GuestListRec* list, FreeType::GuestListIterator iterator, void* user) {
|
||||
return FT_List_Iterate_nid_postfix(list, iterator, user);
|
||||
}
|
||||
APS5_EXPORT("h32Nw3vc8UE", FT_List_IterateForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_List_RemoveForward_nid_no_patch(FreeType::GuestListRec* list, FreeType::GuestListNodeRec* node) {
|
||||
return FT_List_Remove_nid_postfix(list, node);
|
||||
}
|
||||
APS5_EXPORT("ioVn-Xe8050", FT_List_RemoveForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_List_UpForward_nid_no_patch(FreeType::GuestListRec* list, FreeType::GuestListNodeRec* node) {
|
||||
return FT_List_Up_nid_postfix(list, node);
|
||||
}
|
||||
APS5_EXPORT("QgnaYvwDlPs", FT_List_UpForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Load_CharForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint64_t charCode, std::int32_t loadFlags) {
|
||||
return FT_Load_Char_nid_postfix(face, charCode, loadFlags);
|
||||
}
|
||||
APS5_EXPORT("wPQ0rMK4-JU", FT_Load_CharForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Load_GlyphForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t glyphIndex, std::int32_t loadFlags) {
|
||||
return FT_Load_Glyph_nid_postfix(face, glyphIndex, loadFlags);
|
||||
}
|
||||
APS5_EXPORT("M156RuYoUbU", FT_Load_GlyphForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Load_Sfnt_TableForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint64_t tag, std::int64_t offset, unsigned char* buffer, std::uint64_t* length) {
|
||||
return FT_Load_Sfnt_Table_nid_postfix(face, tag, offset, buffer, length);
|
||||
}
|
||||
APS5_EXPORT("09vKaCuNyqI", FT_Load_Sfnt_TableForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_New_FaceForward_nid_no_patch(FreeType::GuestLibrary* library, const char* filepathname, std::int64_t faceIndex, FreeType::GuestFaceRec** aface) {
|
||||
return FT_New_Face_nid_postfix(library, filepathname, faceIndex, aface);
|
||||
}
|
||||
APS5_EXPORT("j-uMQE+unFY", FT_New_FaceForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_New_Memory_FaceForward_nid_no_patch(FreeType::GuestLibrary* library, const unsigned char* fileBase, std::int64_t fileSize, std::int64_t faceIndex, FreeType::GuestFaceRec** aface) {
|
||||
return FT_New_Memory_Face_nid_postfix(library, fileBase, fileSize, faceIndex, aface);
|
||||
}
|
||||
APS5_EXPORT("40Wa2neSLM0", FT_New_Memory_FaceForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_New_SizeForward_nid_no_patch(FreeType::GuestFaceRec* face, FreeType::GuestSizeRec** asize) {
|
||||
return FT_New_Size_nid_postfix(face, asize);
|
||||
}
|
||||
APS5_EXPORT("zyezaHweY3U", FT_New_SizeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Outline_CheckForward_nid_no_patch(FreeType::GuestOutline* outline) {
|
||||
return FT_Outline_Check_nid_postfix(outline);
|
||||
}
|
||||
APS5_EXPORT("C4a3dGgs+Cc", FT_Outline_CheckForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Outline_Get_CBoxForward_nid_no_patch(const FreeType::GuestOutline* outline, FreeType::GuestBBox* box) {
|
||||
return FT_Outline_Get_CBox_nid_postfix(outline, box);
|
||||
}
|
||||
APS5_EXPORT("8ZxmGwESvSQ", FT_Outline_Get_CBoxForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Outline_ReverseForward_nid_no_patch(FreeType::GuestOutline* outline) {
|
||||
return FT_Outline_Reverse_nid_postfix(outline);
|
||||
}
|
||||
APS5_EXPORT("bH12z-W8uIM", FT_Outline_ReverseForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Outline_TranslateForward_nid_no_patch(const FreeType::GuestOutline* outline, std::int64_t xOffset, std::int64_t yOffset) {
|
||||
return FT_Outline_Translate_nid_postfix(outline, xOffset, yOffset);
|
||||
}
|
||||
APS5_EXPORT("7HoSJ30RWXk", FT_Outline_TranslateForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Reference_FaceForward_nid_no_patch(FreeType::GuestFaceRec* face) {
|
||||
return FT_Reference_Face_nid_postfix(face);
|
||||
}
|
||||
APS5_EXPORT("HkSJXCHCQCU", FT_Reference_FaceForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Render_GlyphForward_nid_no_patch(FreeType::GuestGlyphSlotRec* slot, std::int32_t renderMode) {
|
||||
return FT_Render_Glyph_nid_postfix(slot, renderMode);
|
||||
}
|
||||
APS5_EXPORT("TCRmigbq7lc", FT_Render_GlyphForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Request_SizeForward_nid_no_patch(FreeType::GuestFaceRec* face, const FreeType::GuestSizeRequestRec* request) {
|
||||
return FT_Request_Size_nid_postfix(face, request);
|
||||
}
|
||||
APS5_EXPORT("PaDk9bdmdhU", FT_Request_SizeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Select_CharmapForward_nid_no_patch(FreeType::GuestFaceRec* face, std::int32_t encoding) {
|
||||
return FT_Select_Charmap_nid_postfix(face, encoding);
|
||||
}
|
||||
APS5_EXPORT("G4v5vCrrp40", FT_Select_CharmapForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Select_SizeForward_nid_no_patch(FreeType::GuestFaceRec* face, std::int32_t strikeIndex) {
|
||||
return FT_Select_Size_nid_postfix(face, strikeIndex);
|
||||
}
|
||||
APS5_EXPORT("LlM3ydj7W1s", FT_Select_SizeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Set_Char_SizeForward_nid_no_patch(FreeType::GuestFaceRec* face, std::int64_t charWidth, std::int64_t charHeight, std::uint32_t horizontalResolution, std::uint32_t verticalResolution) {
|
||||
return FT_Set_Char_Size_nid_postfix(face, charWidth, charHeight, horizontalResolution, verticalResolution);
|
||||
}
|
||||
APS5_EXPORT("xuY99Qcb108", FT_Set_Char_SizeForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Set_CharmapForward_nid_no_patch(FreeType::GuestFaceRec* face, FreeType::GuestCharMapRec* charmap) {
|
||||
return FT_Set_Charmap_nid_postfix(face, charmap);
|
||||
}
|
||||
APS5_EXPORT("Caez01BS2mE", FT_Set_CharmapForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Set_Pixel_SizesForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t pixelWidth, std::uint32_t pixelHeight) {
|
||||
return FT_Set_Pixel_Sizes_nid_postfix(face, pixelWidth, pixelHeight);
|
||||
}
|
||||
APS5_EXPORT("lJxMIwj81SQ", FT_Set_Pixel_SizesForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Set_TransformForward_nid_no_patch(FreeType::GuestFaceRec* face, const FreeType::GuestMatrix* matrix, const FreeType::GuestVector* delta) {
|
||||
return FT_Set_Transform_nid_postfix(face, matrix, delta);
|
||||
}
|
||||
APS5_EXPORT("bcM5xfX2SeA", FT_Set_TransformForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Sfnt_Table_InfoForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t tableIndex, std::uint64_t* tag, std::uint64_t* length) {
|
||||
return FT_Sfnt_Table_Info_nid_postfix(face, tableIndex, tag, length);
|
||||
}
|
||||
APS5_EXPORT("oiRP-fp3SN4", FT_Sfnt_Table_InfoForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Outline_Get_BBoxForward_nid_no_patch(FreeType::GuestOutline* outline, FreeType::GuestBBox* boundingBox) {
|
||||
return FT_Outline_Get_BBox_nid_postfix(outline, boundingBox);
|
||||
}
|
||||
APS5_EXPORT("0Aal-TIC4so", FT_Outline_Get_BBoxForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_AdvanceForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t glyphIndex, std::int32_t flags, std::int64_t* advance) {
|
||||
return FT_Get_Advance_nid_postfix(face, glyphIndex, flags, advance);
|
||||
}
|
||||
APS5_EXPORT("dMSDtQsYuJM", FT_Get_AdvanceForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Get_AdvancesForward_nid_no_patch(FreeType::GuestFaceRec* face, std::uint32_t start, std::uint32_t count, std::int32_t flags, std::int64_t* advances) {
|
||||
return FT_Get_Advances_nid_postfix(face, start, count, flags, advances);
|
||||
}
|
||||
APS5_EXPORT("l55oKq6zmrA", FT_Get_AdvancesForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_NewForward_nid_no_patch(FreeType::GuestLibrary* library, void** stroker) {
|
||||
return FT_Stroker_New_nid_postfix(library, stroker);
|
||||
}
|
||||
APS5_EXPORT("eqGCaeizvWM", FT_Stroker_NewForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Stroker_DoneForward_nid_no_patch(void* stroker) {
|
||||
return FT_Stroker_Done_nid_postfix(stroker);
|
||||
}
|
||||
APS5_EXPORT("+RLa-6fbshA", FT_Stroker_DoneForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_GetCountsForward_nid_no_patch(void* stroker, std::uint32_t* points, std::uint32_t* contours) {
|
||||
return FT_Stroker_GetCounts_nid_postfix(stroker, points, contours);
|
||||
}
|
||||
APS5_EXPORT("rzIWh7FJnmU", FT_Stroker_GetCountsForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_BeginSubPathForward_nid_no_patch(void* stroker, const FreeType::GuestVector* to, std::uint8_t open) {
|
||||
return FT_Stroker_BeginSubPath_nid_postfix(stroker, to, open);
|
||||
}
|
||||
APS5_EXPORT("xj3tNJptfLI", FT_Stroker_BeginSubPathForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_LineToForward_nid_no_patch(void* stroker, const FreeType::GuestVector* to) {
|
||||
return FT_Stroker_LineTo_nid_postfix(stroker, to);
|
||||
}
|
||||
APS5_EXPORT("cKndiZnt0EA", FT_Stroker_LineToForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_EndSubPathForward_nid_no_patch(void* stroker) {
|
||||
return FT_Stroker_EndSubPath_nid_postfix(stroker);
|
||||
}
|
||||
APS5_EXPORT("pBqh-Uh-gns", FT_Stroker_EndSubPathForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Stroker_SetForward_nid_no_patch(void* stroker, std::int64_t radius, std::int32_t lineCap, std::int32_t lineJoin, std::int64_t miterLimit) {
|
||||
return FT_Stroker_Set_nid_postfix(stroker, radius, lineCap, lineJoin, miterLimit);
|
||||
}
|
||||
APS5_EXPORT("B3uU5aDZn94", FT_Stroker_SetForward_nid_no_patch);
|
||||
|
||||
void APS5_VABI FT_Stroker_RewindForward_nid_no_patch(void* stroker) {
|
||||
return FT_Stroker_Rewind_nid_postfix(stroker);
|
||||
}
|
||||
APS5_EXPORT("Po8kyd3DlIw", FT_Stroker_RewindForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_GetBorderCountsForward_nid_no_patch(void* stroker, std::int32_t border, std::uint32_t* points, std::uint32_t* contours) {
|
||||
return FT_Stroker_GetBorderCounts_nid_postfix(stroker, border, points, contours);
|
||||
}
|
||||
APS5_EXPORT("LfyUi-LkdCk", FT_Stroker_GetBorderCountsForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_ConicToForward_nid_no_patch(void* stroker, const FreeType::GuestVector* control, const FreeType::GuestVector* to) {
|
||||
return FT_Stroker_ConicTo_nid_postfix(stroker, control, to);
|
||||
}
|
||||
APS5_EXPORT("TPKhRt1QIeE", FT_Stroker_ConicToForward_nid_no_patch);
|
||||
|
||||
int APS5_VABI FT_Stroker_CubicToForward_nid_no_patch(void* stroker, const FreeType::GuestVector* control1, const FreeType::GuestVector* control2, const FreeType::GuestVector* to) {
|
||||
return FT_Stroker_CubicTo_nid_postfix(stroker, control1, control2, to);
|
||||
}
|
||||
APS5_EXPORT("6+yXRlVrjbc", FT_Stroker_CubicToForward_nid_no_patch);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
### Unknown function info
|
||||
|
||||
- The FT_Glyph_Copy, FT_Glyph_Get_CBox, FT_Outline_Get_Orientation, FT_Request_Size, FT_Sin, FT_Tan, FT_Vector_Unit, FT_New_Size, FT_Outline_Copy, FT_Outline_Decompose, FT_Stroker_New, FT_Stroker_Done, FT_Stroker_GetCounts, FT_Stroker_BeginSubPath, FT_Stroker_LineTo, FT_Stroker_EndSubPath, FT_Stroker_Set, FT_Stroker_Rewind, FT_Stroker_GetBorderCounts, FT_Stroker_ConicTo, FT_Stroker_CubicTo, FT_Library_SetLcdFilter, FT_Library_SetLcdFilterWeights, FT_Remove_Module, FT_GlyphSlot_Oblique, FT_GlyphSlot_Embolden, FT_Outline_Embolden, FT_Outline_EmboldenXY, FT_Outline_Transform, FT_Vector_Length, FT_Vector_Rotate, FT_Vector_Polarize, FT_Vector_From_Polar, FT_Outline_Get_Bitmap, FT_Open_Face and FT_Outline_Render NIDs in [Export.cpp](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) are identified, but their provider-specific prototypes and behavior remain unverified. Their named helpers retain the explicit inventory aliases and throw; the separate libSceFreeType implementations do not supply this provider.
|
||||
- The FT_Glyph_Copy, FT_Glyph_Get_CBox, FT_Outline_Get_Orientation, FT_Sin, FT_Tan, FT_Vector_Unit, FT_Outline_Copy, FT_Outline_Decompose, FT_Library_SetLcdFilter, FT_Library_SetLcdFilterWeights, FT_Remove_Module, FT_GlyphSlot_Oblique, FT_GlyphSlot_Embolden, FT_Outline_Embolden, FT_Outline_EmboldenXY, FT_Outline_Transform, FT_Vector_Length, FT_Vector_Rotate, FT_Vector_Polarize, FT_Vector_From_Polar, FT_Outline_Get_Bitmap, FT_Open_Face and FT_Outline_Render NIDs in [Export.cpp](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) are identified, but their provider-specific prototypes and behavior remain unverified. Their named helpers retain the explicit inventory aliases and throw; the separate libSceFreeType implementations do not supply this provider.
|
||||
- The 36 `sceFreeTypeOtUnknown_*_nid_no_patch` exports in [Export.cpp](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) are present in the PS5 3.20 export inventory from [PS5-3.20_Libs](https://github.com/DNNDHH/PS5-3.20_Libs). Their prototypes and behavior are unverified. Each uses the no-parameter import-resolution convention and throws through `NotImplemented_nid_no_patch`; these declarations make no ABI or behavior claim.
|
||||
- Console runtime and other firmware versions are unverified for [FT_Trace_Get_Count and FT_Trace_Get_Name](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp). The [PS5 3.20 inventory](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceFreeTypeOt.c#L2708) identifies NIDs `08-mhD-AAds` and `64XMq6sDxUo`; FreeType declares an integer count and a `const char*` name lookup taking an integer index. Firmware 13.60 shows `xor eax,eax; ret` at `0x10410` and `0x10420`, matching the disabled-tracing return values 0 and null. Both implementations are fixed constants independent of host tracing.
|
||||
|
||||
@@ -14,6 +14,41 @@ The two return-only bodies do not establish parameter counts or parameter widths
|
||||
|
||||
- The import-resolution helpers in [Export.cpp](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) retain the PS5 3.20 NIDs from [PS5-3.20_Libs](https://github.com/DNNDHH/PS5-3.20_Libs), including identified names and still-unidentified exports. Their provider-specific prototypes and behavior are unverified. Each uses the no-parameter import-resolution convention and throws through `NotImplemented_nid_no_patch`; these declarations make no ABI or behavior claim.
|
||||
|
||||
- [Forwarded FreeType exports](../../../core/libs/prx/libSceFreeTypeOt/ForwardExports.cpp) use the existing typed guest wrappers in a single libSceFreeType dependency. Windows exports explicit typed thunks; macOS and Linux retain the dependency and resolve its exports without duplicating wrappers or ownership state. This preserves the existing wrapper contracts; it does not establish equivalence with every firmware revision.
|
||||
|
||||
### Missing data exports
|
||||
|
||||
The following 13.60 data exports remain unavailable. Their guest structure layout, function-pointer ABI and lifetime are unverified. Host FreeType tables are not guest-compatible globals merely because their names match. No placeholder storage is provided.
|
||||
|
||||
| Name | NID | Bytes |
|
||||
| --- | --- | --- |
|
||||
| `sfnt_module_class` | `6wWrq5tb+yk` | 72 |
|
||||
| `tt_cmap0_class_rec` | `yS-FJI-37oc` | 104 |
|
||||
| `tt_cmap2_class_rec` | `ZDvHK6T-sh4` | 104 |
|
||||
| `tt_cmap4_class_rec` | `GBl3n8k9jWY` | 104 |
|
||||
| `tt_cmap6_class_rec` | `fIVxKQHldfk` | 104 |
|
||||
| `tt_cmap8_class_rec` | `RIRv-1FA-yU` | 104 |
|
||||
| `tt_cmap10_class_rec` | `XX2pm0bprEc` | 104 |
|
||||
| `tt_cmap12_class_rec` | `BQs6Wk0OSiw` | 104 |
|
||||
| `tt_cmap13_class_rec` | `q6EWScb8SvU` | 104 |
|
||||
| `tt_cmap14_class_rec` | `UM6KCdqJmqs` | 104 |
|
||||
| `cff_driver_class` | `QCHORyo4-Aw` | 208 |
|
||||
| `cff_cmap_encoding_class_rec` | `TVapRR2giTo` | 80 |
|
||||
| `cff_cmap_unicode_class_rec` | `HhAxSe0AxGc` | 80 |
|
||||
| `psnames_module_class` | `yuOrMQkmgZg` | 72 |
|
||||
| `otv_module_class` | `SwB8EH71bIU` | 72 |
|
||||
| `gxv_module_class` | `1j+o52TClOU` | 72 |
|
||||
| `tt_driver_class` | `KrftZ0w-4Ds` | 208 |
|
||||
| `ft_smooth_renderer_class` | `s1e88GPYMYQ` | 120 |
|
||||
| `ft_smooth_lcd_renderer_class` | `VVDUxERNatk` | 120 |
|
||||
| `ft_smooth_lcdv_renderer_class` | `DRP2CWLtObo` | 120 |
|
||||
|
||||
### Pending dependency exports
|
||||
|
||||
Additional callable NIDs not supplied here remain reserved for open libSceFreeType implementation or export changes. They are not supplied by this batch. Once their base implementations land, Windows requires matching Ot forwarding entries; macOS and Linux must be checked through the retained dependency. Introducing child stubs for those entries would shadow future working providers.
|
||||
|
||||
Windows provider wiring for `FT_Cos`, `FT_Angle_Diff`, `FT_Sin`, `FT_Tan`, `FT_Vector_Unit`, `FT_Outline_Copy`, `FT_Outline_Decompose` and `FT_Outline_Get_Orientation` is reserved for [#11613](https://github.com/boykopovar/AnyPS5/pull/11613). This branch adds no competing Windows thunks for these eight NIDs and retains existing throwing placeholders until that provider change lands; it must be rebased after the provider change. Non-Windows dependency lookup is not a claim of Windows availability before that prerequisite.
|
||||
|
||||
- [ft_corner_is_flat, ft_corner_orientation](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) (libSceFreeTypeOt) - console prototypes and FreeType version equivalence are unverified. The LP64 signatures and 64-bit coordinate calculations follow bundled [FreeType 2.13.3](https://github.com/freetype/freetype/blob/42608f77f20749dd6ddc9e0536788eaad70ea4b5/src/base/ftcalc.c): orientation returns +1 for counter-clockwise turns, -1 for clockwise turns and 0 for collinear inputs using 64-bit coordinate cross-products; flatness compares hypotenuse approximations via the alpha-max-plus-beta-min metric and returns 1 when the corner angle deviation does not exceed the threshold, 0 otherwise.
|
||||
|
||||
- [FT_MulDiv_No_Round, FT_Matrix_Multiply_Scaled, FT_Vector_Transform_Scaled, ft_highpow2](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) (libSceFreeTypeOt) - console prototypes and the FT_LONG64 build option are unverified. FT_Property_Set and ft_highpow2 date this FreeType to 2.4.11-2.5.3, whose stock [ftconfig.h](https://github.com/freetype/freetype/blob/cecf93ef90c660a8b0b45e5adbbfb5ea443fb6b9/include/freetype/config/ftconfig.h#L289-L306) drops FT_LONG64 under `__STDC__` and compiles the 32-bit [FT_MulDiv](https://github.com/freetype/freetype/blob/cecf93ef90c660a8b0b45e5adbbfb5ea443fb6b9/src/base/ftcalc.c#L411-L479). Inputs where that build, the FT_LONG64 build and bundled 2.13.3 can differ throw without writing: an operand above 0x7FFFFFFF in magnitude, a zero divisor with a zero factor, or a quotient above 0xFFFFFFFF. The scaled calls divide each term by 0x10000 * scaling, so |scaling| > 32767 throws; a null matrix or vector is a no-op unless that product overflows.
|
||||
|
||||
Reference in new issue
Block a user