Compare commits

...

2 Commits

Author SHA1 Message Date
VewDev
1c6f312a27 feat: add new Ryubi app icon 2025-08-29 20:43:05 +02:00
VewDev
8ee675cd62 feat: add fallback to Classic Ryugay for app icon 2025-08-29 20:40:46 +02:00
2 changed files with 12 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -185,7 +185,18 @@ namespace Ryujinx.Ava
public static void UpdateAppIcon(string newIconName)
{
ApplicationIcon selectedIcon = AvailableApplicationIcons.First(x => x.Name == newIconName);
if (newIconName.IsNullOrEmpty())
{
newIconName = "Classic Ryugay";
}
ApplicationIcon selectedIcon = AvailableApplicationIcons.FirstOrDefault(x => x.Name == newIconName);
if (selectedIcon == null)
{
// Fallback to default icon if the selected one is not found
UpdateAppIcon("Classic Ryugay");
}
Stream activeIconStream = EmbeddedResources.GetStream(selectedIcon.FullPath);
if (activeIconStream != null)
{