From 3d8be3b0e6727eb42f950177fdd124b4136aedd4 Mon Sep 17 00:00:00 2001 From: Bitl Date: Wed, 14 Jun 2017 12:58:32 -0700 Subject: [PATCH] 1.16 2 --- .../RBXLegacyLauncher/CharacterCustomization.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs index 410b9fa..04e260a 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs @@ -10,6 +10,10 @@ using System; using System.Drawing; using System.Windows.Forms; using System.IO; +using System.Reflection; +using System.Security.Cryptography; +using System.Text; +using System.Text.RegularExpressions; namespace RBXLegacyLauncher { @@ -32,7 +36,7 @@ namespace RBXLegacyLauncher void CharacterCustomizationLoad(object sender, EventArgs e) { - string hatdir = Environment.CurrentDirectory + @"\\charcustom\\hats"; + string hatdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\hats"; if (Directory.Exists(hatdir)) { button2.Enabled = true;