From e166f52b1759dbbe4748b2dc365f81536c7ff08c Mon Sep 17 00:00:00 2001 From: George Wright Date: Wed, 24 Jun 2026 20:03:18 -0700 Subject: [PATCH] emubase: add a Uart data sink --- WindCore/emubase.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WindCore/emubase.h b/WindCore/emubase.h index ceb0018..f57f43c 100644 --- a/WindCore/emubase.h +++ b/WindCore/emubase.h @@ -128,8 +128,16 @@ public: virtual void setKeyboardKey(EpocKey key, bool value) = 0; virtual void updateTouchInput(int32_t x, int32_t y, bool down) = 0; + void setSerialOutput(std::function serialOutput) { + mSerialOutput = serialOutput; + } + std::function& getSerialOutput() { return mSerialOutput; } + #ifndef __EMSCRIPTEN__ std::unordered_set& breakpoints() { return _breakpoints; } #endif uint64_t currentCycles() const { return passedCycles; } + +private: + std::function mSerialOutput = [&](const char*) {}; }; -- 2.45.2