42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using Axibug;
|
|
using System.IO;
|
|
using UnityEngine;
|
|
using static Axibug.Utility;
|
|
|
|
namespace Game
|
|
{
|
|
public static partial class Utility
|
|
{
|
|
public class Path
|
|
{
|
|
public static string GetLocalVersionFilePath()
|
|
{
|
|
//½Ó¿ÚÁôÆð£¬ÒÔºóÐÞ¸Ä
|
|
return $"{Application.persistentDataPath}/{HotPlatform.versionTxt}";
|
|
}
|
|
|
|
public static string GetRemoteVersionFilePath()
|
|
{
|
|
return Text.Format("{0}/{1}/{2}", AppEntry.BuiltinData.BuildInfo.RootUrl, HotPlatform.GetPlatformPath(), HotPlatform.versionTxt);
|
|
}
|
|
|
|
public static string GetRemoteFilePath(string version, string fileName)
|
|
{
|
|
return Text.Format("{0}/{1}/{2}/{3}", AppEntry.BuiltinData.BuildInfo.RootUrl, HotPlatform.GetPlatformPath(), version, fileName);
|
|
}
|
|
|
|
public static string GetUpdateWriteFilePath(string fileName)
|
|
{
|
|
return $"{Application.persistentDataPath}/{fileName}";
|
|
}
|
|
|
|
public static string GetMetadataAssemblyAsset(string dllName)
|
|
{
|
|
return Text.Format("Assets/HybridCLRBuildCache/AssetBundleSourceData/{0}/{1}.dll.bytes", HotPlatform.GetPlatformPath(), dllName);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|