- redid autoload handler and resource file filtering to use the newly defined method with multi-part names.

As a result the old 'Group' property could be removed and all other means to get a section name were disabled.
As an example, if the code gets 'doom.doom2.commercial' it will use the following sections in this order:

global.autoload
doom.autoload
doom.doom2.autoload
doom.doom2.commercial.autoload.
This commit is contained in:
Christoph Oelckers 2015-04-06 11:57:12 +02:00
commit 258822ef3b
7 changed files with 24 additions and 37 deletions

View file

@ -163,6 +163,7 @@ FGameConfigFile::FGameConfigFile ()
// Create auto-load sections, so users know what's available.
// Note that this totem pole is the reverse of the order that
// they will appear in the file.
#if 0
CreateSectionAtStart("Harmony.Autoload");
CreateSectionAtStart("UrbanBrawl.Autoload");
CreateSectionAtStart("Chex3.Autoload");
@ -185,6 +186,7 @@ FGameConfigFile::FGameConfigFile ()
CreateSectionAtStart("DoomU.Autoload");
CreateSectionAtStart("Doom1.Autoload");
CreateSectionAtStart("Doom.Autoload");
#endif
CreateSectionAtStart("Global.Autoload");
// The same goes for auto-exec files.
@ -336,9 +338,6 @@ void FGameConfigFile::DoGlobalSetup ()
}
if (last < 211)
{
//RenameSection("Hacx2.Autoload", "hacx.2_0.Autoload");
//RenameSection("Hacx12.Autoload", "hacx.1_2.Autoload");
//RenameSection("Hexen1.Autoload", "hexen.hexen.Autoload");
RenameSection("Chex3.Autoload", "chex.3.Autoload");
RenameSection("Chex1.Autoload", "chex.1.Autoload");
RenameSection("HexenDK.Autoload", "hexen.deathkings.Autoload");