Ejemplo n.º 1
0
        private bool UninstallWrapper()
        {
            var installpath = SteamUtils.GetGamePath(GameID);

            return(FileUtils.TryDelete(Path.Combine(installpath, "Love", "win", "RzChromaSDK.dll")) &&
                   FileUtils.TryDelete(Path.Combine(installpath, "Love", "win", "RzChromaSDK64.dll")));
        }
Ejemplo n.º 2
0
        private bool InstallWrapper(string installpath = "")
        {
            if (string.IsNullOrWhiteSpace(installpath))
            {
                installpath = Path.Combine(SteamUtils.GetGamePath(GameID), "Love", "win");
            }

            return(FileUtils.TryWrite(Path.Combine(installpath, "RzChromaSDK.dll"), Properties.Resources.Aurora_RazerLEDWrapper86) &&
                   FileUtils.TryWrite(Path.Combine(installpath, "RzChromaSDK64.dll"), Properties.Resources.Aurora_RazerLEDWrapper64));
        }
Ejemplo n.º 3
0
        private void uninstall_mod_button_Click(object sender, RoutedEventArgs e)
        {
            String installpath = SteamUtils.GetGamePath(292030);

            if (!String.IsNullOrWhiteSpace(installpath))
            {
                UninstallMod(installpath);
            }
            else
            {
                MessageBox.Show("Witcher 3 was not installed through steam, please pick the path manually");
                var dialog = new System.Windows.Forms.FolderBrowserDialog();
                if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    UninstallMod(dialog.SelectedPath);
                }
            }
        }
Ejemplo n.º 4
0
        private void unpatch_cue_dll_button_Click(object sender, RoutedEventArgs e)
        {
            string gamepath = SteamUtils.GetGamePath(GameID);
            bool   sucess   = FileUtils.TryEnable(Path.Combine(gamepath, "Love", "win", "CUESDK.dll"));
            bool   sucess64 = FileUtils.TryEnable(Path.Combine(gamepath, "Love", "win", "CUESDK.x64.dll"));

            if (sucess && sucess64)
            {
                MessageBox.Show("Sucesfully re-enabled MoD Corsair support.");
            }
            else if (sucess || sucess64)
            {
                MessageBox.Show("Error: Partly re-enabled MoD Corsair support. Is it already enabled?");
            }
            else
            {
                MessageBox.Show("Couldn't re-enabled MoD Corsair support. Is it already enabled?");
            }
        }