Switched everything to new GTAFolder class and removed all direct references to Settings.Default.GTAFolder

This commit is contained in:
PNWParksFan
2018-02-21 01:12:17 -08:00
Unverified
parent d82c34c542
commit 6ae3b470f6
26 changed files with 63 additions and 156 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ namespace CodeWalker.Forms
{
if (string.IsNullOrEmpty(FileName)) saveAs = true;
if (string.IsNullOrEmpty(FilePath)) saveAs = true;
else if ((FilePath.ToLowerInvariant().StartsWith(Settings.Default.GTAFolder.ToLowerInvariant()))) saveAs = true;
else if ((FilePath.ToLowerInvariant().StartsWith(GTAFolder.CurrentGTAFolder.ToLowerInvariant()))) saveAs = true;
if (!File.Exists(FilePath)) saveAs = true;
var fn = FilePath;