Fix opening the wrong log directory (#6220)

This commit is contained in:
TSRBerry 2024-01-30 17:52:45 +01:00 committed by GitHub
parent ccbbaddbcb
commit 4505a7f162
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 9 deletions

View file

@ -1352,9 +1352,9 @@ namespace Ryujinx.Ava.UI.ViewModels
{
string logPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs");
if (ReleaseInformation.IsValid)
if (LoggerModule.LogDirectoryPath != null)
{
logPath = Path.Combine(AppDataManager.BaseDirPath, "Logs");
logPath = LoggerModule.LogDirectoryPath;
}
new DirectoryInfo(logPath).Create();