mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-26 23:47:45 +02:00
headless: Enable Rainbow cycling if any input configs have UseRainbow enabled
This commit is contained in:
parent
cdf4016c25
commit
9d28af935d
2 changed files with 6 additions and 0 deletions
|
@ -192,6 +192,7 @@ namespace Ryujinx.HLE
|
|||
/// <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,
|
||||
|
|
|
@ -5,6 +5,7 @@ using Ryujinx.Ava.Utilities.Configuration;
|
|||
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;
|
||||
|
@ -26,6 +27,7 @@ using Ryujinx.SDL2.Common;
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
||||
namespace Ryujinx.Headless
|
||||
|
@ -287,6 +289,9 @@ namespace Ryujinx.Headless
|
|||
|
||||
DriverUtilities.InitDriverConfig(option.BackendThreading == BackendThreading.Off);
|
||||
|
||||
if (_inputConfiguration.OfType<StandardControllerInputConfig>().Any(ic => ic.Led.UseRainbow))
|
||||
Rainbow.Enable();
|
||||
|
||||
while (true)
|
||||
{
|
||||
LoadApplication(option);
|
||||
|
|
Loading…
Add table
Reference in a new issue