Skip to content

Commit

Permalink
Merge pull request #45 from defold/Issue-44-missing-msg_save_snapshot…
Browse files Browse the repository at this point in the history
…-constant

Added missing MSG_SAVE_SNAPSHOT constant
  • Loading branch information
AGulev committed Jan 5, 2024
2 parents c94562d + 527edc3 commit 3b547a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gpgs/api/gpgs.script_api
Expand Up @@ -242,6 +242,8 @@

- `gpgs.MSG_LOAD_SNAPSHOT`

- `gpgs.MSG_SAVE_SNAPSHOT`


- name: message
type: table
Expand Down Expand Up @@ -867,6 +869,11 @@
desc: The message type that GPGS sends when finishing the asynchronous operation
after calling `gpgs.snapshot_open()`

- name: MSG_SAVE_SNAPSHOT
type: number
desc: The message type that GPGS sends when finishing the asynchronous operation
after calling `gpgs.snapshot_commit_and_close()`

- name: STATUS_SUCCESS
type: number
desc: An operation success.
Expand Down
1 change: 1 addition & 0 deletions gpgs/src/gpgs_extension.cpp
Expand Up @@ -821,6 +821,7 @@ static void LuaInit(lua_State* L)
SETCONSTANT(MSG_SIGN_OUT)
SETCONSTANT(MSG_SHOW_SNAPSHOTS)
SETCONSTANT(MSG_LOAD_SNAPSHOT)
SETCONSTANT(MSG_SAVE_SNAPSHOT)
SETCONSTANT(MSG_GET_ACHIEVEMENTS)
SETCONSTANT(MSG_GET_TOP_SCORES)
SETCONSTANT(MSG_GET_PLAYER_CENTERED_SCORES)
Expand Down

0 comments on commit 3b547a2

Please sign in to comment.