Using CHANNEL_PRINTS to transfer printbuffers to stdout is now working.

This commit is contained in:
2025-12-15 23:35:47 -05:00
parent 9dc974ebca
commit 1b7f917cdf
8 changed files with 52 additions and 17 deletions

View File

@@ -168,10 +168,6 @@ void DrivenEngine::set_console_prompt(const eng::string &prompt) {
console_prompt_ = prompt;
}
void DrivenEngine::rescan_lua_source(bool b) {
rescan_lua_source_ = b;
}
void DrivenEngine::set_visible_world_and_actor(World *w, int64_t id) {
visible_world_ = w;
visible_actor_id_ = id;
@@ -192,6 +188,7 @@ DrivenEngine::DrivenEngine() {
channels_[0] = stdio_channel_;
rescan_lua_source_ = false;
clock_ = 0.0;
have_prints_ = false;
stop_driver_ = false;
}
@@ -381,6 +378,10 @@ double DrivenEngine::drv_get_clock() const {
return clock_;
}
bool DrivenEngine::drv_get_have_prints() const {
return have_prints_;
}
bool DrivenEngine::drv_get_rescan_lua_source() const {
return rescan_lua_source_;
}
@@ -536,6 +537,10 @@ static double drv_get_clock(EngineWrapper *w) {
return w->engine->drv_get_clock();
}
static bool drv_get_have_prints(EngineWrapper *w) {
return w->engine->drv_get_have_prints();
}
static bool drv_get_rescan_lua_source(EngineWrapper *w) {
return w->engine->drv_get_rescan_lua_source();
}
@@ -913,6 +918,7 @@ static void init_engine_wrapper_helper(EngineWrapper *w) {
w->get_outgoing_empty = drv_get_outgoing_empty;
w->get_console_prompt = drv_get_console_prompt;
w->get_clock = drv_get_clock;
w->get_have_prints = drv_get_have_prints;
w->get_rescan_lua_source = drv_get_rescan_lua_source;
w->get_stop_driver = drv_get_stop_driver;
w->get_actor_id = drv_get_actor_id;