private static void Initialize()
        {
            profile = MainForm.CurrentProfile;
            game = SRTGame.AllGames[profile.GameIndex];
            skybox = SRTSkybox.FindSkyboxByName(profile.Skyname);

            addons = game.ShortNamePath + "\\addons";
            cfg = game.ShortNamePath + "\\cfg";
            custom = game.ShortNamePath + "\\custom";
        }
Пример #2
0
        private void InitializeGame()
        {
            SRTGame CSGO = new SRTGame(730, "Counter-Strike: Global Offensive", "Counter-Strike Global Offensive", "csgo", "csgo.exe", "cs_baggage_skybox_", "cs_tibet", "embassy", "italy", "jungle", "office", "sky_cs15_daylight01_hdr", "sky_cs15_daylight02_hdr", "sky_cs15_daylight03_hdr", "sky_cs15_daylight04_hdr", "sky_day02_05", "sky_day02_05_hdr", "sky_dust", "vertigoblue_hdr", "vertigo", "vertigo_hdr", "vietnam");
            SRTGame CSS = new SRTGame(240, "Counter-Strike: Source", "Counter-Strike Source", "cstrike", "hl2.exe", "assaultup.vmt", "cxup.vmt", "de_cobbleup.vmt", "de_cobble_hdrup.vmt", "de_piranesiup.vmt", "havup.vmt", "italyup.vmt", "jungleup.vmt", "militia_hdrup.vmt", "officeup.vmt", "sky_c17_05up.vmt", "sky_dustup.vmt", "sky_dust_hdrup.vmt", "tidesup.vmt", "trainup.vmt", "train_hdrup.vmt");
            SRTGame DODS = new SRTGame(300, "Day of Defeat: Source", "Day of Defeat Source", "dod", "hl2.exe", "sky_day01_01", "sky_dod_01_hdr", "sky_dod_02_hdr", "sky_dod_03_hdr", "sky_dod_04_hdr", "sky_dod_05_hdr", "sky_dod_06_hdr", "sky_dod_07z_hdr", "sky_dod_07_hdr", "sky_dod_08_hdr", "sky_dod_09_hdr", "sky_dod_10_hdr");
            SRTGame DOTA2 = new SRTGame(570, "Dota 2", "dota 2 beta", "dota", "dota.exe");
            SRTGame HL2 = new SRTGame(220, "Half-Life 2", "Half-Life 2", "hl2", "hl2.exe", "sky_borealis01", "sky_day01_01", "sky_day01_01_hdr", "sky_day01_04", "sky_day01_04_hdr", "sky_day01_05", "sky_day01_05_hdr", "sky_day01_06", "sky_day01_06_hdr", "sky_day01_07", "sky_day01_07_hdr", "sky_day01_08", "sky_day01_08_hdr", "sky_day01_09", "sky_day01_09_hdr", "sky_day02_01", "sky_day02_01_hdr", "sky_day02_02", "sky_day02_02_hdr", "sky_day02_03", "sky_day02_03_hdr", "sky_day02_04", "sky_day02_04_hdr", "sky_day02_05", "sky_day02_05_hdr", "sky_day02_06", "sky_day02_06_hdr", "sky_day02_07", "sky_day02_07_hdr", "sky_day02_09", "sky_day02_09_hdr", "sky_day02_10", "sky_day02_10_hdr", "sky_day03_01", "sky_day03_01_hdr", "sky_day03_02", "sky_day03_02_hdr", "sky_day03_03", "sky_day03_04", "sky_day03_04_hdr", "sky_day03_05", "sky_day03_05_hdr", "sky_day03_06b", "sky_day03_06b_hdr", "sky_day03_06", "sky_day03_06_hdr", "sky_wasteland02");
            SRTGame HL2DM = new SRTGame(320, "Half-Life 2: Deathmatch", "Half-Life 2 Deathmatch", "hl2mp", "hl2.exe", "sky_borealis01", "sky_day01_01", "sky_day01_01_hdr", "sky_day01_04", "sky_day01_04_hdr", "sky_day01_05", "sky_day01_05_hdr", "sky_day01_06", "sky_day01_06_hdr", "sky_day01_07", "sky_day01_07_hdr", "sky_day01_08", "sky_day01_08_hdr", "sky_day01_09", "sky_day01_09_hdr", "sky_day02_01", "sky_day02_01_hdr", "sky_day02_02", "sky_day02_02_hdr", "sky_day02_03", "sky_day02_03_hdr", "sky_day02_04", "sky_day02_04_hdr", "sky_day02_05", "sky_day02_05_hdr", "sky_day02_06", "sky_day02_06_hdr", "sky_day02_07", "sky_day02_07_hdr", "sky_day02_09", "sky_day02_09_hdr", "sky_day02_10", "sky_day02_10_hdr", "sky_day03_01", "sky_day03_01_hdr", "sky_day03_02", "sky_day03_02_hdr", "sky_day03_03", "sky_day03_04", "sky_day03_04_hdr", "sky_day03_05", "sky_day03_05_hdr", "sky_day03_06b", "sky_day03_06b_hdr", "sky_day03_06", "sky_day03_06_hdr", "sky_wasteland02");
            SRTGame HL2EP1 = new SRTGame(380, "Half-Life 2: Episode One", "Half-Life 2", "episodic", "hl2.exe", "sky_day03_06c", "sky_ep01_00", "sky_ep01_00_hdr", "sky_ep01_01", "sky_ep01_02", "sky_ep01_02_hdr", "sky_ep01_04a", "sky_ep01_04a_hdr", "sky_ep01_04", "sky_ep01_04_hdr", "sky_ep01_citadel_int", "sky_fog");
            SRTGame HL2EP2 = new SRTGame(420, "Half-Life 2: Episode Two", "Half-Life 2", "ep2", "hl2.exe", "sky_ep02_01", "sky_ep02_01_hdr", "sky_ep02_02", "sky_ep02_02_hdr", "sky_ep02_03", "sky_ep02_03_hdr", "sky_ep02_04", "sky_ep02_04_hdr", "sky_ep02_05", "sky_ep02_05_hdr", "sky_ep02_06", "sky_ep02_06_hdr", "sky_ep02_07", "sky_ep02_caves_hdr");
            SRTGame HL2LOSTCOAST = new SRTGame(340, "Half-Life 2: Lost Coast", "Half-Life 2", "lostcoast", "hl2.exe", "sky_lostcoast_hdr");
            SRTGame L4D = new SRTGame(500, "Left 4 Dead", "left 4 dead", "left4dead", "left4dead.exe", "nighturban01_hdr", "sky_day01_09_hdr", "sky_day01_09_ldr", "sky_l4d_rural02_hdr", "sky_l4d_rural02_ldr", "sky_l4d_urban01_hdr", "test_moon_hdr", "urbannightburning_hdr", "urbannightburning_ldr", "urbannightstormhdr", "urbannightstorm_ldr");
            SRTGame L4D2 = new SRTGame(550, "Left 4 Dead 2", "Left 4 Dead 2", "left4dead2", "left4dead2.exe", "sky_l4d_c1_1_hdr", "sky_l4d_c1_2_hdr", "sky_l4d_c2m1_hdr", "sky_l4d_c4m1_hdr", "sky_l4d_c4m4_hdr", "sky_l4d_c5_1_hdr", "sky_l4d_night02_hdr", "sky_l4d_predawn02_hdr", "sky_l4d_c6m1_hdr", "docks_hdr", "highrise_hdr", "river_hdr", "sky_l4d_urban01_hdr", "test_moon_hdr", "urbannightstormhdr", "urbannightstorm_ldr", "sky_coldstream_1_hdr", "sky_coldstream_2_hdr", "sky_day01_09_hdr", "sky_day01_09_ldr", "sky_l4d_rural02_hdr", "sky_l4d_rural02_ldr", "urbannightburning_hdr", "urbannightburning_ldr");
            SRTGame PORTAL = new SRTGame(400, "Portal", "Portal", "portal", "hl2.exe", "bts_custom_cubemap", "sky_escape_01_");
            SRTGame PORTAL2 = new SRTGame(620, "Portal 2", "Portal 2", "portal2", "portal2.exe", "sky_black", "sky_black_nofog", "sky_fog", "sky_l4d_c4m1_hdr", "sky_white");
            SRTGame TF2 = new SRTGame(440, "Team Fortress 2", "Team Fortress 2", "tf", "hl2.exe", "sky_alpinestorm_01", "sky_badlands_01", "sky_dustbowl_01", "sky_dustbowl_01_hdr", "sky_goldrush_01", "sky_granary_01", "sky_granary_01_hdr", "sky_gravel_01", "sky_gravel_01_hdr", "sky_halloween", "sky_halloween_night_01", "sky_halloween_night_01_hdr", "sky_harvest_01", "sky_harvest_01_hdr", "sky_harvest_night_01", "sky_hydro_01", "sky_hydro_01_hdr", "sky_morningsnow_01", "sky_nightfall_01", "sky_night_01", "sky_rainbow_01", "sky_stormfront_01", "sky_tf2_04", "sky_tf2_04_hdr", "sky_trainyard_01", "sky_upward", "sky_upward_hdr", "sky_well_01", "sky_well_01_hdr");

            SRTGame.AllGames = new SRTGame[] { CSGO, CSS, DODS, DOTA2, HL2, HL2DM, HL2EP1, HL2EP2, HL2LOSTCOAST, L4D, L4D2, PORTAL, PORTAL2, TF2 };

            foreach (SRTGame game in SRTGame.AllGames)
                GameComboBox.Items.Add(game.Name);
        }