Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.

Cheat operations More...

Functions

virtual GAME_ERROR kodi::addon::CInstanceGame::CheatReset ()
 Reset the cheat system. More...
 
virtual GAME_ERROR kodi::addon::CInstanceGame::GetMemory (GAME_MEMORY type, uint8_t *&data, size_t &size)
 Get a region of memory. More...
 
virtual GAME_ERROR kodi::addon::CInstanceGame::SetCheat (unsigned int index, bool enabled, const std::string &code)
 Set a cheat code. More...
 

Detailed Description

Cheat operations


Cheat operation parts in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.

Function Documentation

◆ CheatReset()

virtual GAME_ERROR kodi::addon::CInstanceGame::CheatReset ( )
inlinevirtual

Reset the cheat system.

Returns
the error, or GAME_ERROR_NO_ERROR if the cheat system was reset

◆ GetMemory()

virtual GAME_ERROR kodi::addon::CInstanceGame::GetMemory ( GAME_MEMORY  type,
uint8_t *&  data,
size_t &  size 
)
inlinevirtual

Get a region of memory.

Parameters
[in]typeThe type of memory to retrieve
[in]dataSet to the region of memory; must remain valid until UnloadGame() is called
[in]sizeSet to the size of the region of memory
Returns
the error, or GAME_ERROR_NO_ERROR if data was set to a valid buffer

◆ SetCheat()

virtual GAME_ERROR kodi::addon::CInstanceGame::SetCheat ( unsigned int  index,
bool  enabled,
const std::string &  code 
)
inlinevirtual

Set a cheat code.

Parameters
[in]index
[in]enabled
[in]code
Returns
the error, or GAME_ERROR_NO_ERROR if the cheat was set