Files
psxrecomp/recompiler/tests/recompiler_patch_cxx17_header_test.cpp
T
Matthew Stanley 5f62dedaa3 fix: inline runtime-visible patch address key
Runtime config parsing uses the physical alias key but does not link the recompiler patch implementation. Keep the dependency-free key in the C++17-compatible header and exercise it in the header smoke test.
2026-07-13 22:36:32 -07:00

14 lines
401 B
C++

#include "recompiler_patch.h"
#include <vector>
int main() {
std::vector<PSXRecompV4::RecompilerPatch> patches;
patches.push_back({"header-smoke", 0x80010000u, 0u, 0u, {}});
return patches.front().id == "header-smoke" &&
PSXRecompV4::recompiler_patch_address_key(
patches.front().address) == 0x00010000u
? 0
: 1;
}