From c97e1049dbc5fb85404ba5567dc795fdf70253b1 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Wed, 9 Sep 2020 13:22:23 +0200 Subject: [PATCH 1/3] API change related code update --- src/client.cpp | 2 +- src/client.h | 2 +- src/input/ControllerLayout.cpp | 2 +- src/input/ControllerLayout.h | 4 ++-- src/input/InputManager.cpp | 2 +- src/input/InputManager.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index d9d19e28..b4b41069 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -329,7 +329,7 @@ void CGameLibRetro::FreeTopology(game_input_topology* topology) CControllerTopology::FreeTopology(topology); } -void CGameLibRetro::SetControllerLayouts(const std::vector& controllers) +void CGameLibRetro::SetControllerLayouts(const std::vector& controllers) { CInputManager::Get().SetControllerLayouts(controllers); } diff --git a/src/client.h b/src/client.h index 4932af4b..9b70c49f 100644 --- a/src/client.h +++ b/src/client.h @@ -52,7 +52,7 @@ class ATTRIBUTE_HIDDEN CGameLibRetro bool HasFeature(const std::string& controller_id, const std::string& feature_name) override; game_input_topology* GetTopology() override; void FreeTopology(game_input_topology* topology) override; - void SetControllerLayouts(const std::vector& controllers) override; + void SetControllerLayouts(const std::vector& controllers) override; bool EnableKeyboard(bool enable, const std::string& controller_id) override; bool EnableMouse(bool enable, const std::string& controller_id) override; bool ConnectController(bool connect, const std::string& port_address, const std::string& controller_id) override; diff --git a/src/input/ControllerLayout.cpp b/src/input/ControllerLayout.cpp index 986d6e62..22e255bb 100644 --- a/src/input/ControllerLayout.cpp +++ b/src/input/ControllerLayout.cpp @@ -9,7 +9,7 @@ using namespace LIBRETRO; -CControllerLayout::CControllerLayout(const AddonGameControllerLayout& controller) : +CControllerLayout::CControllerLayout(const kodi::addon::GameControllerLayout& controller) : m_controller(controller) { } diff --git a/src/input/ControllerLayout.h b/src/input/ControllerLayout.h index cce8c885..262cbd22 100644 --- a/src/input/ControllerLayout.h +++ b/src/input/ControllerLayout.h @@ -19,12 +19,12 @@ namespace LIBRETRO class CControllerLayout { public: - CControllerLayout(const AddonGameControllerLayout& controller); + CControllerLayout(const kodi::addon::GameControllerLayout& controller); const std::string &ControllerID() const { return m_controller.controller_id; } bool ProvidesInput() const { return m_controller.provides_input; } private: - AddonGameControllerLayout m_controller; + kodi::addon::GameControllerLayout m_controller; }; } diff --git a/src/input/InputManager.cpp b/src/input/InputManager.cpp index 6315e015..558cc5de 100644 --- a/src/input/InputManager.cpp +++ b/src/input/InputManager.cpp @@ -39,7 +39,7 @@ libretro_device_caps_t CInputManager::GetDeviceCaps(void) const } -void CInputManager::SetControllerLayouts(const std::vector& controllers) +void CInputManager::SetControllerLayouts(const std::vector& controllers) { m_controllerLayouts.clear(); diff --git a/src/input/InputManager.h b/src/input/InputManager.h index 008dab65..85c12cf0 100644 --- a/src/input/InputManager.h +++ b/src/input/InputManager.h @@ -45,7 +45,7 @@ namespace LIBRETRO /*! * \brief */ - void SetControllerLayouts(const std::vector& controllers); + void SetControllerLayouts(const std::vector& controllers); /*! * \brief Enable the keyboard From d96dbcc1df8fa63d2a51623658537b61b9b1b06c Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Wed, 9 Sep 2020 13:23:45 +0200 Subject: [PATCH 2/3] add Ubuntu Focal to Travis CI test build --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7e8bc607..68e3b8a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,11 @@ matrix: sudo: required compiler: gcc env: DEBIAN_BUILD=true + - os: linux + dist: focal + sudo: required + compiler: gcc + env: DEBIAN_BUILD=true - os: osx osx_image: xcode10.2 From dadb0d26648d054b01afbb418e0b7a6d9e694dc6 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Wed, 9 Sep 2020 13:30:46 +0200 Subject: [PATCH 3/3] increase version to 2.2.0 (API related) --- game.libretro/addon.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.libretro/addon.xml.in b/game.libretro/addon.xml.in index 4ddcac68..cf46e568 100644 --- a/game.libretro/addon.xml.in +++ b/game.libretro/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@