fix:1、删除上一个sdk,更换新的。2、删除了max广告
This commit is contained in:
@@ -217,27 +217,27 @@ public class TextureHelper
|
||||
public static string getResPath()
|
||||
{
|
||||
// 删除旧资源
|
||||
if (!DataMgr.curResVersion.Value.IsNullOrWhiteSpace() && DataMgr.curResVersion.Value != ConfigSystem.GetCommonConf().ResVersion)
|
||||
if (!DataMgr.curResVersion.Value.IsNullOrWhiteSpace() && DataMgr.curResVersion.Value != ConfigSystem.GetConfigResVersion())
|
||||
{
|
||||
var oldFolder = Path.Combine(Application.persistentDataPath, DataMgr.curResVersion.Value);
|
||||
if (Directory.Exists(oldFolder))
|
||||
{
|
||||
Directory.Delete(oldFolder, true);
|
||||
}
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetCommonConf().ResVersion;
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetConfigResVersion();
|
||||
}
|
||||
else if (DataMgr.curResVersion.Value.IsNullOrWhiteSpace())
|
||||
{
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetCommonConf().ResVersion;
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetConfigResVersion();
|
||||
}
|
||||
|
||||
if (ConfigSystem.GetCommonConf().ResVersion.IsNullOrWhiteSpace())
|
||||
if (ConfigSystem.GetConfigResVersion().IsNullOrWhiteSpace())
|
||||
{
|
||||
Debug.LogError("获取资源路径失败");
|
||||
return Application.persistentDataPath;
|
||||
}
|
||||
|
||||
string curFolder = Path.Combine(Application.persistentDataPath, ConfigSystem.GetCommonConf().ResVersion);
|
||||
string curFolder = Path.Combine(Application.persistentDataPath, ConfigSystem.GetConfigResVersion());
|
||||
return curFolder;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user