mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 16:35:36 +00:00
Worked around File.Replace issue on Linux by deleting the existing file first. Not perfectly safe, but acceptable for our use.
This commit is contained in:
parent
92374cff09
commit
0ead2d300e
|
@ -554,10 +554,20 @@ namespace Bind.GL2
|
|||
sw.WriteLine("}");
|
||||
}
|
||||
|
||||
File.Replace(temp_enums_file, Path.Combine(Settings.OutputPath, enumsFile), null);
|
||||
File.Replace(temp_delegates_file, Path.Combine(Settings.OutputPath, delegatesFile), null);
|
||||
File.Replace(temp_core_file, Path.Combine(Settings.OutputPath, importsFile), null);
|
||||
File.Replace(temp_wrappers_file, Path.Combine(Settings.OutputPath, wrappersFile), null);
|
||||
string output_enums = Path.Combine(Settings.OutputPath, enumsFile);
|
||||
string output_delegates = Path.Combine(Settings.OutputPath, delegatesFile);
|
||||
string output_core = Path.Combine(Settings.OutputPath, importsFile);
|
||||
string output_wrappers = Path.Combine(Settings.OutputPath, wrappersFile);
|
||||
|
||||
if (File.Exists(output_enums)) File.Delete(output_enums);
|
||||
if (File.Exists(output_delegates)) File.Delete(output_delegates);
|
||||
if (File.Exists(output_core)) File.Delete(output_core);
|
||||
if (File.Exists(output_wrappers)) File.Delete(output_wrappers);
|
||||
|
||||
File.Move(temp_enums_file, output_enums);
|
||||
File.Move(temp_delegates_file, output_delegates);
|
||||
File.Move(temp_core_file, output_core);
|
||||
File.Move(temp_wrappers_file, output_wrappers);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue