Use AppData as Windows expects for application data, move existing user data if necessary.

This commit is contained in:
ceikry 2024-04-26 22:59:35 -05:00
parent bfffd2d76a
commit 6171139f2e

View file

@ -193,10 +193,17 @@ namespace Saradomin.Utilities
}
else
{
return Path.Combine(
var userProfile = Path.Combine (
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
"2009scape"
);
var appData = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"2009scape"
);
if (Directory.Exists(userProfile))
Directory.Move(userProfile, appData);
return appData;
}
}