Skip to content

Commit

Permalink
Merge pull request #42 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 5f90a50 + 11f1de9 commit 0dd5e3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion audiodecoder.sidplay/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="audiodecoder.sidplay"
version="20.1.0"
version="20.2.0"
name="Sidplay Audio Decoder"
provider-name="spiff">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
12 changes: 4 additions & 8 deletions src/SIDCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

#include <kodi/Filesystem.h>

CSIDCodec::CSIDCodec(KODI_HANDLE instance, const std::string& version)
: CInstanceAudioDecoder(instance, version)
CSIDCodec::CSIDCodec(const kodi::addon::IInstanceInfo& instance) : CInstanceAudioDecoder(instance)
{
}

Expand Down Expand Up @@ -181,13 +180,10 @@ class ATTR_DLL_LOCAL CMyAddon : public kodi::addon::CAddonBase
{
public:
CMyAddon() = default;
ADDON_STATUS CreateInstance(int instanceType,
const std::string& instanceID,
KODI_HANDLE instance,
const std::string& version,
KODI_HANDLE& addonInstance) override
ADDON_STATUS CreateInstance(const kodi::addon::IInstanceInfo& instance,
KODI_ADDON_INSTANCE_HDL& hdl) override
{
addonInstance = new CSIDCodec(instance, version);
hdl = new CSIDCodec(instance);
return ADDON_STATUS_OK;
}
virtual ~CMyAddon() = default;
Expand Down
2 changes: 1 addition & 1 deletion src/SIDCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ATTR_DLL_LOCAL CSIDCodec : public kodi::addon::CInstanceAudioDecoder
{
public:
CSIDCodec(KODI_HANDLE instance, const std::string& version);
CSIDCodec(const kodi::addon::IInstanceInfo& instance);
virtual ~CSIDCodec();

bool Init(const std::string& filename,
Expand Down

0 comments on commit 0dd5e3c

Please sign in to comment.