File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Assets/AndroidIl2cppPatchDemo/Editor Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,15 @@ public static bool ExportGradleProject()
148148 }
149149
150150 //copy the prebuild patch to the assets directory instead of downloading.
151+ string androidProjectPatch1Zip = EXPORTED_ASSETS_PATH + "/AllAndroidPatchFiles_Version1.zip" ;
152+ string androidProjectPatch2Zip = EXPORTED_ASSETS_PATH + "/AllAndroidPatchFiles_Version2.zip" ;
153+ if ( File . Exists ( androidProjectPatch1Zip ) ) { FileUtil . DeleteFileOrDirectory ( androidProjectPatch1Zip ) ; }
154+ if ( File . Exists ( androidProjectPatch2Zip ) ) { FileUtil . DeleteFileOrDirectory ( androidProjectPatch2Zip ) ; }
155+
151156 string patchVersion1Zip = PROJECT_DIR + "/Assets/AndroidIl2cppPatchDemo/PrebuiltPatches/AllAndroidPatchFiles_Version1.zip" ;
152157 string patchVersion2Zip = PROJECT_DIR + "/Assets/AndroidIl2cppPatchDemo/PrebuiltPatches/AllAndroidPatchFiles_Version2.zip" ;
153- if ( File . Exists ( patchVersion1Zip ) ) { FileUtil . MoveFileOrDirectory ( patchVersion1Zip , EXPORTED_ASSETS_PATH + "/AllAndroidPatchFiles_Version1.zip" ) ; }
154- if ( File . Exists ( patchVersion2Zip ) ) { FileUtil . MoveFileOrDirectory ( patchVersion2Zip , EXPORTED_ASSETS_PATH + "/AllAndroidPatchFiles_Version2.zip" ) ; }
158+ if ( File . Exists ( patchVersion1Zip ) ) { FileUtil . CopyFileOrDirectory ( patchVersion1Zip , androidProjectPatch1Zip ) ; }
159+ if ( File . Exists ( patchVersion2Zip ) ) { FileUtil . CopyFileOrDirectory ( patchVersion2Zip , androidProjectPatch2Zip ) ; }
155160 return true ;
156161 }
157162
You can’t perform that action at this time.
0 commit comments