use a helper to get key path instead of checking mode & userpath existing every time

This commit is contained in:
GreemDev
2025-12-08 00:26:45 -06:00
parent bf62531802
commit 6ee7957574
7 changed files with 23 additions and 38 deletions

View File

@@ -83,16 +83,9 @@ namespace Ryujinx.Ava.UI.SetupWizard.Pages
try
{
string systemDirectory = AppDataManager.KeysDirPath;
if (AppDataManager.Mode == AppDataManager.LaunchMode.UserProfile &&
Directory.Exists(AppDataManager.KeysDirPathUser))
{
systemDirectory = AppDataManager.KeysDirPathUser;
}
Logger.Info?.Print(LogClass.Application, $"Installing keys from {KeysFolderPath}");
ContentManager.InstallKeys(KeysFolderPath, systemDirectory);
ContentManager.InstallKeys(KeysFolderPath, AppDataManager.GetKeysDir());
NotificationManager.Information(
title: LocaleManager.Instance[LocaleKeys.RyujinxInfo],