We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718cfb3 commit 12adde6Copy full SHA for 12adde6
Assets/AndroidIl2cppPatchDemo/Script/VersionSettor.cs
@@ -27,11 +27,21 @@ public void OnClickSetVersion()
27
if (!string.IsNullOrEmpty(error))
28
{
29
messageBox.Show("use failed. empty path error:" + error, "ok", ()=> { messageBox.Close(); });
30
+ return;
31
}
- else
32
+
33
+ string cacheDir = Application.persistentDataPath + "/il2cpp";
34
+ if (Directory.Exists(cacheDir))
35
+ {
36
+ DeleteDirectory(cacheDir);
37
+ }
38
39
40
- StartCoroutine(Restart());
41
+ messageBox.Show("failed to delete pre Unity cached file. path:" + cacheDir, "ok", () => { messageBox.Close(); });
42
43
44
+ StartCoroutine(Restart());
45
return;
46
47
StartCoroutine(PreparePatchAndRestart());
0 commit comments