mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 10:40:47 +00:00
- make file system directory printout optional.
This commit is contained in:
parent
6305714493
commit
4825d66e10
1 changed files with 8 additions and 5 deletions
|
@ -386,11 +386,14 @@ void InitFileSystem(TArray<GrpEntry>& groups)
|
||||||
todelete.Append(userConfig.toBeDeleted);
|
todelete.Append(userConfig.toBeDeleted);
|
||||||
fileSystem.InitMultipleFiles(Files, todelete, groups.Size());
|
fileSystem.InitMultipleFiles(Files, todelete, groups.Size());
|
||||||
|
|
||||||
FILE* f = fopen("filesystem.dir", "wb");
|
if (Args->CheckParm("-dumpfs"))
|
||||||
for (int i = 0; i < fileSystem.GetNumEntries(); i++)
|
|
||||||
{
|
{
|
||||||
auto fd = fileSystem.GetFileAt(i);
|
FILE* f = fopen("filesystem.dir", "wb");
|
||||||
fprintf(f, "%.50s %60s %d\n", fd->FullName(), fileSystem.GetResourceFileFullName(fileSystem.GetFileContainer(i)), fd->Size());
|
for (int i = 0; i < fileSystem.GetNumEntries(); i++)
|
||||||
|
{
|
||||||
|
auto fd = fileSystem.GetFileAt(i);
|
||||||
|
fprintf(f, "%.50s %60s %d\n", fd->FullName(), fileSystem.GetResourceFileFullName(fileSystem.GetFileContainer(i)), fd->Size());
|
||||||
|
}
|
||||||
|
fclose(f);
|
||||||
}
|
}
|
||||||
fclose(f);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue