Skip to content

Commit

Permalink
quickfix 2 - electric boogaloo
Browse files Browse the repository at this point in the history
  • Loading branch information
Romualdo666 committed Oct 5, 2024
1 parent 0376d42 commit dc60c8c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions UndertaleModTool/ProfileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ await Task.Run(() =>

String Input_text = "";
if (SettingsWindow.ProfileModeEnabled && SettingsWindow.CustomProfileName == true)
{
{
if (SettingsWindow.RememberProfileName)
{
var MD5DirName = CurProfileName;
Expand All @@ -255,15 +255,20 @@ await Task.Run(() =>
{
FileDir += iwishiwasbetteratnames[i] + "\\";
}
FileDir += "Profiles\\directory.txt";
if (File.Exists(FileDir + "Profiles\\directory.txt"))
{
FileDir += "Profiles\\directory.txt";

var GetThisDir = File.ReadAllText(FileDir);
var GetThisDir = File.ReadAllText(FileDir);

if (File.Exists(GetThisDir))
Input_text = File.ReadAllText(GetThisDir);
if (File.Exists(GetThisDir))
Input_text = File.ReadAllText(GetThisDir);
else
Input_text = SimpleTextInput("Loading Profile, please enter a Profile name.", "(Leaving this blank will name the profile with the data's MD5 hash.)", Input_text, true);
//this.ShowMessage(Input_text);
}
else
Input_text = SimpleTextInput("Loading Profile, please enter a Profile name.", "(Leaving this blank will name the profile with the data's MD5 hash.)", Input_text, true);
//this.ShowMessage(Input_text);
}
else
Input_text = SimpleTextInput("Loading Profile, please enter a Profile name.", "(Leaving this blank will name the profile with the data's MD5 hash.)", Input_text, true);
Expand Down

0 comments on commit dc60c8c

Please sign in to comment.