GLDEFS parser: added "//$GZDB_SKIP" special comment. Parsing of the file is stopped after this comment is encountered.

Updated ZDoom_DECORATE.cfg.
This commit is contained in:
MaxED 2015-03-04 20:05:54 +00:00
parent 518d3db5ae
commit 7dc4aefdd6
2 changed files with 6 additions and 1 deletions

View file

@ -114,7 +114,7 @@ keywords
A_PlayerSkinCheck = "A_PlayerSkinCheck(str state)";
A_SkullPop = "A_SkullPop[(str type = \"BloodySkull\")]";
A_Quake = "A_Quake(int intensity, int duration, int damageradius, int tremorradius[, str sound = \"world/quake\"])";
A_QuakeEx = "A_QuakeEx(int intensityX, int intensityY, int intensityZ, int duration, int damrad, int tremrad[, str sound = \"world/quake\"[, int flags = 0]])";
A_QuakeEx = "A_QuakeEx(int intensityX, int intensityY, int intensityZ, int duration, int damrad, int tremrad[, str sound = \"world/quake\"[, int flags = 0[, float mulwavex = 1[, float mulwavey = 1[, float mulwavez = 1]]]]])";
//Spawn functions
A_TossGib = "A_TossGib";
A_SpawnDebris = "A_SpawnDebris(str type[, bool translation = false[, float horizontal_vel = 1.0[, float vertical_vel = 1.0]]])";
@ -1147,6 +1147,7 @@ constants
QF_RELATIVE;
QF_SCALEDOWN;
QF_SCALEUP;
QF_WAVE;
QF_MAX;
QF_FULLINTENSITY;
}

View file

@ -486,6 +486,10 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
General.ErrorLogger.Add(ErrorType.Error, "Error in '" + sourcefilename + "' at line " + GetCurrentLineNumber() + ": got #include directive with missing or incorrect path: '" + includeLump + "'");
}
}
else if(token == "$gzdb_skip") //mxd
{
break;
}
else
{
// Unknown structure!