少年修仙传客户端基础资源
hch
2024-07-29 23e7b2827ec8ad8a7e3faa3d3c9e0785f471f3c9
0312 debug文件优先级>设置分支
1个文件已修改
16 ■■■■ 已修改文件
Assets/Launch/ResourcesModel.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/ResourcesModel.cs
@@ -108,6 +108,14 @@
        {
            if (Application.isMobilePlatform)
            {
                if (LocalSave.GetString("#@#BrancH") != string.Empty)
                {
                    int tmpbranch;
                    int.TryParse(LocalSave.GetString("#@#BrancH").Substring(1), out tmpbranch);
                    if (tmpbranch != 0)
                        debugBranch = tmpbranch;
                }
                var parentDirectory = Directory.GetParent(Application.persistentDataPath);
                if (File.Exists(parentDirectory + "/Debug"))
                {
@@ -117,14 +125,6 @@
                        var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                        debugBranch = json.branch;
                    }
                }
                if (LocalSave.GetString("#@#BrancH") != string.Empty)
                {
                    int tmpbranch;
                    int.TryParse(LocalSave.GetString("#@#BrancH").Substring(1), out tmpbranch);
                    if (tmpbranch != 0)
                        debugBranch = tmpbranch;
                }
            }
            Clock.Init();