cleaned up some redundant file reads and fixed file opening in the movie player.
As a streaming action this cannot borrow the one from the archive.
This commit is contained in:
parent
3e7ec9118f
commit
df3e82d94c
10 changed files with 31 additions and 17 deletions
|
|
@ -4009,3 +4009,14 @@ CCMD(fs_dir)
|
|||
Printf(PRINT_HIGH | PRINT_NONOTIFY, "%s%-64s %-15s (%5d) %10d %s %s\n", hidden ? TEXTCOLOR_RED : TEXTCOLOR_UNTRANSLATED, fn1, fns, fnid, length, container, hidden ? "(h)" : "");
|
||||
}
|
||||
}
|
||||
|
||||
CCMD(type)
|
||||
{
|
||||
if (argv.argc() < 2) return;
|
||||
int lump = fileSystem.CheckNumForFullName(argv[1]);
|
||||
if (lump >= 0)
|
||||
{
|
||||
auto data = fileSystem.ReadFile(lump);
|
||||
Printf("%.*s\n", data.size(), data.string());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue