From 816c3f6a0d0365e6d001ab266cc889ea301a2a3b Mon Sep 17 00:00:00 2001 From: jyelon Date: Wed, 25 Feb 2026 17:07:36 -0500 Subject: [PATCH] A little more decoupling, and rename ChannelPrints --- Source/Integration/LockedWrapper.cpp | 3 +-- Source/Integration/LockedWrapper.h | 2 +- Source/Integration/LuprexGameModeBase.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Integration/LockedWrapper.cpp b/Source/Integration/LockedWrapper.cpp index 069cca4d..ccc90e3d 100644 --- a/Source/Integration/LockedWrapper.cpp +++ b/Source/Integration/LockedWrapper.cpp @@ -1,6 +1,5 @@ #include "LockedWrapper.h" -#include "LuprexGameModeBase.h" #include "lpx-drvutil.hpp" #include "lpx-paths.hpp" @@ -31,7 +30,7 @@ void FlxLockedWrapper::InitWrapper() { } } -FString FlxLockedWrapper::FetchStdout() { +FString FlxLockedWrapper::ChannelPrints() { if (Lockable.Wrapper.get_have_prints(Get())) { uint32_t ndata; const char* data; diff --git a/Source/Integration/LockedWrapper.h b/Source/Integration/LockedWrapper.h index 48ea7a3f..ffcc7c76 100644 --- a/Source/Integration/LockedWrapper.h +++ b/Source/Integration/LockedWrapper.h @@ -99,7 +99,7 @@ public: // Fetch Stdout as a string. // - FString FetchStdout(); + FString ChannelPrints(); // Get the current Actor ID. // diff --git a/Source/Integration/LuprexGameModeBase.cpp b/Source/Integration/LuprexGameModeBase.cpp index 80db45c1..df5e5a4d 100644 --- a/Source/Integration/LuprexGameModeBase.cpp +++ b/Source/Integration/LuprexGameModeBase.cpp @@ -112,7 +112,7 @@ void ALuprexGameModeBase::UpdateConsoleOutput() { // Copy Luprex Stdout into the console. FlxLockedWrapper lockedwrap(LockableWrapper); if (Playing) { - FString Text = lockedwrap.FetchStdout(); + FString Text = lockedwrap.ChannelPrints(); if (!Text.IsEmpty()) { ConsoleAddOutput(Text);