mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 19:02:12 +00:00
Fix crash on linux when saving (PR#868 by pac85)
When saving a wad for the second time some code would run that tried to use native windows function and caused a crash.
This commit is contained in:
parent
a2c67a9c5e
commit
b772e0665f
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ namespace CodeImp.DoomBuilder
|
|||
static public FileLockCheckResult CheckFile(string path)
|
||||
{
|
||||
//mxd. Do it the clunky way? (WinXP)
|
||||
if(Environment.OSVersion.Version.Major < 6)
|
||||
if(Environment.OSVersion.Version.Major < 6 || RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
bool locked = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue