From 9f427abb586f9d212bfa73d8be1c4607de840fac Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 11 八月 2018 14:55:09 +0800
Subject: [PATCH] 2192 Debug文件下载

---
 System/Debug/DebugUtility.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/System/Debug/DebugUtility.cs b/System/Debug/DebugUtility.cs
index 27aa1b1..e587248 100644
--- a/System/Debug/DebugUtility.cs
+++ b/System/Debug/DebugUtility.cs
@@ -26,6 +26,9 @@
         }
     }
 
+
+    public int debugBranch = -1;
+
     public void Init()
     {
         if (VersionConfig.Get().debugVersion)
@@ -36,6 +39,12 @@
         {
             var parentDirectory = Directory.GetParent(Application.persistentDataPath);
             debugAccount = File.Exists(parentDirectory + "/Debug");
+
+            if (debugAccount)
+            {
+                var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
+                debugBranch = json.branch;
+            }
         }
     }
 
@@ -72,6 +81,11 @@
     struct DebugAuthority
     {
         public int dbg;
+    }
+
+    public class DebugBranch
+    {
+        public int branch = -1;
     }
 
 }

--
Gitblit v1.8.0