少年修仙传客户端代码仓库
client_Wu Xijin
2019-05-17 c5070c0f2fffa1ffb537a644d0fc683796729bb1
3335 天生debug包也支持切换分支
1个文件已修改
11 ■■■■■ 已修改文件
System/Debug/DebugUtility.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Debug/DebugUtility.cs
@@ -49,11 +49,14 @@
            if (Application.isMobilePlatform)
            {
                var parentDirectory = Directory.GetParent(Application.persistentDataPath);
                var content = File.ReadAllText(parentDirectory + "/Debug");
                if (!string.IsNullOrEmpty(content))
                if (File.Exists(parentDirectory + "/Debug"))
                {
                    var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                    debugBranch = json.branch;
                    var content = File.ReadAllText(parentDirectory + "/Debug");
                    if (!string.IsNullOrEmpty(content))
                    {
                        var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                        debugBranch = json.branch;
                    }
                }
            }
        }