mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 06:47:44 +02:00
misc: chore: Simplify usages of HLEConfiguration constructor
This commit is contained in:
parent
6a2116f71a
commit
28526214ba
2 changed files with 55 additions and 110 deletions
|
@ -315,7 +315,7 @@ namespace Ryujinx.Headless
|
||||||
|
|
||||||
private static Switch InitializeEmulationContext(WindowBase window, IRenderer renderer, Options options) =>
|
private static Switch InitializeEmulationContext(WindowBase window, IRenderer renderer, Options options) =>
|
||||||
new(
|
new(
|
||||||
#if DEBUG
|
|
||||||
new HleConfiguration(
|
new HleConfiguration(
|
||||||
options.DramSize,
|
options.DramSize,
|
||||||
options.SystemLanguage,
|
options.SystemLanguage,
|
||||||
|
@ -330,42 +330,19 @@ namespace Ryujinx.Headless
|
||||||
options.SystemTimeOffset,
|
options.SystemTimeOffset,
|
||||||
options.SystemTimeZone,
|
options.SystemTimeZone,
|
||||||
options.MemoryManagerMode,
|
options.MemoryManagerMode,
|
||||||
|
#if DEBUG
|
||||||
options.IgnoreMissingServices,
|
options.IgnoreMissingServices,
|
||||||
options.AspectRatio,
|
|
||||||
options.AudioVolume,
|
|
||||||
options.UseHypervisor ?? true,
|
|
||||||
options.MultiplayerLanInterfaceId,
|
|
||||||
Common.Configuration.Multiplayer.MultiplayerMode.Disabled,
|
|
||||||
false,
|
|
||||||
string.Empty,
|
|
||||||
string.Empty,
|
|
||||||
options.CustomVSyncInterval
|
|
||||||
)
|
|
||||||
#else
|
|
||||||
new HleConfiguration(
|
|
||||||
options.DramSize,
|
|
||||||
options.SystemLanguage,
|
|
||||||
options.SystemRegion,
|
|
||||||
options.VSyncMode,
|
|
||||||
!options.DisableDockedMode,
|
|
||||||
!options.DisablePTC,
|
|
||||||
options.EnableInternetAccess,
|
|
||||||
!options.DisableFsIntegrityChecks ? IntegrityCheckLevel.ErrorOnInvalid : IntegrityCheckLevel.None,
|
|
||||||
options.FsGlobalAccessLogMode,
|
|
||||||
options.SystemTimeOffset,
|
|
||||||
options.SystemTimeZone,
|
|
||||||
options.MemoryManagerMode,
|
|
||||||
options.AspectRatio,
|
|
||||||
options.AudioVolume,
|
|
||||||
options.UseHypervisor ?? true,
|
|
||||||
options.MultiplayerLanInterfaceId,
|
|
||||||
Common.Configuration.Multiplayer.MultiplayerMode.Disabled,
|
|
||||||
false,
|
|
||||||
string.Empty,
|
|
||||||
string.Empty,
|
|
||||||
options.CustomVSyncInterval
|
|
||||||
)
|
|
||||||
#endif
|
#endif
|
||||||
|
options.AspectRatio,
|
||||||
|
options.AudioVolume,
|
||||||
|
options.UseHypervisor ?? true,
|
||||||
|
options.MultiplayerLanInterfaceId,
|
||||||
|
Common.Configuration.Multiplayer.MultiplayerMode.Disabled,
|
||||||
|
false,
|
||||||
|
string.Empty,
|
||||||
|
string.Empty,
|
||||||
|
options.CustomVSyncInterval
|
||||||
|
)
|
||||||
.Configure(
|
.Configure(
|
||||||
_virtualFileSystem,
|
_virtualFileSystem,
|
||||||
_libHacHorizonManager,
|
_libHacHorizonManager,
|
||||||
|
|
|
@ -843,68 +843,36 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
}
|
}
|
||||||
|
|
||||||
public HleConfiguration CreateHleConfiguration() =>
|
public HleConfiguration CreateHleConfiguration() =>
|
||||||
|
new(
|
||||||
|
System.DramSize,
|
||||||
|
System.Language.Value.ToHLE(),
|
||||||
|
System.Region.Value.ToHLE(),
|
||||||
|
Graphics.VSyncMode,
|
||||||
|
System.EnableDockedMode,
|
||||||
|
System.EnablePtc,
|
||||||
|
System.TickScalar,
|
||||||
|
System.EnableInternetAccess,
|
||||||
|
System.EnableFsIntegrityChecks
|
||||||
|
? IntegrityCheckLevel.ErrorOnInvalid
|
||||||
|
: IntegrityCheckLevel.None,
|
||||||
|
System.FsGlobalAccessLogMode,
|
||||||
|
System.MatchSystemTime
|
||||||
|
? 0
|
||||||
|
: System.SystemTimeOffset,
|
||||||
|
System.TimeZone,
|
||||||
|
System.MemoryManagerMode,
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
new(
|
|
||||||
System.DramSize,
|
|
||||||
System.Language.Value.ToHLE(),
|
|
||||||
System.Region.Value.ToHLE(),
|
|
||||||
Graphics.VSyncMode,
|
|
||||||
System.EnableDockedMode,
|
|
||||||
System.EnablePtc,
|
|
||||||
System.TickScalar,
|
|
||||||
System.EnableInternetAccess,
|
|
||||||
System.EnableFsIntegrityChecks
|
|
||||||
? IntegrityCheckLevel.ErrorOnInvalid
|
|
||||||
: IntegrityCheckLevel.None,
|
|
||||||
System.FsGlobalAccessLogMode,
|
|
||||||
System.MatchSystemTime
|
|
||||||
? 0
|
|
||||||
: System.SystemTimeOffset,
|
|
||||||
System.TimeZone,
|
|
||||||
System.MemoryManagerMode,
|
|
||||||
CommandLineState.IgnoreMissingServices,
|
CommandLineState.IgnoreMissingServices,
|
||||||
Graphics.AspectRatio,
|
|
||||||
System.AudioVolume,
|
|
||||||
System.UseHypervisor,
|
|
||||||
Multiplayer.LanInterfaceId,
|
|
||||||
Multiplayer.Mode,
|
|
||||||
Multiplayer.DisableP2p,
|
|
||||||
Multiplayer.LdnPassphrase,
|
|
||||||
Instance.Multiplayer.GetLdnServer(),
|
|
||||||
Instance.Graphics.CustomVSyncInterval,
|
|
||||||
Instance.Hacks.ShowDirtyHacks ? Instance.Hacks.EnabledHacks : null);
|
|
||||||
#else
|
|
||||||
new(
|
|
||||||
System.DramSize,
|
|
||||||
System.Language.Value.ToHLE(),
|
|
||||||
System.Region.Value.ToHLE(),
|
|
||||||
Graphics.VSyncMode,
|
|
||||||
System.EnableDockedMode,
|
|
||||||
System.EnablePtc,
|
|
||||||
System.TickScalar,
|
|
||||||
System.EnableInternetAccess,
|
|
||||||
System.EnableFsIntegrityChecks
|
|
||||||
? IntegrityCheckLevel.ErrorOnInvalid
|
|
||||||
: IntegrityCheckLevel.None,
|
|
||||||
System.FsGlobalAccessLogMode,
|
|
||||||
System.MatchSystemTime
|
|
||||||
? 0
|
|
||||||
: System.SystemTimeOffset,
|
|
||||||
System.TimeZone,
|
|
||||||
System.MemoryManagerMode,
|
|
||||||
Graphics.AspectRatio,
|
|
||||||
System.AudioVolume,
|
|
||||||
System.UseHypervisor,
|
|
||||||
Multiplayer.LanInterfaceId,
|
|
||||||
Multiplayer.Mode,
|
|
||||||
Multiplayer.DisableP2p,
|
|
||||||
Multiplayer.LdnPassphrase,
|
|
||||||
Instance.Multiplayer.GetLdnServer(),
|
|
||||||
Instance.Graphics.CustomVSyncInterval,
|
|
||||||
Instance.Hacks.ShowDirtyHacks ? Instance.Hacks.EnabledHacks : null);
|
|
||||||
#endif
|
#endif
|
||||||
Multiplayer.GetLdnServer(),
|
Graphics.AspectRatio,
|
||||||
Graphics.CustomVSyncInterval,
|
System.AudioVolume,
|
||||||
Hacks.ShowDirtyHacks ? Hacks.EnabledHacks : null);
|
System.UseHypervisor,
|
||||||
|
Multiplayer.LanInterfaceId,
|
||||||
|
Multiplayer.Mode,
|
||||||
|
Multiplayer.DisableP2p,
|
||||||
|
Multiplayer.LdnPassphrase,
|
||||||
|
Instance.Multiplayer.GetLdnServer(),
|
||||||
|
Instance.Graphics.CustomVSyncInterval,
|
||||||
|
Instance.Hacks.ShowDirtyHacks ? Instance.Hacks.EnabledHacks : null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue