fix:1、删除上一个sdk,更换新的。2、删除了max广告
This commit is contained in:
@@ -66,7 +66,9 @@ namespace IgnoreOPS
|
||||
public int ClearRAM;
|
||||
public int CoinsDownload;
|
||||
public string ResVersion;
|
||||
public string ResVersion1;
|
||||
public int MultiModal;
|
||||
public int WVswitch;
|
||||
public int IsOrganic;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -423,11 +423,20 @@ namespace BallKingdomCrush
|
||||
{
|
||||
TextureHelper.SetImgLoader(loader, fileName,
|
||||
(a) => {
|
||||
coverCache[fileName] = a.nativeTexture as Texture2D;
|
||||
callback?.Invoke(coverCache[fileName]);
|
||||
if (a != null && a.nativeTexture != null)
|
||||
{
|
||||
coverCache[fileName] = a.nativeTexture as Texture2D;
|
||||
callback?.Invoke(coverCache[fileName]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"[LiveVideoManager] 封面加载失败: {fileName}");
|
||||
callback?.Invoke(null);
|
||||
}
|
||||
}, "LiveAlbums/", FolderNames.VideoCoversName);
|
||||
}
|
||||
|
||||
|
||||
private IEnumerator ExtractCoverFromVideo(string fileName, string videoPath, Action<Texture2D> callback)
|
||||
{
|
||||
var go = new GameObject("LiveVideoCoverExtractor_" + fileName);
|
||||
|
||||
Reference in New Issue
Block a user