mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 16:04:49 +08:00
Fixed order of code in Program.cs causing exception from creating windows form before SetCompatibleTextRenderingDefault, changed dialog boxes a bit and cleaned up validation code in SelectFolderForm
This commit is contained in:
+8
-7
@@ -14,12 +14,6 @@ namespace CodeWalker
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// Always check the GTA folder first thing
|
||||
if(!GTAFolder.UpdateGTAFolder(Properties.Settings.Default.RememberGTAFolder))
|
||||
{
|
||||
MessageBox.Show("Could not load CodeWalker because no GTA 5 folder was selected. CodeWalker will now exit.", "GTA 5 Folder Not Found", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||
return;
|
||||
}
|
||||
|
||||
bool menumode = false;
|
||||
bool explorermode = false;
|
||||
@@ -42,11 +36,18 @@ namespace CodeWalker
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
|
||||
// Always check the GTA folder first thing
|
||||
if (!GTAFolder.UpdateGTAFolder(Properties.Settings.Default.RememberGTAFolder))
|
||||
{
|
||||
MessageBox.Show("Could not load CodeWalker because no GTA 5 folder was selected. CodeWalker will now exit.", "GTA 5 Folder Not Found", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||
return;
|
||||
}
|
||||
#if !DEBUG
|
||||
try
|
||||
{
|
||||
#endif
|
||||
if (menumode)
|
||||
if (menumode)
|
||||
{
|
||||
Application.Run(new MenuForm());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user