diff --git a/Source/Core/Core/HW/SI/SI_DeviceGBA.cpp b/Source/Core/Core/HW/SI/SI_DeviceGBA.cpp index bdfcd39d6e..8e13b03d04 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceGBA.cpp +++ b/Source/Core/Core/HW/SI/SI_DeviceGBA.cpp @@ -287,11 +287,6 @@ CSIDevice_GBA::CSIDevice_GBA(SIDevices device, int device_number) : ISIDevice(de { } -CSIDevice_GBA::~CSIDevice_GBA() -{ - GBASockServer::Disconnect(); -} - int CSIDevice_GBA::RunBuffer(u8* buffer, int length) { switch (m_next_action) diff --git a/Source/Core/Core/HW/SI/SI_DeviceGBA.h b/Source/Core/Core/HW/SI/SI_DeviceGBA.h index e3819edf88..92d7637ed5 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceGBA.h +++ b/Source/Core/Core/HW/SI/SI_DeviceGBA.h @@ -24,8 +24,6 @@ public: GBASockServer(); ~GBASockServer(); - void Disconnect(); - bool Connect(); bool IsConnected(); void ClockSync(); @@ -33,6 +31,8 @@ public: int Receive(u8* si_buffer); private: + void Disconnect(); + std::unique_ptr m_client; std::unique_ptr m_clock_sync; @@ -44,7 +44,6 @@ class CSIDevice_GBA : public ISIDevice, private GBASockServer { public: CSIDevice_GBA(SIDevices device, int device_number); - ~CSIDevice_GBA(); int RunBuffer(u8* buffer, int length) override; int TransferInterval() override;