mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-24 12:51:21 +00:00
Prevent config window from crashing with directory loaded
This commit is contained in:
parent
502308d1bc
commit
7243994446
1 changed files with 2 additions and 1 deletions
|
@ -141,7 +141,8 @@ namespace CodeImp.DoomBuilder
|
||||||
// Location not included?
|
// Location not included?
|
||||||
if(!dl.notfortesting)
|
if(!dl.notfortesting)
|
||||||
{
|
{
|
||||||
if (FilesAreEqual(fi, new FileInfo(dl.location)))
|
// hack to prevent another hack from crashing: don't check directories
|
||||||
|
if (dl.type != DataLocation.RESOURCE_DIRECTORY && FilesAreEqual(fi, new FileInfo(dl.location)))
|
||||||
{
|
{
|
||||||
outp = outp.Replace("%f", "%F");
|
outp = outp.Replace("%f", "%F");
|
||||||
outp = outp.Replace("\"%F\"", "");
|
outp = outp.Replace("\"%F\"", "");
|
||||||
|
|
Loading…
Reference in a new issue