Esempio n. 1
0
        public void FindGameDir()
        {
            var gameSettings = (CounterStrikeSettings)GameSettings;

            // If already propertly set up, don't do anything
            if (gameSettings.GameDirectory != null && File.Exists(gameSettings.GameDirectory + "csgo.exe") &&
                File.Exists(gameSettings.GameDirectory + "/csgo/cfg/gamestate_integration_artemis.cfg"))
            {
                return;
            }

            var dir = GeneralHelpers.FindSteamGame(@"\Counter-Strike Global Offensive\csgo.exe");

            gameSettings.GameDirectory = dir ?? string.Empty;
            gameSettings.Save();
        }
Esempio n. 2
0
        public void FindGameDir()
        {
            var gameSettings = (Dota2Settings)GameSettings;

            // If already propertly set up, don't do anything
            if (gameSettings.GameDirectory != null && File.Exists(gameSettings.GameDirectory + "csgo.exe") &&
                File.Exists(gameSettings.GameDirectory + "/csgo/cfg/gamestate_integration_artemis.cfg"))
            {
                return;
            }

            var dir = GeneralHelpers.FindSteamGame(@"\dota 2 beta\game\bin\win32\dota2.exe");

            // Remove subdirectories where they stuck the executable
            dir = dir?.Substring(0, dir.Length - 15);

            gameSettings.GameDirectory = dir ?? string.Empty;
            gameSettings.Save();
        }
Esempio n. 3
0
        public void FindAtsGameDir()
        {
            // Demo is also supported but resides in a different directory, the full game can also be 32-bits (I think)
            var dir = GeneralHelpers.FindSteamGame(@"\American Truck Simulator\bin\win_x64\amtrucks.exe") ??
                      GeneralHelpers.FindSteamGame(@"\American Truck Simulator\bin\win_x86\amtrucks.exe") ??
                      GeneralHelpers.FindSteamGame(@"\American Truck Simulator Demo\bin\win_x64\amtrucks.exe");

            if (string.IsNullOrEmpty(dir))
            {
                return;
            }

            ((EurotruckSimulator2Settings)Settings).AtsGameDirectory = dir;
            Settings.Save();

            if (!File.Exists(dir + "/plugins/ets2-telemetry-server.dll"))
            {
                PlaceTruckSimulatorPlugin(dir, "amtrucks.exe");
            }
        }
Esempio n. 4
0
        public void FindGameDir()
        {
            var gameSettings = (EurotruckSimulator2Settings)GameSettings;
            // Demo is also supported but resides in a different directory, the full game can also be 64-bits
            var dir = GeneralHelpers.FindSteamGame(@"\Euro Truck Simulator 2\bin\win_x64\eurotrucks2.exe") ??
                      GeneralHelpers.FindSteamGame(@"\Euro Truck Simulator 2\bin\win_x86\eurotrucks2.exe") ??
                      GeneralHelpers.FindSteamGame(@"\Euro Truck Simulator 2 Demo\bin\win_x86\eurotrucks2.exe");

            if (string.IsNullOrEmpty(dir))
            {
                return;
            }

            gameSettings.GameDirectory = dir;
            gameSettings.Save();

            if (!File.Exists(dir + "/plugins/ets2-telemetry-server.dll"))
            {
                PlacePlugin();
            }
        }