static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Log.Clear(); Log.Debug("Start logging"); if (!File.Exists(Path.Combine(Rtw2ExecutableDirectory, "rtw2.exe"))) { Log.Debug("Aurora not installed"); var dialog = MessageBox.Show("Rule the Waves 2 not installed. Please purchase, download, and install before using Thalassic.", "Install RTW2", MessageBoxButtons.OK); if (dialog == DialogResult.OK) { Application.Exit(); return; } } if (!Directory.Exists(ModDirectory)) { Directory.CreateDirectory(ModDirectory); } var rtw2VersionRegistry = new Rtw2VersionRegistry(); var modRegistry = new ModRegistry(); Log.Debug("Launching main form"); Application.Run(new FormMain(rtw2VersionRegistry, modRegistry)); }
public FormModDownload() { InitializeComponent(); _rtw2VersionRegistry = new Rtw2VersionRegistry(); _modRegistry = new ModRegistry(); }
public FormMain(Rtw2VersionRegistry rtw2VersionRegistry, ModRegistry modRegistry) { InitializeComponent(); _rtw2VersionRegistry = rtw2VersionRegistry; _modRegistry = modRegistry; }