From ef2f38279983ad95ec6ab83815b46a4f3480b5f1 Mon Sep 17 00:00:00 2001 From: Jeremy Brown Date: Fri, 22 Nov 2024 11:38:09 -0800 Subject: [PATCH] Updated to UTF8ToString --- Runtime/KongregateWeb.jslib | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Runtime/KongregateWeb.jslib b/Runtime/KongregateWeb.jslib index a8c9e42..43f206d 100755 --- a/Runtime/KongregateWeb.jslib +++ b/Runtime/KongregateWeb.jslib @@ -17,7 +17,7 @@ var LibraryKongregate = { }, $parseJSON: function (stringPointer) { - var stringValue = Pointer_stringify(stringPointer); + var stringValue = UTF8ToString(stringPointer); if (stringValue.trim()) { return JSON.parse(stringValue); } @@ -25,7 +25,7 @@ var LibraryKongregate = { initKongregateAPI: function (gameObjectName) { // Save the name of the Unity GameObject that we will send messages to. - instance.gameObjectName = Pointer_stringify(gameObjectName); + instance.gameObjectName = UTF8ToString(gameObjectName); if (typeof kongregateAPI === 'undefined' || kongregateAPI === null) { instance.sendMessage('OnInitFailed'); @@ -86,7 +86,7 @@ var LibraryKongregate = { }, privateMessage: function (message) { - instance.kongregate.services.privateMessage(Pointer_stringify(message)); + instance.kongregate.services.privateMessage(UTF8ToString(message)); }, resizeGame: function (width, height) { @@ -125,7 +125,7 @@ var LibraryKongregate = { requestUserItemList: function (username) { // TODO: Do we need to explicitly handle if `username` is null? - username = Pointer_stringify(username); + username = UTF8ToString(username); instance.kongregate.mtx.requestUserItemList(username, function (result) { if (result.success) { instance.sendMessage('OnUserItems', JSON.stringify(result.data)); @@ -144,7 +144,7 @@ var LibraryKongregate = { }, submitStats: function (statistic_name, value) { - instance.kongregate.stats.submit(Pointer_stringify(statistic_name), value); + instance.kongregate.stats.submit(UTF8ToString(statistic_name), value); }, };