xbmc
IGameCallback.h
1 /*
2  * Copyright (C) 2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <string>
12 
13 namespace KODI
14 {
15 namespace RETRO
16 {
17 class IPlayback;
18 
20 {
21 public:
22  virtual ~IGameCallback() = default;
23 
29  virtual std::string GameClientID() const = 0;
30 
36  virtual std::string GetPlayingGame() const = 0;
37 
45  virtual std::string CreateSavestate(bool autosave) = 0;
46 
54  virtual bool UpdateSavestate(const std::string& savestatePath) = 0;
55 
63  virtual bool LoadSavestate(const std::string& savestatePath) = 0;
64 
70  virtual void FreeSavestateResources(const std::string& savestatePath) = 0;
71 
75  virtual void CloseOSDCallback() = 0;
76 };
77 } // namespace RETRO
78 } // namespace KODI
virtual std::string CreateSavestate(bool autosave)=0
Creates a savestate.
virtual void FreeSavestateResources(const std::string &savestatePath)=0
Frees resources allocated to the savestate, such as its video thumbnail.
Definition: IGameCallback.h:19
virtual bool LoadSavestate(const std::string &savestatePath)=0
Loads a savestate.
Controller configuration window.
Definition: AudioDecoder.h:18
virtual bool UpdateSavestate(const std::string &savestatePath)=0
Updates a savestate with the current game being played.
virtual void CloseOSDCallback()=0
Closes the OSD.
virtual std::string GetPlayingGame() const =0
Get the game that is being played.
virtual std::string GameClientID() const =0
Get the game client being used to play the game.