From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/GMCommand/GMCmdManager.cs |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Main/System/GMCommand/GMCmdManager.cs b/Main/System/GMCommand/GMCmdManager.cs
index e7a86b0..4f53e5f 100644
--- a/Main/System/GMCommand/GMCmdManager.cs
+++ b/Main/System/GMCommand/GMCmdManager.cs
@@ -1,5 +1,4 @@
-锘縰sing vnxbqy.UI;
-using System.Collections.Generic;
+锘縰sing System.Collections.Generic;
 
 using System.Text;
 using System;
@@ -14,9 +13,13 @@
 
     public override void Init()
     {
-        base.Init();
         GetCmdArray();
-        //SnxxzGame.Instance.AddApplicationOutAction(SetCmdArray);
+        LaunchInHot.Instance.OnApplicationOut += OnApplicationOut;
+    }
+
+    public override void Release()
+    {
+        LaunchInHot.Instance.OnApplicationOut -= OnApplicationOut;
     }
 
 
@@ -85,4 +88,9 @@
         recordCmdlist.Clear();
         LocalSave.DeleteKey(Record_CmdKey);
     }
+
+    void OnApplicationOut()
+    {
+        SetCmdArray();
+    }
 }

--
Gitblit v1.8.0