mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed inability to load resources from the map wad when it had read-only flag set.
This commit is contained in:
parent
2499a2155a
commit
c06443c7d1
1 changed files with 2 additions and 2 deletions
|
@ -373,7 +373,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
{
|
||||
// WAD file container
|
||||
case DataLocation.RESOURCE_WAD:
|
||||
c = new WADReader(dl, configlist.Contains(dl));
|
||||
c = new WADReader(dl, configlist.Contains(dl) || new FileInfo(dl.location).IsReadOnly);
|
||||
if(((WADReader)c).WadFile.IsOfficialIWAD) //mxd
|
||||
{
|
||||
if(!string.IsNullOrEmpty(prevofficialiwad))
|
||||
|
@ -389,7 +389,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
|
||||
// PK3 file container
|
||||
case DataLocation.RESOURCE_PK3:
|
||||
c = new PK3Reader(dl, configlist.Contains(dl));
|
||||
c = new PK3Reader(dl, configlist.Contains(dl) || new FileInfo(dl.location).IsReadOnly);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue