- don't call BaseFileSearch inside of d_iwad.cpp since it is supposed to be treated as a private function.
This commit is contained in:
parent
9a7f727aa4
commit
bcc5830467
3 changed files with 10 additions and 12 deletions
|
|
@ -51,9 +51,6 @@
|
|||
#include "doomerrors.h"
|
||||
#include "v_text.h"
|
||||
|
||||
// external function declarations
|
||||
const char *BaseFileSearch (const char *file, const char *ext, bool lookfirstinprogdir=false);
|
||||
|
||||
CVAR (Bool, queryiwad, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
CVAR (String, defaultiwad, "", CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
|
||||
|
|
@ -491,7 +488,7 @@ void FIWadManager::ValidateIWADs()
|
|||
|
||||
static bool havepicked = false;
|
||||
|
||||
int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad, const char *zdoom_wad)
|
||||
int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad, const char *zdoom_wad, const char *optional_wad)
|
||||
{
|
||||
const char *iwadparm = Args->CheckValue ("-iwad");
|
||||
FString custwad;
|
||||
|
|
@ -691,9 +688,8 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
|||
D_AddFile (wadfiles, zdoom_wad);
|
||||
|
||||
// [SP] Load non-free assets if available. This must be done before the IWAD.
|
||||
const char *optionalassets = BaseFileSearch(OPTIONALWAD, NULL, true);
|
||||
if (optionalassets)
|
||||
D_AddFile(wadfiles, optionalassets);
|
||||
if (optional_wad)
|
||||
D_AddFile(wadfiles, optional_wad);
|
||||
|
||||
if (picks[pick].mRequiredPath.IsNotEmpty())
|
||||
{
|
||||
|
|
@ -730,9 +726,9 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
const FIWADInfo *FIWadManager::FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad)
|
||||
const FIWADInfo *FIWadManager::FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad, const char *optionalwad)
|
||||
{
|
||||
int iwadType = IdentifyVersion(wadfiles, iwad, basewad);
|
||||
int iwadType = IdentifyVersion(wadfiles, iwad, basewad, optionalwad);
|
||||
//gameiwad = iwadType;
|
||||
const FIWADInfo *iwad_info = &mIWadInfos[iwadType];
|
||||
if (DoomStartupInfo.Name.IsEmpty()) DoomStartupInfo.Name = iwad_info->Name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue