kodi
GUIGameSettingsHandle.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 CGUIGameRenderManager;
18 class IPlayback;
19 
21 {
22 public:
24  virtual ~CGUIGameSettingsHandle();
25 
32  std::string GameClientID();
33 
39  std::string GetPlayingGame();
40 
50  std::string CreateSavestate(bool autosave);
51 
60  bool UpdateSavestate(const std::string& savestatePath);
61 
70  bool LoadSavestate(const std::string& savestatePath);
71 
79  void FreeSavestateResources(const std::string& savestatePath);
80 
84  void CloseOSD();
85 
86 private:
87  // Construction parameters
88  CGUIGameRenderManager& m_renderManager;
89 };
90 } // namespace RETRO
91 } // namespace KODI
Definition: GUIGameSettingsHandle.h:20
std::string CreateSavestate(bool autosave)
Create a savestate of the current game being played.
Definition: GUIGameSettingsHandle.cpp:36
std::string GetPlayingGame()
Get the full path of the game being played.
Definition: GUIGameSettingsHandle.cpp:31
void CloseOSD()
Close the in-game OSD.
Definition: GUIGameSettingsHandle.cpp:56
bool UpdateSavestate(const std::string &savestatePath)
Update a savestate for the current game being played.
Definition: GUIGameSettingsHandle.cpp:41
void FreeSavestateResources(const std::string &savestatePath)
Clear the video frame stored for the given statestate.
Definition: GUIGameSettingsHandle.cpp:51
Definition: AudioDecoder.h:18
bool LoadSavestate(const std::string &savestatePath)
Load a savestate for the current game being played.
Definition: GUIGameSettingsHandle.cpp:46
Class to safely route commands between the GUI and RetroPlayer.
Definition: GUIGameRenderManager.h:69
std::string GameClientID()
Get the ID of the active game client.
Definition: GUIGameSettingsHandle.cpp:26