1 #ifndef _INCLUDE_INSTALLER_GAMES_LIST_H_
2 #define _INCLUDE_INSTALLER_GAMES_LIST_H_
4 #include "platform_headers.h"
6 #define GAMEINFO_IS_USABLE 0
7 #define GAMEINFO_DOES_NOT_EXIST 1
8 #define GAMEINFO_IS_READ_ONLY 2
10 #define GAME_LIST_HALFLIFE1 -2
11 #define GAME_LIST_CANT_READ -1
12 #define GAME_LIST_NO_GAMES 0
14 #define GAMES_DEDICATED 1
15 #define GAMES_LISTEN 2
16 #define GAMES_STANDALONE 3
18 #define SOURCE_ENGINE_UNKNOWN 0
19 #define SOURCE_ENGINE_2004 1
20 #define SOURCE_ENGINE_2007 2
25 const TCHAR *subfolder;
33 TCHAR game_path[MAX_PATH];
37 /* A list of games under one "account" */
42 unsigned int game_count;
45 /* A list of accounts */
49 unsigned int list_count;
53 /* All games on the system */
54 struct game_database_t
56 game_info_t *game_list;
57 unsigned int game_count;
58 game_group_t dedicated;
60 game_group_t standalone;
63 int IsValidFolder(const TCHAR *path);
64 void DisplayBadFolderDialog(HWND hWnd, int reason);
68 void DisplayBadGamesDialog(HWND hWnd, int reason);
70 extern game_database_t g_games;
72 #endif //_INCLUDE_INSTALLER_GAMES_LIST_H_