Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

Functions to manage the addon and get basic information about it More...

Functions

 kodi::addon::CInstanceGame::CInstanceGame ()
 Game class constructor.
 
 kodi::addon::CInstanceGame::~CInstanceGame () override=default
 Destructor.
 
std::string kodi::addon::CInstanceGame::GameClientDllPath () const
 Callback to Kodi Function
The path of the game client being loaded.
 
bool kodi::addon::CInstanceGame::ProxyDllPaths (std::vector< std::string > &paths)
 Callback to Kodi Function
Paths to proxy DLLs used to load the game client.
 
bool kodi::addon::CInstanceGame::ResourceDirectories (std::vector< std::string > &dirs)
 Callback to Kodi Function
The "system" directories of the frontend.
 
std::string kodi::addon::CInstanceGame::ProfileDirectory () const
 Callback to Kodi Function
The writable directory of the frontend.
 
bool kodi::addon::CInstanceGame::SupportsVFS () const
 Callback to Kodi Function
The value of the <supports_vfs> property from addon.xml.
 
bool kodi::addon::CInstanceGame::Extensions (std::vector< std::string > &extensions)
 Callback to Kodi Function
The extensions in the <extensions> property from addon.xml.
 

Detailed Description

Functions to manage the addon and get basic information about it

Function Documentation

◆ CInstanceGame()

kodi::addon::CInstanceGame::CInstanceGame ( )
inline

Game class constructor.

Used by an add-on that only supports only Game and only in one instance.

This class is created at addon by Kodi.


Here's example about the use of this:

...
class ATTR_DLL_LOCAL CGameExample
{
public:
CGameExample()
{
}
virtual ~CGameExample();
{
}
...
};
ADDONCREATOR(CGameExample)
#define ATTR_DLL_LOCAL
Definition addon_base.h:86
Definition kodi-dev-kit/include/kodi/AddonBase.h:775
Definition addon-instance/game.h:118
#define ADDONCREATOR(AddonClass)
Definition kodi-dev-kit/include/kodi/AddonBase.h:2047

◆ Extensions()

bool kodi::addon::CInstanceGame::Extensions ( std::vector< std::string > & extensions)
inline

Callback to Kodi Function
The extensions in the <extensions> property from addon.xml.

Parameters
[out]extensionsvector list to store available extension
Returns
true if success and extensions present
Remarks
Only called from addon itself

◆ GameClientDllPath()

std::string kodi::addon::CInstanceGame::GameClientDllPath ( ) const
inline

Callback to Kodi Function
The path of the game client being loaded.

Returns
the used game client Dll path
Remarks
Only called from addon itself

◆ ProfileDirectory()

std::string kodi::addon::CInstanceGame::ProfileDirectory ( ) const
inline

Callback to Kodi Function
The writable directory of the frontend.

This directory can be used to store SRAM, memory cards, high scores, etc, if the game client cannot use the regular memory interface, GetMemoryData().

Returns
the used profile directory
Remarks
Only called from addon itself

◆ ProxyDllPaths()

bool kodi::addon::CInstanceGame::ProxyDllPaths ( std::vector< std::string > & paths)
inline

Callback to Kodi Function
Paths to proxy DLLs used to load the game client.

Parameters
[out]pathsvector list to store available dll paths
Returns
true if success and dll paths present
Remarks
Only called from addon itself

◆ ResourceDirectories()

bool kodi::addon::CInstanceGame::ResourceDirectories ( std::vector< std::string > & dirs)
inline

Callback to Kodi Function
The "system" directories of the frontend.

These directories can be used to store system-specific ROMs such as BIOSes, configuration data, etc.

Returns
the used resource directory
Remarks
Only called from addon itself

◆ SupportsVFS()

bool kodi::addon::CInstanceGame::SupportsVFS ( ) const
inline

Callback to Kodi Function
The value of the <supports_vfs> property from addon.xml.

Returns
true if VFS is supported
Remarks
Only called from addon itself

◆ ~CInstanceGame()

kodi::addon::CInstanceGame::~CInstanceGame ( )
overridedefault

Destructor.