- transition to new FileReader interface complete, but untested.
This commit is contained in:
parent
247785bca2
commit
b14ee50d0d
31 changed files with 1253 additions and 1708 deletions
|
|
@ -1947,7 +1947,6 @@ static FString CheckGameInfo(TArray<FString> & pwads)
|
|||
for(int i=pwads.Size()-1; i>=0; i--)
|
||||
{
|
||||
bool isdir = false;
|
||||
FileReader *wadinfo;
|
||||
FResourceFile *resfile;
|
||||
const char *filename = pwads[i];
|
||||
|
||||
|
|
@ -1960,16 +1959,13 @@ static FString CheckGameInfo(TArray<FString> & pwads)
|
|||
|
||||
if (!isdir)
|
||||
{
|
||||
try
|
||||
{
|
||||
wadinfo = new FileReader(filename);
|
||||
}
|
||||
catch (CRecoverableError &)
|
||||
FileRdr fr;
|
||||
if (!fr.OpenFile(filename))
|
||||
{
|
||||
// Didn't find file
|
||||
continue;
|
||||
}
|
||||
resfile = FResourceFile::OpenResourceFile(filename, wadinfo, true);
|
||||
resfile = FResourceFile::OpenResourceFile(filename, fr, true);
|
||||
}
|
||||
else
|
||||
resfile = FResourceFile::OpenDirectory(filename, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue