mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 08:05:47 +00:00
5e724cf24e
* Delete DelegateTypes.cs * Delete DelegateCache.cs * Add files via upload * Update Horizon.cs * Update Program.cs * Update MainWindow.cs * Update Aot.cs * Update RelocEntry.cs * Update Translator.cs * Update MemoryManager.cs * Update InstEmitMemoryHelper.cs * Update Delegates.cs * Nit. * Nit. * Nit. * 10 fewer MSIL bytes for us * Add comment. Nits. * Update Translator.cs * Update Aot.cs * Nits. * Opt.. * Opt.. * Opt.. * Opt.. * Allow to change compression level. * Update MemoryManager.cs * Update Translator.cs * Manage corner cases during the save phase. Nits. * Update Aot.cs * Translator response tweak for Aot disabled. Nit. * Nit. * Nits. * Create DelegateHelpers.cs * Update Delegates.cs * Nit. * Nit. * Nits. * Fix due to #784. * Fixes due to #757 & #841. * Fix due to #846. * Fix due to #847. * Use MethodInfo for managed method calls. Use IR methods instead of managed methods about Max/Min (S/U). Follow-ups & Nits. * Add missing exception messages. Reintroduce slow path for Fmov_Vi. Implement slow path for Fmov_Si. * Switch to the new folder structure. Nits. * Impl. index-based relocation information. Impl. cache file version field. * Nit. * Address gdkchan comments. Mainly: - fixed cache file corruption issue on exit; - exposed a way to disable AOT on the GUI. * Address AcK77 comment. * Address Thealexbarney, jduncanator & emmauss comments. Header magic, CpuId (FI) & Aot -> Ptc. * Adaptation to the new application reloading system. Improvements to the call system of managed methods. Follow-ups. Nits. * Get the same boot times as on master when PTC is disabled. * Profiled Aot. * A32 support (#897). * #975 support (1 of 2). * #975 support (2 of 2). * Rebase fix & nits. * Some fixes and nits (still one bug left). * One fix & nits. * Tests fix (by gdk) & nits. * Support translations not only in high quality and rejit. Nits. * Added possibility to skip translations and continue execution, using `ESC` key. * Update SettingsWindow.cs * Update GLRenderer.cs * Update Ptc.cs * Disabled Profiled PTC by default as requested in the past by gdk. * Fix rejit bug. Increased number of parallel translations. Add stack unwinding stuffs support (1 of 2). Nits. * Add stack unwinding stuffs support (2 of 2). Tuned number of parallel translations. * Restored the ability to assemble jumps with 8-bit offset when Profiled PTC is disabled or during profiling. Modifications due to rebase. Nits. * Limited profiling of the functions to be translated to the addresses belonging to the range of static objects only. * Nits. * Nits. * Update Delegates.cs * Nit. * Update InstEmitSimdArithmetic.cs * Address riperiperi comments. * Fixed the issue of unjustifiably longer boot times at the second boot than at the first boot, measured at the same time or reference point and with the same number of translated functions. * Implemented a simple redundant load/save mechanism. Halved the value of Decoder.MaxInstsPerFunction more appropriate for the current performance of the Translator. Replaced by Logger.PrintError to Logger.PrintDebug in TexturePool.cs about the supposed invalid texture format to avoid the spawn of the log. Nits. * Nit. Improved Logger.PrintError in TexturePool.cs to avoid log spawn. Added missing code for FZ handling (in output) for fp max/min instructions (slow paths). * Add configuration migration for PTC Co-authored-by: Thog <me@thog.eu>
188 lines
No EOL
5.6 KiB
C#
188 lines
No EOL
5.6 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Ryujinx.Common.Configuration.Hid;
|
|
using Ryujinx.Common.Logging;
|
|
using Ryujinx.Common.Utilities;
|
|
using Ryujinx.Configuration.System;
|
|
using Ryujinx.Configuration.Ui;
|
|
|
|
namespace Ryujinx.Configuration
|
|
{
|
|
public class ConfigurationFileFormat
|
|
{
|
|
/// <summary>
|
|
/// The current version of the file format
|
|
/// </summary>
|
|
public const int CurrentVersion = 8;
|
|
|
|
public int Version { get; set; }
|
|
|
|
/// <summary>
|
|
/// Max Anisotropy. Values range from 0 - 16. Set to -1 to let the game decide.
|
|
/// </summary>
|
|
public float MaxAnisotropy { get; set; }
|
|
|
|
/// <summary>
|
|
/// Dumps shaders in this local directory
|
|
/// </summary>
|
|
public string GraphicsShadersDumpPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing debug log messages
|
|
/// </summary>
|
|
public bool LoggingEnableDebug { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing stub log messages
|
|
/// </summary>
|
|
public bool LoggingEnableStub { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing info log messages
|
|
/// </summary>
|
|
public bool LoggingEnableInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing warning log messages
|
|
/// </summary>
|
|
public bool LoggingEnableWarn { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing error log messages
|
|
/// </summary>
|
|
public bool LoggingEnableError { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing guest log messages
|
|
/// </summary>
|
|
public bool LoggingEnableGuest { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables printing FS access log messages
|
|
/// </summary>
|
|
public bool LoggingEnableFsAccessLog { get; set; }
|
|
|
|
/// <summary>
|
|
/// Controls which log messages are written to the log targets
|
|
/// </summary>
|
|
public LogClass[] LoggingFilteredClasses { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables or disables logging to a file on disk
|
|
/// </summary>
|
|
public bool EnableFileLog { get; set; }
|
|
|
|
/// <summary>
|
|
/// Change System Language
|
|
/// </summary>
|
|
public Language SystemLanguage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Change System Region
|
|
/// </summary>
|
|
public Region SystemRegion { get; set; }
|
|
|
|
/// <summary>
|
|
/// Change System TimeZone
|
|
/// </summary>
|
|
public string SystemTimeZone { get; set; }
|
|
|
|
/// <summary>
|
|
/// Change System Time Offset in seconds
|
|
/// </summary>
|
|
public long SystemTimeOffset { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables or disables Docked Mode
|
|
/// </summary>
|
|
public bool DockedMode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables or disables Discord Rich Presence
|
|
/// </summary>
|
|
public bool EnableDiscordIntegration { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables or disables Vertical Sync
|
|
/// </summary>
|
|
public bool EnableVsync { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables or disables multi-core scheduling of threads
|
|
/// </summary>
|
|
public bool EnableMulticoreScheduling { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables or disables profiled translation cache persistency
|
|
/// </summary>
|
|
public bool EnablePtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables integrity checks on Game content files
|
|
/// </summary>
|
|
public bool EnableFsIntegrityChecks { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enables FS access log output to the console. Possible modes are 0-3
|
|
/// </summary>
|
|
public int FsGlobalAccessLogMode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enable or disable ignoring missing services
|
|
/// </summary>
|
|
public bool IgnoreMissingServices { get; set; }
|
|
|
|
/// <summary>
|
|
/// Used to toggle columns in the GUI
|
|
/// </summary>
|
|
public GuiColumns GuiColumns { get; set; }
|
|
|
|
/// <summary>
|
|
/// A list of directories containing games to be used to load games into the games list
|
|
/// </summary>
|
|
public List<string> GameDirs { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enable or disable custom themes in the GUI
|
|
/// </summary>
|
|
public bool EnableCustomTheme { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path to custom GUI theme
|
|
/// </summary>
|
|
public string CustomThemePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enable or disable keyboard support (Independent from controllers binding)
|
|
/// </summary>
|
|
public bool EnableKeyboard { get; set; }
|
|
|
|
/// <summary>
|
|
/// Keyboard control bindings
|
|
/// </summary>
|
|
public List<KeyboardConfig> KeyboardConfig { get; set; }
|
|
|
|
/// <summary>
|
|
/// Controller control bindings
|
|
/// </summary>
|
|
public List<ControllerConfig> ControllerConfig { get; set; }
|
|
|
|
/// <summary>
|
|
/// Loads a configuration file from disk
|
|
/// </summary>
|
|
/// <param name="path">The path to the JSON configuration file</param>
|
|
public static ConfigurationFileFormat Load(string path)
|
|
{
|
|
return JsonHelper.DeserializeFromFile<ConfigurationFileFormat>(path);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Save a configuration file to disk
|
|
/// </summary>
|
|
/// <param name="path">The path to the JSON configuration file</param>
|
|
public void SaveConfig(string path)
|
|
{
|
|
File.WriteAllText(path, JsonHelper.Serialize(this, true));
|
|
}
|
|
}
|
|
} |