少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-11 9f427abb586f9d212bfa73d8be1c4607de840fac
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;
    }
}