"GameInfo" { game "Custom" title "Custom" type singleplayer_only supportsvr 1 FileSystem { // // The code that loads this file automatically does a few things here: // // 1. For each "Game" search path, it adds a "GameBin" path, in \bin // 2. For each "Game" search path, it adds another "Game" path in front of it with _ at the end. // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it. // 3. For the first "Game" search path, it adds a search path called "MOD". // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH". // // // Search paths are relative to the base directory, which is where hl2.exe is found. // // |gameinfo_path| points at the directory where gameinfo.txt is. // We always want to mount that directory relative to gameinfo.txt, so // people can mount stuff in c:\mymod, and the main game resources are in // someplace like c:\program files\valve\steam\steamapps\half-life 2. // SearchPaths { // Add the HL2 directory as a game search path. This is also where where writes // to the "game" path go. mod+mod_write+default_write_path |gameinfo_path|. game+game_write custom // Where the game's binaries are gamebin custom/bin // Last, mount in shared HL2 loose files Game |gameinfo_path|. Game |all_source_engine_paths|custom game |all_source_engine_paths|hl2 platform |all_source_engine_paths|platform // We search VPK files before ordinary folders, because most files will be found in // VPK and we can avoid making thousands of file system calls to attempt to open files // in folders where they don't exist. (Searching a VPK is much faster than making an operating // system call.) game |all_source_engine_paths|hl2/hl2_textures.vpk game |all_source_engine_paths|hl2/hl2_sound_misc.vpk game |all_source_engine_paths|hl2/hl2_misc.vpk platform |all_source_engine_paths|platform/platform_misc.vpk } } }