global.set has been implemented, but not diff xmit for globals

This commit is contained in:
2023-04-05 18:41:03 -04:00
parent 74f7686b85
commit f0f4ad8609
10 changed files with 260 additions and 152 deletions

View File

@@ -9,8 +9,10 @@ static void if_error_print_and_exit(const std::string_view str) {
}
}
static void dprintf_callback(const char *oneline) {
fprintf(stderr, "DPRINTF: %s\n", oneline);
static void dprint_callback(const char *oneline, size_t size) {
fwrite("DPRINT:", 1, 7, stderr);
fwrite(oneline, 1, size, stderr);
fwrite("\n", 1, 1, stderr);
fflush(stderr);
}
@@ -546,7 +548,7 @@ class Driver {
// Load the DLL and gain access to its functions.
call_init_engine_wrapper(&engw);
engw.replay_cb_sent_outgoing = replay_cb_sent_outgoing;
engw.hook_dprintf(dprintf_callback);
engw.hook_dprint(dprint_callback);
// If argv contains "replay <filename>", do a replay,
// and then skip everything else.