mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 14:54:45 +08:00
Switched everything to new GTAFolder class and removed all direct references to Settings.Default.GTAFolder
This commit is contained in:
+5
-1
@@ -49,6 +49,7 @@ namespace CodeWalker
|
||||
return true;
|
||||
}
|
||||
|
||||
string origFolder = CurrentGTAFolder;
|
||||
string folder = CurrentGTAFolder;
|
||||
SelectFolderForm f = new SelectFolderForm();
|
||||
f.ShowDialog();
|
||||
@@ -61,7 +62,10 @@ namespace CodeWalker
|
||||
if(ValidateGTAFolder(folder, out failReason))
|
||||
{
|
||||
SetGTAFolder(folder);
|
||||
MessageBox.Show($"Successfully set GTA Folder to \"{folder}\"", "Set GTA Folder", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
if(folder != origFolder)
|
||||
{
|
||||
MessageBox.Show($"Successfully changed GTA Folder to \"{folder}\"", "Set GTA Folder", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
return true;
|
||||
} else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user