This commit is contained in:
Bitl 2017-06-14 12:58:32 -07:00
parent e568cfd8ef
commit 3d8be3b0e6
1 changed files with 5 additions and 1 deletions

View File

@ -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;