fix(nid): no patch sdl exports for nid

This commit is contained in:
boykopovar
2026-09-14 10:52:04 +03:00
parent b11759bb13
commit 1e4740ed4b
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ Execution reaches `_start`, stack unwinding and exception handling tables are bu
Audio output and video output initialization pass
Reaches the `main` function with render loop (deep call chain, ~64KB stack frame function) - init and shader loading from disk fully complete.
Now: `sceAgcDcbSetFlip not implemented`.
Now: `AGC driver: unsupported PM4 opcode 18 at DWORD 0`.
## Disclaimer
@@ -20,10 +20,15 @@ constexpr char kNidNoPatchCut[] = "_nid_no_patch_cut";
constexpr std::size_t kNidNoPatchCutLen = sizeof(kNidNoPatchCut) - 1u;
constexpr char kNidDisambigMarker[] = "_nid_disambig";
constexpr std::size_t kNidDisambigMarkerLen = sizeof(kNidDisambigMarker) - 1u;
constexpr char kSDLPrefix[] = "SDL_";
constexpr std::size_t kSDLPrefixLen = sizeof(kSDLPrefix) - 1u;
inline bool IsNidNoPatch(const std::string& name) {
return name.size() >= kNidNoPatchLen &&
name.compare(name.size() - kNidNoPatchLen, kNidNoPatchLen, kNidNoPatch) == 0;
return (
name.size() >= kNidNoPatchLen &&
name.compare(name.size() - kNidNoPatchLen, kNidNoPatchLen, kNidNoPatch) == 0
) || name.compare(0, kSDLPrefixLen, kSDLPrefix) == 0;
}
inline bool IsNidNoPatchCut(const std::string& name) {