@@ -85,7 +85,7 @@ void CopyNativeLib(string src, string dst) {
8585 dst = Path . Combine ( Path . GetDirectoryName ( dst ) , mappedName ) ;
8686 }
8787
88- File . Copy ( src , dst , true ) ;
88+ File . Copy ( src , dst , overwrite : true ) ;
8989
9090 if ( symlinkPath != null && symlinkPath != dst ) {
9191 File . Delete ( symlinkPath ) ;
@@ -106,19 +106,19 @@ void CopyNativeLib(string src, string dst) {
106106
107107 // Copy our Steamworks.NET.dll
108108 string steamworksLibDst = Path . Combine ( Globals . PathGame , "Steamworks.NET.dll" ) ;
109- File . Copy ( steamworksLibSrc , steamworksLibDst , true ) ;
109+ File . Copy ( steamworksLibSrc , steamworksLibDst , overwrite : true ) ;
110110
111111 // Delete old libraries
112112 foreach ( string libFile in Globals . WindowsNativeLibFileNames )
113113 File . Delete ( Path . Combine ( Globals . PathGame , libFile ) ) ;
114114
115115 foreach ( string libDir in new string [ ] { "lib" , "lib64" , "everest-lib64" , "runtimes" } ) {
116116 if ( Directory . Exists ( Path . Combine ( Globals . PathGame , libDir ) ) )
117- Directory . Delete ( Path . Combine ( Globals . PathGame , libDir ) , true ) ;
117+ Directory . Delete ( Path . Combine ( Globals . PathGame , libDir ) , recursive : true ) ;
118118 }
119119
120120 if ( Globals . PathOSXExecDir != null && Path . Exists ( Path . Combine ( Globals . PathOSXExecDir , "osx" ) ) )
121- Directory . Delete ( Path . Combine ( Globals . PathOSXExecDir , "osx" ) , true ) ;
121+ Directory . Delete ( Path . Combine ( Globals . PathOSXExecDir , "osx" ) , recursive : true ) ;
122122
123123 // Finally make EverestSplash executable
124124 if ( Globals . Platform is Globals . InstallPlatform . Linux or Globals . InstallPlatform . MacOS ) {
@@ -137,7 +137,7 @@ void CopyNativeLib(string src, string dst) {
137137 }
138138
139139 public static void CopyControllerDB ( ) {
140- File . Copy ( Path . Combine ( Globals . PathEverestLib , "gamecontrollerdb.txt" ) , Path . Combine ( Globals . PathGame , "gamecontrollerdb.txt" ) , true ) ;
140+ File . Copy ( Path . Combine ( Globals . PathEverestLib , "gamecontrollerdb.txt" ) , Path . Combine ( Globals . PathGame , "gamecontrollerdb.txt" ) , overwrite : true ) ;
141141 Logger . LogLine ( "Copied gamecontrollerdb.txt" ) ;
142142 }
143143
0 commit comments