mirror of
https://gitlab.com/2009scape/Saradomin-Launcher.git
synced 2026-08-01 14:19:14 -06:00
Use AppData as Windows expects for application data, move existing user data if necessary.
This commit is contained in:
parent
bfffd2d76a
commit
6171139f2e
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue