From ec6d05f098e32daf478ef698717183e7a125ae16 Mon Sep 17 00:00:00 2001 From: ceikry Date: Sat, 27 Apr 2024 20:48:08 -0500 Subject: [PATCH] Change code to continue using userprofile if it already exists, but default to appdata if possible. --- Saradomin/Utilities/CrossPlatform.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Saradomin/Utilities/CrossPlatform.cs b/Saradomin/Utilities/CrossPlatform.cs index bac991b..202f3aa 100644 --- a/Saradomin/Utilities/CrossPlatform.cs +++ b/Saradomin/Utilities/CrossPlatform.cs @@ -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; } }