Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions core/libs/prx/libSceFreeTypeOt/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ int APS5_VABI sceFreeTypeOtOutlineEmboldenXY_nid_no_patch() {
}
APS5_EXPORT("BgUMBGvhATU", sceFreeTypeOtOutlineEmboldenXY_nid_no_patch);

int APS5_VABI sceFreeTypeOtOutlineGetBitmap_nid_no_patch(FreeType::GuestLibrary* library, FreeType::GuestOutline* outline,
const FreeType::GuestBitmap* bitmap) {
return FT_Outline_Get_Bitmap_nid_postfix(library, outline, bitmap);
int APS5_VABI sceFreeTypeOtOutlineGetBitmap_nid_no_patch() {
NotImplemented_nid_no_patch(__func__);
}
APS5_EXPORT("4RRjK-Wd1lU", sceFreeTypeOtOutlineGetBitmap_nid_no_patch);

Expand Down
10 changes: 0 additions & 10 deletions core/libs/tests/GuestFreeTypeOt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ struct Exports {
decltype(&FT_Outline_Get_Orientation_nid_postfix) orientation;
decltype(&FT_Outline_Copy_nid_postfix) copy;
decltype(&FT_Outline_Decompose_nid_postfix) decompose;
decltype(&FT_Outline_Get_Bitmap_nid_postfix) outlineBitmap;
};

struct StrokerExports {
Expand Down Expand Up @@ -186,12 +185,6 @@ void Libraries() {
Require(forwarded.render(library, &shape, &params) == FT_Outline_Render(native, &nativeShape, &nativeParams), "render result");
Require(std::any_of(pixels.begin(), pixels.end(), [](unsigned char pixel) { return pixel != 0; }) && pixels == nativePixels, "rendered pixels");
Require(params.source == &shape, "render source");
std::fill(pixels.begin(), pixels.end(), 0);
std::fill(nativePixels.begin(), nativePixels.end(), 0);
Require(ot.outlineBitmap(library, &shape, &bitmap) == FT_Outline_Get_Bitmap(native, &nativeShape, &nativeBitmap),
"outline bitmap result");
Require(std::any_of(pixels.begin(), pixels.end(), [](unsigned char pixel) { return pixel != 0; }) &&
pixels == nativePixels, "outline bitmap pixels");
}
Require(forwarded.render(nullptr, &shape, nullptr) == FT_Outline_Render(nullptr, &nativeShape, nullptr), "render without library");
Require(forwarded.render(library, nullptr, nullptr) == FT_Outline_Render(native, nullptr, nullptr), "render without outline");
Expand Down Expand Up @@ -446,9 +439,6 @@ int main(int argc, char** argv) {
if (!library) std::fprintf(stderr, "%s\n", dlerror());
#endif
Require(library != nullptr, "load requested library");
Resolve(ot.outlineBitmap, library, patched, "4RRjK-Wd1lU", "sceFreeTypeOtOutlineGetBitmap_nid_no_patch");
Require(ot.outlineBitmap(nullptr, nullptr, nullptr) == FT_Outline_Get_Bitmap(nullptr, nullptr, nullptr),
"outline bitmap without library");
#ifdef _WIN32
const bool forwards = patched;
void* dependency = GetModuleHandleA("libSceFreeType.prx");
Expand Down
4 changes: 1 addition & 3 deletions docs/dev/debt/libSceFreeTypeOt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
- The 136 `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.
### Unknown function info

- [FT_Outline_Get_Bitmap](../../../core/libs/prx/libSceFreeTypeOt/Export.cpp) forwards the matching NID to libSceFreeType's guest outline and bitmap adapter. The adapter converts coordinates and renders into the caller's bitmap with the bundled FreeType rasterizer. The console provider remains unmeasured.

- The FT_Glyph_Get_CBox, FT_Set_Renderer, FT_Outline_Get_Orientation, FT_Sin, FT_Tan, FT_Vector_Unit, FT_Outline_Copy, FT_Outline_Decompose, 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 and FT_Open_Face 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_Get_CBox, FT_Set_Renderer, FT_Outline_Get_Orientation, FT_Sin, FT_Tan, FT_Vector_Unit, FT_Outline_Copy, FT_Outline_Decompose, 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 and FT_Open_Face 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.
- [FT_Glyph_Copy, FT_Has_PS_Glyph_Names, FT_Library_Version, FT_Outline_Done, FT_Outline_New, FT_Outline_Render, FT_Property_Get, FT_Property_Set, FT_QAlloc, FT_QRealloc, FT_Realloc and FT_Remove_Module](../../../core/libs/prx/libSceFreeTypeOt/ForwardExports.cpp) (`Dr3F3qrSQ2c`, `x8y0qzLiYOU`, `5qqbXOGlHw4`, `BqGJsJcFYaM`, `QH2emcgeFck`, `9km02mPqPJE`, `8fAMdZCnewA`, `LsB538+IPrE`, `hz-J3hohXW8`, `KVbmKCGGowg`, `HVSaZbxYi2s`, `5ipBcLYVc2k`) resolve to the libSceFreeType wrappers like the module's other forwarded exports, so the provider's prototypes are assumed to be FreeType's public ones, unverified for its version. Results, limits and throws are those of [the libSceFreeType wrappers](libSceFreeType.md) over the bundled FreeType 2.15.0, not of the provider's 2.4.11-2.4.12 code, and are not compared with a console: `FT_Library_Version` reports 2.15.0 where a device reported 2.4.11 (see the outline entry below).
- The 17 `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.
Expand Down
Loading