Skip to content

Commit

Permalink
headless: Enable Rainbow cycling if any input configs have UseRainbow…
Browse files Browse the repository at this point in the history
… enabled
  • Loading branch information
GreemDev committed Jan 29, 2025
1 parent cdf4016 commit 9d28af9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Ryujinx.HLE/HLEConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public class HLEConfiguration
/// <summary>
/// The desired hacky workarounds.
/// </summary>
/// <remarks>This cannot be changed after <see cref="Switch"/> instantiation.</remarks>
public EnabledDirtyHack[] Hacks { internal get; set; }

public HLEConfiguration(VirtualFileSystem virtualFileSystem,
Expand Down
5 changes: 5 additions & 0 deletions src/Ryujinx/Headless/HeadlessRyujinx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Ryujinx.Common;
using Ryujinx.Common.Configuration;
using Ryujinx.Common.Configuration.Hid;
using Ryujinx.Common.Configuration.Hid.Controller;
using Ryujinx.Common.GraphicsDriver;
using Ryujinx.Common.Logging;
using Ryujinx.Common.Logging.Targets;
Expand All @@ -26,6 +27,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;

namespace Ryujinx.Headless
Expand Down Expand Up @@ -286,6 +288,9 @@ static void Load(string[] originalArgs, Options option)
GraphicsConfig.EnableMacroHLE = !option.DisableMacroHLE;

DriverUtilities.InitDriverConfig(option.BackendThreading == BackendThreading.Off);

if (_inputConfiguration.OfType<StandardControllerInputConfig>().Any(ic => ic.Led.UseRainbow))
Rainbow.Enable();

while (true)
{
Expand Down

0 comments on commit 9d28af9

Please sign in to comment.