mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
AssetBundleCacher 2018 to 2019
This commit is contained in:
+12
-1
@@ -105,7 +105,18 @@ namespace VRCX
|
||||
DownloadProgress = -10;
|
||||
return;
|
||||
}
|
||||
if (!File.Exists(Path.Combine(Program.BaseDirectory, "AssetBundleCacher\\UnityPlayer.dll")))
|
||||
// upgrade from Unity 2018 to 2019
|
||||
var UnityPlayerDll = Path.Combine(Program.BaseDirectory, "AssetBundleCacher\\UnityPlayer.dll");
|
||||
if (File.Exists(UnityPlayerDll))
|
||||
{
|
||||
FileInfo UnityPlayerDllInfo = new FileInfo(UnityPlayerDll);
|
||||
if (UnityPlayerDllInfo.Length == 23399880 || UnityPlayerDllInfo.Length == 37697480)
|
||||
File.Delete(UnityPlayerDll);
|
||||
var UnityData = Path.Combine(Program.BaseDirectory, "AssetBundleCacher\\AssetBundleCacher_Data\\data.unity3d");
|
||||
if (File.Exists(UnityData))
|
||||
File.Delete(UnityData);
|
||||
}
|
||||
if (!File.Exists(UnityPlayerDll))
|
||||
{
|
||||
using (var key = Registry.ClassesRoot.OpenSubKey(@"VRChat\shell\open\command"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user