xbmc
Public Member Functions | List of all members
KODI::RETRO::IGameCallback Class Referenceabstract
Inheritance diagram for KODI::RETRO::IGameCallback:
Inheritance graph
[legend]

Public Member Functions

virtual std::string GameClientID () const =0
 Get the game client being used to play the game. More...
 
virtual std::string GetPlayingGame () const =0
 Get the game that is being played. More...
 
virtual std::string CreateSavestate (bool autosave)=0
 Creates a savestate. More...
 
virtual bool UpdateSavestate (const std::string &savestatePath)=0
 Updates a savestate with the current game being played. More...
 
virtual bool LoadSavestate (const std::string &savestatePath)=0
 Loads a savestate. More...
 
virtual void FreeSavestateResources (const std::string &savestatePath)=0
 Frees resources allocated to the savestate, such as its video thumbnail. More...
 
virtual void CloseOSDCallback ()=0
 Closes the OSD.
 

Member Function Documentation

◆ CreateSavestate()

virtual std::string KODI::RETRO::IGameCallback::CreateSavestate ( bool  autosave)
pure virtual

Creates a savestate.

Parameters
autosaveWhether the save type is auto
Returns
The path to the created savestate, or empty on error

Implemented in KODI::RETRO::CRetroPlayer.

◆ FreeSavestateResources()

virtual void KODI::RETRO::IGameCallback::FreeSavestateResources ( const std::string &  savestatePath)
pure virtual

Frees resources allocated to the savestate, such as its video thumbnail.

Parameters
savestatePathThe path to the savestate

Implemented in KODI::RETRO::CRetroPlayer.

◆ GameClientID()

virtual std::string KODI::RETRO::IGameCallback::GameClientID ( ) const
pure virtual

Get the game client being used to play the game.

Returns
The game client's ID, or empty if no game is being played

Implemented in KODI::RETRO::CRetroPlayer.

◆ GetPlayingGame()

virtual std::string KODI::RETRO::IGameCallback::GetPlayingGame ( ) const
pure virtual

Get the game that is being played.

Returns
The path to the game, or empty if no game is being played

Implemented in KODI::RETRO::CRetroPlayer.

◆ LoadSavestate()

virtual bool KODI::RETRO::IGameCallback::LoadSavestate ( const std::string &  savestatePath)
pure virtual

Loads a savestate.

Parameters
savestatePathThe path to the savestate
Returns
True if the savestate was loaded, false on error

Implemented in KODI::RETRO::CRetroPlayer.

◆ UpdateSavestate()

virtual bool KODI::RETRO::IGameCallback::UpdateSavestate ( const std::string &  savestatePath)
pure virtual

Updates a savestate with the current game being played.

Parameters
savestatePathThe path to the savestate
Returns
True if the savestate was updated, false on error

Implemented in KODI::RETRO::CRetroPlayer.


The documentation for this class was generated from the following file: