From 536be34853a7febc0de046a6ad93285a8669d47b Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Tue, 21 Jan 2025 18:19:39 +0100 Subject: [PATCH] dcnet: update emu network state when connected --- core/network/dcnet.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/network/dcnet.cpp b/core/network/dcnet.cpp index a59f3004a..b1c436e9c 100644 --- a/core/network/dcnet.cpp +++ b/core/network/dcnet.cpp @@ -20,6 +20,7 @@ #include "netservice.h" #include "util/tsqueue.h" #include "oslib/oslib.h" +#include "emulator.h" #include #include #include @@ -207,13 +208,16 @@ private: }; static DCNetThread thread; -bool DCNetService::start() { +bool DCNetService::start() +{ + emu.setNetworkState(true); thread.start(); return true; } void DCNetService::stop() { thread.stop(); + emu.setNetworkState(false); } void DCNetService::writeModem(u8 b) {