diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h index 79ca778..40979e5 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h | |||
| @@ -1,24 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2014-2017 Team Kodi | 2 | * Copyright (C) 2014-2018 Team Kodi |
| 3 | * http://kodi.tv | 3 | * This file is part of Kodi - https://kodi.tv |
| 4 | * | ||
| 5 | * This Program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 8 | * any later version. | ||
| 9 | * | ||
| 10 | * This Program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this Program; see the file COPYING. If not, see | ||
| 17 | * <http://www.gnu.org/licenses/>. | ||
| 18 | * | 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 6 | * See LICENSES/README.md for more information. | ||
| 19 | */ | 7 | */ |
| 20 | #ifndef KODI_GAME_DLL_H_ | 8 | |
| 21 | #define KODI_GAME_DLL_H_ | 9 | #pragma once |
| 22 | 10 | ||
| 23 | #include "kodi_game_types.h" | 11 | #include "kodi_game_types.h" |
| 24 | 12 | ||
| @@ -40,7 +28,7 @@ GAME_ERROR LoadGame(const char* url); | |||
| 40 | /*! | 28 | /*! |
| 41 | * \brief Load a game that requires multiple files | 29 | * \brief Load a game that requires multiple files |
| 42 | * | 30 | * |
| 43 | * \param type The game stype | 31 | * \param type The game type |
| 44 | * \param urls An array of urls | 32 | * \param urls An array of urls |
| 45 | * \param urlCount The number of urls in the array | 33 | * \param urlCount The number of urls in the array |
| 46 | * | 34 | * |
| @@ -69,13 +57,13 @@ GAME_ERROR LoadStandalone(void); | |||
| 69 | GAME_ERROR UnloadGame(void); | 57 | GAME_ERROR UnloadGame(void); |
| 70 | 58 | ||
| 71 | /*! | 59 | /*! |
| 72 | * \brief Get information about the loaded game | 60 | * \brief Get timing information about the loaded game |
| 73 | * | 61 | * |
| 74 | * \param info The info structure to fill | 62 | * \param info The info structure to fill |
| 75 | * | 63 | * |
| 76 | * \return the error, or GAME_ERROR_NO_ERROR if info was filled | 64 | * \return the error, or GAME_ERROR_NO_ERROR if info was filled |
| 77 | */ | 65 | */ |
| 78 | GAME_ERROR GetGameInfo(game_system_av_info* info); | 66 | GAME_ERROR GetGameTiming(game_system_timing* timing_info); |
| 79 | 67 | ||
| 80 | /*! | 68 | /*! |
| 81 | * \brief Get region of the loaded game | 69 | * \brief Get region of the loaded game |
| @@ -145,7 +133,7 @@ GAME_ERROR HwContextDestroy(void); | |||
| 145 | bool HasFeature(const char* controller_id, const char* feature_name); | 133 | bool HasFeature(const char* controller_id, const char* feature_name); |
| 146 | 134 | ||
| 147 | /*! | 135 | /*! |
| 148 | * \brief Get the input topolgy that specifies which controllers can be connected | 136 | * \brief Get the input topology that specifies which controllers can be connected |
| 149 | * | 137 | * |
| 150 | * \return The input topology, or null to use the default | 138 | * \return The input topology, or null to use the default |
| 151 | * | 139 | * |
| @@ -311,7 +299,7 @@ void __declspec(dllexport) get_addon(void* ptr) | |||
| 311 | pClient->toAddon.LoadGameSpecial = LoadGameSpecial; | 299 | pClient->toAddon.LoadGameSpecial = LoadGameSpecial; |
| 312 | pClient->toAddon.LoadStandalone = LoadStandalone; | 300 | pClient->toAddon.LoadStandalone = LoadStandalone; |
| 313 | pClient->toAddon.UnloadGame = UnloadGame; | 301 | pClient->toAddon.UnloadGame = UnloadGame; |
| 314 | pClient->toAddon.GetGameInfo = GetGameInfo; | 302 | pClient->toAddon.GetGameTiming = GetGameTiming; |
| 315 | pClient->toAddon.GetRegion = GetRegion; | 303 | pClient->toAddon.GetRegion = GetRegion; |
| 316 | pClient->toAddon.RequiresGameLoop = RequiresGameLoop; | 304 | pClient->toAddon.RequiresGameLoop = RequiresGameLoop; |
| 317 | pClient->toAddon.RunFrame = RunFrame; | 305 | pClient->toAddon.RunFrame = RunFrame; |
| @@ -337,4 +325,3 @@ void __declspec(dllexport) get_addon(void* ptr) | |||
| 337 | } | 325 | } |
| 338 | #endif | 326 | #endif |
| 339 | 327 | ||
| 340 | #endif // KODI_GAME_DLL_H_ | ||
