File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- using System . Diagnostics ;
2- using System . IO . Compression ;
3- using System . Runtime . InteropServices ;
1+ using System . Runtime . InteropServices ;
42using System . Security . Cryptography ;
5- using System . Text ;
63using System . Text . Json . Nodes ;
74using System . Xml . Linq ;
8- using ICSharpCode . SharpZipLib . Tar ;
95using ValveKeyValue ;
106
117internal class Program
@@ -174,12 +170,14 @@ Dictionary<string, string> UpdateRedist(string unturnedManagedDirectory)
174170
175171 private static string GetUnturnedDataDirectoryName ( string unturnedPath )
176172 {
177- var headless = Path . Combine ( unturnedPath , "Unturned_Headless_Data" ) ;
173+ const string linuxUnturnedDataDirectoryName = "Unturned_Headless_Data" ;
174+ var headless = Path . Combine ( unturnedPath , linuxUnturnedDataDirectoryName ) ;
178175 if ( Directory . Exists ( headless ) )
179176 {
180177 return headless ;
181178 }
182- var usual = Path . Combine ( unturnedPath , "Unturned_Data" ) ;
179+ const string windowsUnturnedDataDirectoryName = "Unturned_Data" ;
180+ var usual = Path . Combine ( unturnedPath , windowsUnturnedDataDirectoryName ) ;
183181 if ( Directory . Exists ( usual ) )
184182 {
185183 return usual ;
You can’t perform that action at this time.
0 commit comments