Change code to continue using userprofile if it already exists, but default to appdata if possible.

This commit is contained in:
ceikry 2024-04-27 20:48:08 -05:00
parent 6171139f2e
commit ec6d05f098

View file

@ -201,9 +201,7 @@ namespace Saradomin.Utilities
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"2009scape"
);
if (Directory.Exists(userProfile))
Directory.Move(userProfile, appData);
return appData;
return Directory.Exists(userProfile) ? userProfile : appData;
}
}