Ray3 main debug stub
This commit is contained in:
@@ -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");
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user