Template:PatchDiff/May 6, 2011 Patch/bin/sdklauncher/gameinfo.txt

From the Portal Wiki
Jump to: navigation, search
N/A1"GameInfo"
N/A2{
N/A3 FileSystem
N/A4 {
N/A5 SteamAppId 220 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
N/A6 ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
N/A7 
N/A8 //
N/A9 // The code that loads this file automatically does a few things here:
N/A10 //
N/A11 // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
N/A12 // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
N/A13 // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
N/A14 // 3. For the first "Game" search path, it adds a search path called "MOD".
N/A15 // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
N/A16 //
N/A17 
N/A18 //
N/A19 // Search paths are relative to the base directory, which is where hl2.exe is found.
N/A20 //
N/A21 // |gameinfo_path| points at the directory where gameinfo.txt is.
N/A22 // We always want to mount that directory relative to gameinfo.txt, so
N/A23 // people can mount stuff in c:\mymod, and the main game resources are in
N/A24 // someplace like c:\program files\valve\steam\steamapps\<username>\half-life 2.
N/A25 //
N/A26 SearchPaths
N/A27 {
N/A28 Game |gameinfo_path|.
N/A29 Game hl2
N/A30 }
N/A31 }
N/A32}