diff --git a/peripheral.xarcade/addon.xml.in b/peripheral.xarcade/addon.xml.in index b1249bc8..16fd51f7 100644 --- a/peripheral.xarcade/addon.xml.in +++ b/peripheral.xarcade/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/src/addon.cpp b/src/addon.cpp index 8cb1a863..8d9547b9 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -28,17 +28,12 @@ CPeripheralXArcade::CPeripheralXArcade() : ADDON_STATUS CPeripheralXArcade::Create() { - return GetStatus(); + return ADDON_STATUS_OK; } CPeripheralXArcade::~CPeripheralXArcade() = default; -ADDON_STATUS CPeripheralXArcade::GetStatus() -{ - return ADDON_STATUS_OK; -} - -ADDON_STATUS CPeripheralXArcade::SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue) +ADDON_STATUS CPeripheralXArcade::SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue) { return ADDON_STATUS_OK; } diff --git a/src/addon.h b/src/addon.h index eb6bc10f..0c9b148a 100644 --- a/src/addon.h +++ b/src/addon.h @@ -15,7 +15,7 @@ namespace XARCADE class CXArcadeScanner; } -class ATTRIBUTE_HIDDEN CPeripheralXArcade +class ATTR_DLL_LOCAL CPeripheralXArcade : public kodi::addon::CAddonBase, public kodi::addon::CInstancePeripheral { @@ -24,8 +24,7 @@ class ATTRIBUTE_HIDDEN CPeripheralXArcade ~CPeripheralXArcade() override; ADDON_STATUS Create() override; - ADDON_STATUS GetStatus() override; - ADDON_STATUS SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue) override; + ADDON_STATUS SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue) override; void GetCapabilities(kodi::addon::PeripheralCapabilities& capabilities) override; PERIPHERAL_ERROR PerformDeviceScan(std::vector>& scan_results) override;