- uncouple the file system from the engine's Printf function.
This is needed to use it in non GZDoom based projects.
This commit is contained in:
parent
9b790d23a8
commit
7fee89d1f5
23 changed files with 270 additions and 243 deletions
|
|
@ -308,8 +308,7 @@ FIWadManager::FIWadManager(const char *firstfn, const char *optfn)
|
|||
fns.Push(firstfn);
|
||||
if (optfn) fns.Push(optfn);
|
||||
|
||||
check.InitMultipleFiles(fns, true);
|
||||
if (check.GetNumEntries() > 0)
|
||||
if (check.InitMultipleFiles(fns, nullptr, nullptr))
|
||||
{
|
||||
int num = check.CheckNumForName("IWADINFO");
|
||||
if (num >= 0)
|
||||
|
|
@ -331,7 +330,7 @@ FIWadManager::FIWadManager(const char *firstfn, const char *optfn)
|
|||
int FIWadManager::ScanIWAD (const char *iwad)
|
||||
{
|
||||
FileSystem check;
|
||||
check.InitSingleFile(iwad, true);
|
||||
check.InitSingleFile(iwad, nullptr);
|
||||
|
||||
mLumpsFound.Resize(mIWadInfos.Size());
|
||||
|
||||
|
|
@ -390,8 +389,7 @@ int FIWadManager::CheckIWADInfo(const char* fn)
|
|||
|
||||
TArray<FString> filenames;
|
||||
filenames.Push(fn);
|
||||
check.InitMultipleFiles(filenames, true, &lfi);
|
||||
if (check.GetNumEntries() > 0)
|
||||
if (check.InitMultipleFiles(filenames, &lfi, nullptr))
|
||||
{
|
||||
int num = check.CheckNumForName("IWADINFO");
|
||||
if (num >= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue