From 527edc32812959e2bf68dca12916e8ae369cf624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 24 Nov 2022 08:42:27 +0100 Subject: [PATCH] Added missing constant Fixes #44 --- gpgs/api/gpgs.script_api | 7 +++++++ gpgs/src/gpgs_extension.cpp | 1 + 2 files changed, 8 insertions(+) diff --git a/gpgs/api/gpgs.script_api b/gpgs/api/gpgs.script_api index e0c9d68..12df111 100644 --- a/gpgs/api/gpgs.script_api +++ b/gpgs/api/gpgs.script_api @@ -242,6 +242,8 @@ - `gpgs.MSG_LOAD_SNAPSHOT` + - `gpgs.MSG_SAVE_SNAPSHOT` + - name: message type: table @@ -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. diff --git a/gpgs/src/gpgs_extension.cpp b/gpgs/src/gpgs_extension.cpp index 8dff6bf..796f117 100644 --- a/gpgs/src/gpgs_extension.cpp +++ b/gpgs/src/gpgs_extension.cpp @@ -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)