Skip to content

Commit

Permalink
[Game API] Update to Game API v1.0.29 - GetMemory (non const)
Browse files Browse the repository at this point in the history
Change GetMemory to use a non-const pointer. This is necessary for
in-game (SRAM) saves that need to write into the memory.
  • Loading branch information
fetzerch committed Jan 6, 2017
1 parent e9288e0 commit ac41cb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions addons/kodi.game/addon.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="kodi.game" version="1.0.28" provider-name="Team-Kodi">
<backwards-compatibility abi="1.0.28"/>
<addon id="kodi.game" version="1.0.29" provider-name="Team-Kodi">
<backwards-compatibility abi="1.0.29"/>
<requires>
<import addon="xbmc.core" version="0.1.0"/>
</requires>
Expand Down
Expand Up @@ -233,7 +233,7 @@ GAME_ERROR CheatReset(void);
*
* \return the error, or GAME_ERROR_NO_ERROR if data was set to a valid buffer
*/
GAME_ERROR GetMemory(GAME_MEMORY type, const uint8_t** data, size_t* size);
GAME_ERROR GetMemory(GAME_MEMORY type, uint8_t** data, size_t* size);

/*!
* \brief Set a cheat code
Expand Down
6 changes: 3 additions & 3 deletions xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h
Expand Up @@ -21,10 +21,10 @@
#define KODI_GAME_TYPES_H_

/* current game API version */
#define GAME_API_VERSION "1.0.28"
#define GAME_API_VERSION "1.0.29"

/* min. game API version */
#define GAME_MIN_API_VERSION "1.0.28"
#define GAME_MIN_API_VERSION "1.0.29"

#include <stddef.h>
#include <stdint.h>
Expand Down Expand Up @@ -476,7 +476,7 @@ typedef struct KodiToAddonFuncTable_Game
GAME_ERROR (__cdecl* Serialize)(uint8_t*, size_t);
GAME_ERROR (__cdecl* Deserialize)(const uint8_t*, size_t);
GAME_ERROR (__cdecl* CheatReset)(void);
GAME_ERROR (__cdecl* GetMemory)(GAME_MEMORY, const uint8_t**, size_t*);
GAME_ERROR (__cdecl* GetMemory)(GAME_MEMORY, uint8_t**, size_t*);
GAME_ERROR (__cdecl* SetCheat)(unsigned int, bool, const char*);
} KodiToAddonFuncTable_Game;

Expand Down

0 comments on commit ac41cb1

Please sign in to comment.