Functions to manage the addon and get basic information about it
More...
Functions to manage the addon and get basic information about it
◆ AddonPath()
std::string kodi::addon::CInstanceShaderPreset::AddonPath |
( |
| ) |
const |
|
inline |
Used to get the full path where the add-on is installed.
- Returns
- The add-on installation path
◆ 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:
...
{
public:
CGameExample()
{
}
virtual ~CGameExample();
{
}
...
};
#define ATTR_DLL_LOCAL
Definition addon_base.h:86
Definition kodi-dev-kit/include/kodi/AddonBase.h:772
Definition addon-instance/Game.h:118
#define ADDONCREATOR(AddonClass)
Definition kodi-dev-kit/include/kodi/AddonBase.h:2044
◆ CInstanceShaderPreset()
kodi::addon::CInstanceShaderPreset::CInstanceShaderPreset |
( |
| ) |
|
|
inline |
Shader preset class constructor.
Used by an add-on that only supports Shader Presets, and only in one instance.
This class is created in the addon by Kodi.
Here's an example of how to use this class:
...
{
public:
CShaderPresetExample()
{
}
virtual ~CShaderPresetExample();
{
}
...
};
Definition addons/kodi-dev-kit/include/kodi/addon-instance/ShaderPreset.h:33
◆ 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] | extensions | vector list to store available extension |
- Returns
- true if success and extensions present
◆ 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
◆ PresetFileFree()
virtual void kodi::addon::CInstanceShaderPreset::PresetFileFree |
( |
preset_file |
file | ) |
|
|
inlinevirtual |
◆ PresetFileNew()
virtual preset_file kodi::addon::CInstanceShaderPreset::PresetFileNew |
( |
const char * |
path | ) |
|
|
inlinevirtual |
Loads a preset file
- Parameters
-
path | The path to the preset file |
- Returns
- The preset file, or NULL if file doesn't exist
◆ 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
◆ 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] | paths | vector list to store available dll paths |
- Returns
- true if success and dll paths present
◆ 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
◆ ShaderPresetFree()
virtual void kodi::addon::CInstanceShaderPreset::ShaderPresetFree |
( |
video_shader & |
shader | ) |
|
|
inlinevirtual |
Free all state related to shader preset.
- Parameters
-
◆ ShaderPresetRead()
Loads preset file and all associated state (passes, textures, imports, etc)
- Parameters
-
file | Preset file to read from |
shader | Shader passes handle |
- Returns
- True if successful, otherwise false
◆ ShaderPresetResolveParameters()
Resolve all shader parameters belonging to the shader preset.
- Parameters
-
file | Preset file to read from |
shader | Shader passes handle |
- Returns
- True if successful, otherwise false
◆ ShaderPresetWrite()
Save preset and all associated state (passes, textures, imports, etc) to disk.
- Parameters
-
file | Preset file to read from |
shader | Shader passes handle |
◆ 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
◆ UserPath()
std::string kodi::addon::CInstanceShaderPreset::UserPath |
( |
| ) |
const |
|
inline |
Used to get the full path to the add-on's user profile.
- Returns
- Path to the user profile
◆ ~CInstanceGame()
kodi::addon::CInstanceGame::~CInstanceGame |
( |
| ) |
|
|
overridedefault |
◆ ~CInstanceShaderPreset()
kodi::addon::CInstanceShaderPreset::~CInstanceShaderPreset |
( |
| ) |
|
|
overridedefault |