diff --git a/README.md b/README.md index d395745af..4f063ea6a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/core/libs/nid/include/nid/NidPatcherUtils.hpp b/core/libs/nid/include/nid/NidPatcherUtils.hpp index cac841883..886296fef 100644 --- a/core/libs/nid/include/nid/NidPatcherUtils.hpp +++ b/core/libs/nid/include/nid/NidPatcherUtils.hpp @@ -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) {