Ray3 main debug stub

This commit is contained in:
2025-05-30 00:18:17 +08:00
parent ea677e6de7
commit acb9d47e0e
6 changed files with 50 additions and 27 deletions

View File

@@ -1,4 +1,25 @@
#include "r3/config/static.hpp"
#include <spdlog/spdlog.h>
struct R3Bin {
R3Bin() { SPDLOG_DEBUG("R3Bin constructor"); }
static R3Bin& get() {
static R3Bin instance;
return instance;
}
};
uint8_t *gh_map_dbg_mem(size_t addr) {
R3Bin::get();
SPDLOG_DEBUG("Mapping debug memory at {}", addr);
return nullptr;
}
void *gh_stub_impl_ptr(void *ptr) {
R3Bin::get();
SPDLOG_DEBUG("Forwarding implementation at {}", ptr);
return nullptr;
}
void gh_init_dbg_loader() {
SPDLOG_DEBUG("Initializing debug loader");
}

View File

@@ -10,9 +10,6 @@
#include <r3/binders/static_mem.h>
#endif
// Error reporting and such
extern "C" void r3_noop(void *, void *) {}
extern "C" int r3_main(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR *cmdline, int showCmd);