mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-30 02:04:32 -04:00
ccd17e5244
* pad: implement basic input mapping and stubs Add a minimal libpad implementation backed by raylib input Provide override hooks for deterministic tests Add pad input tests and link runtime into test target * FIX: moved pad override test hooks to ps2_call_list.h * pad: move test hooks to X macro list + removing __cplusplus ifdef * removed one last ifdef remaining * refresh PR merge status --------- Co-authored-by: Ranieri <ran-junior@hotmail.com>
29 lines
913 B
C++
29 lines
913 B
C++
#ifndef PS2_STUBS_H
|
|
#define PS2_STUBS_H
|
|
|
|
#include "ps2_runtime.h"
|
|
#include "ps2_call_list.h"
|
|
#include <cstdint>
|
|
|
|
namespace ps2_stubs
|
|
{
|
|
#define PS2_DECLARE_STUB(name) void name(uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime);
|
|
PS2_STUB_LIST(PS2_DECLARE_STUB)
|
|
#undef PS2_DECLARE_STUB
|
|
|
|
#define PS2_DECLARE_TEST_HOOK(name, signature) void name signature;
|
|
PS2_TEST_HOOK_LIST(PS2_DECLARE_TEST_HOOK)
|
|
#undef PS2_DECLARE_TEST_HOOK
|
|
void resetGsSyncVCallbackState();
|
|
void dispatchGsSyncVCallback(uint8_t *rdram, PS2Runtime *runtime);
|
|
|
|
void syMalloc(uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime);
|
|
void sndr_trans_func(uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime);
|
|
|
|
void TODO(uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime);
|
|
void TODO_NAMED(const char *name, uint8_t *rdram, R5900Context *ctx, PS2Runtime *runtime);
|
|
|
|
}
|
|
|
|
#endif // PS2_STUBS_H
|