mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 11:11:04 +00:00
- converted noautoload and forcesetup flags to CVARs.
This commit is contained in:
parent
4b5ec2aabb
commit
cdc5044f07
33 changed files with 94 additions and 299 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "palette.h"
|
||||
#include "cmdlib.h"
|
||||
#include "grpscan.h"
|
||||
#include "gamecvars.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
# define NEED_SHLWAPI_H
|
||||
|
@ -338,7 +339,7 @@ static int32_t G_LoadGrpDependencyChain(grpfile_t const * const grp)
|
|||
return i;
|
||||
}
|
||||
|
||||
void G_LoadGroups(int32_t autoload)
|
||||
void G_LoadGroups()
|
||||
{
|
||||
if (g_modDir[0] != '/')
|
||||
{
|
||||
|
@ -396,7 +397,7 @@ void G_LoadGroups(int32_t autoload)
|
|||
i = G_TryLoadingGrp(grpfile);
|
||||
}
|
||||
|
||||
if (autoload)
|
||||
if (G_AllowAutoload())
|
||||
{
|
||||
G_LoadGroupsInDir("autoload");
|
||||
|
||||
|
@ -437,7 +438,7 @@ void G_LoadGroups(int32_t autoload)
|
|||
{
|
||||
g_groupFileHandle = j;
|
||||
initprintf("Using file \"%s\" as game data.\n", CommandGrps->str);
|
||||
if (autoload)
|
||||
if (G_AllowAutoload())
|
||||
G_DoAutoload(CommandGrps->str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue