private void FinalizeAndCleanup(string stagingArea, string assetsDataData, string il2cppDir) { string[] components = new string[] { assetsDataData, "Managed" }; string from = Paths.Combine(components); FileUtil.MoveFileOrDirectory(from, Path.Combine(il2cppDir, "Managed")); string[] textArray2 = new string[] { assetsDataData, "Native" }; string[] textArray3 = new string[] { stagingArea, "libs" }; FileUtil.CopyDirectoryRecursive(Paths.Combine(textArray2), Paths.Combine(textArray3)); string[] textArray4 = new string[] { assetsDataData, "Native" }; FileUtil.DeleteFileOrDirectory(Paths.Combine(textArray4)); string dir = Path.Combine(from, "Resources"); string str3 = Path.Combine(from, "Metadata"); string str4 = Path.Combine(from, "etc"); FileUtil.CreateOrCleanDirectory(str3); FileUtil.CreateOrCleanDirectory(dir); FileUtil.CreateOrCleanDirectory(str4); IL2CPPUtils.CopyEmbeddedResourceFiles(il2cppDir, dir); IL2CPPUtils.CopyMetadataFiles(il2cppDir, str3); IL2CPPUtils.CopyConfigFiles(il2cppDir, str4); }