From: George Wright Date: Thu, 25 Jun 2026 03:03:18 +0000 (-0700) Subject: emubase: add a Uart data sink X-Git-Url: http://git.gwright.org.uk/?a=commitdiff_plain;h=e166f52b1759dbbe4748b2dc365f81536c7ff08c;p=WindEmu.git emubase: add a Uart data sink --- 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*) {}; };