Skip to content

Commit

Permalink
Merge pull request #82 from AlwinEsch/Nexus-change
Browse files Browse the repository at this point in the history
[Nexus] API related update
  • Loading branch information
AlwinEsch authored Jan 1, 2022
2 parents 4659d75 + 74a1ece commit 1aa8266
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion game.libretro/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="game.libretro"
name="Libretro Compatibility"
version="20.0.2"
version="20.1.0"
provider-name="Team Kodi">
<backwards-compatibility abi="1.0.0"/>
<requires>@ADDON_DEPENDS@</requires>
Expand Down
2 changes: 1 addition & 1 deletion src/audio/AudioStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CGameLibRetro;

namespace LIBRETRO
{
class ATTRIBUTE_HIDDEN CAudioStream
class ATTR_DLL_LOCAL CAudioStream
{
public:
CAudioStream();
Expand Down
7 changes: 1 addition & 6 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,13 @@ ADDON_STATUS CGameLibRetro::Create()
return status;
}

return GetStatus();
}

ADDON_STATUS CGameLibRetro::GetStatus()
{
if (!CSettings::Get().IsInitialized())
return ADDON_STATUS_NEED_SETTINGS;

return ADDON_STATUS_OK;
}

ADDON_STATUS CGameLibRetro::SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue)
ADDON_STATUS CGameLibRetro::SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue)
{
if (settingName == "" || settingValue.empty())
return ADDON_STATUS_UNKNOWN;
Expand Down
5 changes: 2 additions & 3 deletions src/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace LIBRETRO
class CGameInfoLoader;
}

class ATTRIBUTE_HIDDEN CGameLibRetro
class ATTR_DLL_LOCAL CGameLibRetro
: public kodi::addon::CAddonBase,
public kodi::addon::CInstanceGame
{
Expand All @@ -27,8 +27,7 @@ class ATTRIBUTE_HIDDEN CGameLibRetro
~CGameLibRetro() 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;

// --- Game operations ---------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/libretro/FrontendBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using namespace LIBRETRO;

void CFrontendBridge::LogFrontend(retro_log_level level, const char *fmt, ...)
{
AddonLog xbmcLevel;
ADDON_LOG xbmcLevel;
switch (level)
{
case RETRO_LOG_DEBUG: xbmcLevel = ADDON_LOG_DEBUG; break;
Expand Down
2 changes: 1 addition & 1 deletion src/libretro/LibretroEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace LIBRETRO
class CClientBridge;
class CLibretroDLL;

class ATTRIBUTE_HIDDEN CLibretroEnvironment
class ATTR_DLL_LOCAL CLibretroEnvironment
{
public:
static CLibretroEnvironment& Get(void);
Expand Down
2 changes: 1 addition & 1 deletion src/log/LogAddon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace LIBRETRO;

// --- TranslateLogLevel() -----------------------------------------------------

AddonLog TranslateLogLevel(SYS_LOG_LEVEL level)
ADDON_LOG TranslateLogLevel(SYS_LOG_LEVEL level)
{
switch (level)
{
Expand Down
2 changes: 1 addition & 1 deletion src/settings/LibretroSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void CLibretroSettings::SetAllSettings(const retro_variable* libretroVariables)

// Query current value for setting from the frontend
std::string valueBuf;
if (kodi::CheckSettingString(variable->key, valueBuf))
if (kodi::addon::CheckSettingString(variable->key, valueBuf))
{
if (std::find(setting.Values().begin(), setting.Values().end(), valueBuf) != setting.Values().end())
{
Expand Down
2 changes: 1 addition & 1 deletion src/settings/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CSettings& CSettings::Get(void)
return _instance;
}

void CSettings::SetSetting(const std::string& strName, const kodi::CSettingValue& value)
void CSettings::SetSetting(const std::string& strName, const kodi::addon::CSettingValue& value)
{
if (strName == SETTING_CROP_OVERSCAN)
{
Expand Down
2 changes: 1 addition & 1 deletion src/settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace LIBRETRO

bool IsInitialized(void) const { return m_bInitialized; }

void SetSetting(const std::string& strName, const kodi::CSettingValue& value);
void SetSetting(const std::string& strName, const kodi::addon::CSettingValue& value);

/*!
* \brief True if the libretro core should crop overscan
Expand Down
2 changes: 1 addition & 1 deletion src/video/VideoStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace LIBRETRO
{
class CVideoGeometry;

class ATTRIBUTE_HIDDEN CVideoStream
class ATTR_DLL_LOCAL CVideoStream
{
public:
CVideoStream();
Expand Down

0 comments on commit 1aa8266

Please sign in to comment.