restore stupid lock, make ps4sup library

This commit is contained in:
lizzie
2026-01-22 19:13:56 +00:00
parent ae02326341
commit 9fa8494d2a
21 changed files with 71 additions and 43 deletions
+18
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