From 266e2305f68be7b6034459149b22f33b9f798356 Mon Sep 17 00:00:00 2001 From: mborik128 Date: Thu, 4 Jul 2024 00:45:53 +0200 Subject: [PATCH] fixing build --- src/Joy4004482.cpp | 5 +++-- src/Joy4004482.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Joy4004482.cpp b/src/Joy4004482.cpp index 0bea7b8..ce64f3d 100644 --- a/src/Joy4004482.cpp +++ b/src/Joy4004482.cpp @@ -16,12 +16,13 @@ along with this program. If not, see . */ //--------------------------------------------------------------------------- +#include #include "Joy4004482.h" //--------------------------------------------------------------------------- Joy4004482::Joy4004482(IifGPIO *pio, TSettings::SetJoystick* settings) { if (!pio) - throw std::invalid_argument("Required GPIO not initialized!"); + throw std::runtime_error("Required GPIO not initialized!"); this->pio = pio; this->settings = settings; @@ -46,7 +47,7 @@ Joy4004482::~Joy4004482() } } //--------------------------------------------------------------------------- -bool Joy4004482::Connect() +void Joy4004482::Connect() { if (joyCnt > 0) { pio->OnCpuReadA.disconnect(this); diff --git a/src/Joy4004482.h b/src/Joy4004482.h index 0f35c2d..687923a 100644 --- a/src/Joy4004482.h +++ b/src/Joy4004482.h @@ -39,7 +39,7 @@ class Joy4004482 : public sigslot::has_slots<> Joy4004482(IifGPIO *pio, TSettings::SetJoystick* settings); virtual ~Joy4004482(); - bool Connect(); + void Connect(); int GetControllers(SDL_GameController ***controllers, bool refresh = false); void ScanJoy(BYTE *keyBuffer);