Skip to content

Commit 873df5e

Browse files
committed
Add temp logging
1 parent 6c03285 commit 873df5e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

RetroBar/App.xaml.cs

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ private ShellManager SetupManagedShell()
5858
ShellLogger.Severity = LogSeverity.Debug;
5959
ShellLogger.Attach(new ConsoleLog());
6060

61+
FileLog fileLog = new FileLog(@"c:\users\johns\desktop\log.txt");
62+
fileLog.Open();
63+
ShellLogger.Attach(fileLog);
64+
6165
ShellConfig config = ShellManager.DefaultShellConfig;
6266

6367
config.AutoStartTasksService = false;

RetroBar/Utilities/ThemeManager.cs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.IO;
55
using System.Linq;
66
using System.Windows;
7+
using ManagedShell.Common.Logging;
78

89
namespace RetroBar.Utilities
910
{
@@ -71,8 +72,11 @@ public List<string> GetThemes()
7172

7273
// Because RetroBar is published as a single-file app, it gets extracted to a temp directory, so custom themes won't be there.
7374
// Get the executable path to find the custom themes directory when not a debug build.
75+
ShellLogger.Error("BeforeDebugCheck");
7476
#if !DEBUG
77+
ShellLogger.Error("AfterDebugCheck");
7578
string customThemeDir = Path.Combine(Path.GetDirectoryName(ExePath.GetExecutablePath()), THEME_FOLDER);
79+
ShellLogger.Error(customThemeDir);
7680

7781
if (Directory.Exists(customThemeDir))
7882
{

0 commit comments

Comments
 (0)