- make file system directory printout optional.

This commit is contained in:
Christoph Oelckers 2020-01-10 21:54:18 +01:00
parent 6305714493
commit 4825d66e10

View file

@ -386,6 +386,8 @@ void InitFileSystem(TArray<GrpEntry>& groups)
todelete.Append(userConfig.toBeDeleted);
fileSystem.InitMultipleFiles(Files, todelete, groups.Size());
if (Args->CheckParm("-dumpfs"))
{
FILE* f = fopen("filesystem.dir", "wb");
for (int i = 0; i < fileSystem.GetNumEntries(); i++)
{
@ -393,4 +395,5 @@ void InitFileSystem(TArray<GrpEntry>& groups)
fprintf(f, "%.50s %60s %d\n", fd->FullName(), fileSystem.GetResourceFileFullName(fileSystem.GetFileContainer(i)), fd->Size());
}
fclose(f);
}
}