mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 00:51:37 +00:00
Fixed: lump saving in script editor after editing archive with SLADE.\n Fixed: checking for concurrent modification in script editor while trying to save the lump.
This commit is contained in:
parent
a705e47fb9
commit
a5a942c798
8 changed files with 164 additions and 110 deletions
|
@ -72,8 +72,10 @@ namespace CodeImp.DoomBuilder.Data
|
|||
// Call this to initialize this class
|
||||
protected virtual void Initialize()
|
||||
{
|
||||
// Load all WAD files in the root as WAD resources
|
||||
string[] wadfiles = GetWadFiles();
|
||||
// [ZZ] we can have wad files already. dispose if any.
|
||||
if (wads != null) foreach (WADReader wr in wads) wr.Dispose();
|
||||
// Load all WAD files in the root as WAD resources
|
||||
string[] wadfiles = GetWadFiles();
|
||||
wads = new List<WADReader>(wadfiles.Length);
|
||||
foreach(string w in wadfiles)
|
||||
{
|
||||
|
@ -114,13 +116,13 @@ namespace CodeImp.DoomBuilder.Data
|
|||
foreach(WADReader wr in wads) wr.Resume();
|
||||
base.Resume();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Palette
|
||||
|
||||
// This loads the PLAYPAL palette
|
||||
public override Playpal LoadPalette()
|
||||
#endregion
|
||||
|
||||
#region ================== Palette
|
||||
|
||||
// This loads the PLAYPAL palette
|
||||
public override Playpal LoadPalette()
|
||||
{
|
||||
// Error when suspended
|
||||
if(issuspended) throw new Exception("Data reader is suspended");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue