#ifndef PS2_SYSCALLS_H #define PS2_SYSCALLS_H #include "ps2_runtime.h" #include "ps2_call_list.h" #include #include // Number of active host threads spawned for PS2 thread emulation extern std::atomic g_activeThreads; static std::mutex g_sys_fd_mutex; namespace ps2_syscalls { #define PS2_DECLARE_SYSCALL(name) void name(uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime); PS2_SYSCALL_LIST(PS2_DECLARE_SYSCALL) #undef PS2_DECLARE_SYSCALL bool dispatchNumericSyscall(uint32_t syscallNumber, uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime); void TODO(uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime, uint32_t encodedSyscallId); void notifyRuntimeStop(); } #endif // PS2_SYSCALLS_H