restore stupid lock, make ps4sup library

This commit is contained in:
lizzie 2026-01-22 19:13:56 +00:00
parent f792712a66
commit 9dbd0bb57b
21 changed files with 71 additions and 43 deletions

18
externals/ps4sup/stub.cpp vendored Normal file
View file

@ -0,0 +1,18 @@
#include <stdio.h>
#define STUB_WEAK(name) \
extern "C" void name() { \
printf("called " #name); \
asm volatile("ud2"); \
}
extern "C" void __cxa_thread_atexit_impl() {}
STUB_WEAK(__assert)
STUB_WEAK(ZSTD_trace_compress_begin)
STUB_WEAK(ZSTD_trace_compress_end)
STUB_WEAK(ZSTD_trace_decompress_begin)
STUB_WEAK(ZSTD_trace_decompress_end)
FILE* __stderrp = stdout;
#undef STUB_WEAK