Skip to content

Commit

Permalink
Part of 43f62cc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Si13n7 committed Apr 30, 2021
1 parent c278fdf commit 689561f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/AppsDownloader/Libraries/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ internal static void Initialize()
{
WinApi.NativeHelper.SetProcessDPIAware();

Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs");
if (Log.DebugMode > 0)
{
Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs");
DirectoryEx.Create(Log.FileDir);
}

Ini.SetFile(PathEx.LocalDir, "..", "Settings.ini");
Ini.SortBySections = new[]
Expand Down
4 changes: 3 additions & 1 deletion src/AppsLauncher/Libraries/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,11 @@ internal static void Initialize()
{
WinApi.NativeHelper.SetProcessDPIAware();

Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs");
if (Log.DebugMode > 0)
{
Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs");
DirectoryEx.Create(Log.FileDir);
}

Ini.SetFile(PathEx.LocalDir, "Settings.ini");
Ini.SortBySections = new[]
Expand Down
4 changes: 3 additions & 1 deletion src/AppsLauncherUpdater/Libraries/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ internal static void Initialize()
{
WinApi.NativeHelper.SetProcessDPIAware();

Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs");
if (Log.DebugMode > 0)
{
Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs");
DirectoryEx.Create(Log.FileDir);
}

Ini.SetFile(CorePaths.HomeDir, "Settings.ini");
Ini.SortBySections = new[]
Expand Down

0 comments on commit 689561f

Please sign in to comment.