We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc3fb69 commit 9a7e5a2Copy full SHA for 9a7e5a2
GameFrameX.Utility/Setting/GlobalSettings.cs
@@ -74,13 +74,15 @@ public static class GlobalSettings
74
public static void Load(string path)
75
{
76
Settings.Clear();
77
+ if (path.IsNullOrEmptyOrWhiteSpace())
78
+ {
79
+ return;
80
+ }
81
82
if (!File.Exists(path))
83
- Console.BackgroundColor = ConsoleColor.Yellow;
- Console.Write("The profile does not exist. may cause startup failure==>>>" + path);
- Console.ResetColor();
- Console.WriteLine();
84
+ var fullPath = Path.GetFullPath(path);
85
+ LogHelper.ShowOption("Load Global Settings", fullPath);
86
return;
87
}
88
0 commit comments