dcnet: update emu network state when connected

This commit is contained in:
Flyinghead 2025-01-21 18:19:39 +01:00
parent 5b513cac5b
commit 536be34853
1 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include "netservice.h"
#include "util/tsqueue.h"
#include "oslib/oslib.h"
#include "emulator.h"
#include <asio.hpp>
#include <thread>
#include <memory>
@ -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) {