MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / TouchFile_f

Method TouchFile_f

neo/framework/FileSystem.cpp:2034–2046  ·  view source on GitHub ↗

============ idFileSystemLocal::TouchFile_f The only purpose of this function is to allow game script files to copy arbitrary files furing an "fs_copyfiles 1" run. ============ */

Source from the content-addressed store, hash-verified

2032============
2033*/
2034void idFileSystemLocal::TouchFile_f( const idCmdArgs &args ) {
2035 idFile *f;
2036
2037 if ( args.Argc() != 2 ) {
2038 common->Printf( "Usage: touchFile <file>\n" );
2039 return;
2040 }
2041
2042 f = fileSystemLocal.OpenFileRead( args.Argv( 1 ) );
2043 if ( f ) {
2044 fileSystemLocal.CloseFile( f );
2045 }
2046}
2047
2048/*
2049============

Callers

nothing calls this directly

Calls 5

ArgcMethod · 0.80
OpenFileReadMethod · 0.80
ArgvMethod · 0.80
CloseFileMethod · 0.80
PrintfMethod · 0.45

Tested by

no test coverage detected