From f15e5b9c74031c7a56ff45f7edb5e526eb23f238 Mon Sep 17 00:00:00 2001 From: DESKTOP-johannes Date: Thu, 14 Nov 2024 14:25:32 +0100 Subject: [PATCH 1/2] - Fixed wrong endpoint - Unsubscribe always to editor update --- Runtime/Editor/Editor UI/LootLockerAdminExtension.cs | 3 +-- Runtime/Editor/LootLockerAdminEndPoints.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs b/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs index 2edf90b6..9c3e8ab5 100644 --- a/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs +++ b/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs @@ -609,14 +609,13 @@ void OnGameSelected(EventBase e) LootLockerAdminManager.GetGameDomainKey(LootLockerEditorData.GetSelectedGame(), (onComplete) => { + EditorApplication.update -= OnEditorUpdate; if (!onComplete.success) { ShowPopup("Error", "Could not find Selected game!"); return; } LootLockerConfig.current.domainKey = onComplete.game.domain_key; - - EditorApplication.update -= OnEditorUpdate; }); diff --git a/Runtime/Editor/LootLockerAdminEndPoints.cs b/Runtime/Editor/LootLockerAdminEndPoints.cs index f66a956d..90fcba2e 100644 --- a/Runtime/Editor/LootLockerAdminEndPoints.cs +++ b/Runtime/Editor/LootLockerAdminEndPoints.cs @@ -16,7 +16,7 @@ public class LootLockerAdminEndPoints [Header("User Information")] public static EndPointClass adminExtensionUserInformation = new EndPointClass("v1/user/all", LootLockerHTTPMethod.GET); public static EndPointClass adminExtensionGetUserRole = new EndPointClass("roles/{0}", LootLockerHTTPMethod.GET); - public static EndPointClass adminExtensionGetGameInformation = new EndPointClass("/game/{0}", LootLockerHTTPMethod.GET); + public static EndPointClass adminExtensionGetGameInformation = new EndPointClass("v1/game/{0}", LootLockerHTTPMethod.GET); } } #endif \ No newline at end of file From e193b663d2021e4bfb3c6854bd8349292cf93c64 Mon Sep 17 00:00:00 2001 From: DESKTOP-johannes Date: Thu, 14 Nov 2024 14:31:19 +0100 Subject: [PATCH 2/2] Updating after domainkey is set --- Runtime/Editor/Editor UI/LootLockerAdminExtension.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs b/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs index 9c3e8ab5..00525598 100644 --- a/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs +++ b/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs @@ -609,13 +609,14 @@ void OnGameSelected(EventBase e) LootLockerAdminManager.GetGameDomainKey(LootLockerEditorData.GetSelectedGame(), (onComplete) => { - EditorApplication.update -= OnEditorUpdate; if (!onComplete.success) { ShowPopup("Error", "Could not find Selected game!"); + EditorApplication.update -= OnEditorUpdate; return; } LootLockerConfig.current.domainKey = onComplete.game.domain_key; + EditorApplication.update -= OnEditorUpdate; });