diff --git a/Ryujinx.sln b/Ryujinx.sln index 8177f8617c..18df571bb6 100644 --- a/Ryujinx.sln +++ b/Ryujinx.sln @@ -28,7 +28,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ryujinx.Common", "Ryujinx.C EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ryujinx.Profiler", "Ryujinx.Profiler\Ryujinx.Profiler.csproj", "{4E69B67F-8CA7-42CF-A9E1-CCB0915DFB34}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ARMeilleure", "ARMeilleure\ARMeilleure.csproj", "{ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ARMeilleure", "ARMeilleure\ARMeilleure.csproj", "{ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -126,6 +126,14 @@ Global {4E69B67F-8CA7-42CF-A9E1-CCB0915DFB34}.Profile Release|Any CPU.Build.0 = Profile Release|Any CPU {4E69B67F-8CA7-42CF-A9E1-CCB0915DFB34}.Release|Any CPU.ActiveCfg = Release|Any CPU {4E69B67F-8CA7-42CF-A9E1-CCB0915DFB34}.Release|Any CPU.Build.0 = Release|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Profile Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Profile Debug|Any CPU.Build.0 = Debug|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Profile Release|Any CPU.ActiveCfg = Release|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Profile Release|Any CPU.Build.0 = Release|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ABF09A5E-2D8B-4B6F-A51D-5CE414DDB15A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Ryujinx/Config.jsonc b/Ryujinx/Config.json similarity index 53% rename from Ryujinx/Config.jsonc rename to Ryujinx/Config.json index 35ecc8ac02..ac98ae02f2 100644 --- a/Ryujinx/Config.jsonc +++ b/Ryujinx/Config.json @@ -1,81 +1,26 @@ { - "$schema": "./_schema.json", - - // Dump shaders in local directory (e.g. `C:\ShaderDumps`) "graphics_shaders_dump_path": "", - - // Enable printing debug logs "logging_enable_debug": false, - - // Enable printing stubbed calls logs "logging_enable_stub": true, - - // Enable printing information logs "logging_enable_info": true, - - // Enable printing warning logs "logging_enable_warn": true, - - // Enable printing error logs "logging_enable_error": true, - - // Enable printing guest logs "logging_enable_guest": true, - - // Enable printing FS access logs. fs_global_access_log_mode must be 2 or 3 "logging_enable_fs_access_log": false, - - // Filtered log classes, in a JSON array, eg. `[ "Loader", "ServiceFs" ]` "logging_filtered_classes": [ ], - - // Enable file logging "enable_file_log": true, - - // Change System Language - // System Language list: https://gist.github.com/HorrorTroll/b6e4a88d774c3c9b3bdf54d79a7ca43b - "system_language": "AmericanEnglish", - - // Enable or disable Docked Mode + "system_language": "BritishEnglish", "docked_mode": false, - - // Enable or disable Discord Rich Presence "enable_discord_integration": true, - - // Enable or disable Game Vsync "enable_vsync": true, - - // Enable or disable Multi-core scheduling of threads "enable_multicore_scheduling": true, - - // Enable integrity checks on Switch content files "enable_fs_integrity_checks": true, - - // Sets the "GlobalAccessLogMode". Possible modes are 0-3 - "fs_global_access_log_mode": 0, - - // Use old ChocolArm64 ARM emulator "enable_legacy_jit": false, - - // Enable or disable ignoring missing services, this may cause instability "ignore_missing_services": false, - - // Enable or disable custom themes in the GUI. - "enable_custom_theme": false, - - // Path to custom GUI theme. - "custom_theme_path": "", - - // The primary controller's type - // Supported Values: Handheld, ProController, NpadPair, NpadLeft, NpadRight "controller_type": "Handheld", - - // Enable or disable "direct keyboard access (HID) support" (Provides games access to your keyboard as a text entry device). - "enable_keyboard": false, - - // Keyboard Controls - // https://github.com/opentk/opentk/blob/master/src/OpenTK/Input/Key.cs + "enable_custom_theme": false, + "custom_theme_path": "", "keyboard_controls": { - // Left JoyCon Keyboard Bindings "left_joycon": { "stick_up": "W", "stick_down": "S", @@ -90,8 +35,6 @@ "button_l": "E", "button_zl": "Q" }, - - // Right JoyCon Keyboard Bindings "right_joycon": { "stick_up": "I", "stick_down": "K", @@ -106,27 +49,15 @@ "button_r": "U", "button_zr": "O" }, - "hotkeys": { "toggle_vsync": "Tab" } }, - - // Controller Controls - "joystick_controls": { - // Whether or not to enable Controller support - "enabled": true, - - // Controller Device Index + "joystick_controls": { + "enabled": false, "index": 0, - - // Controller Analog Stick Deadzone "deadzone": 0.05, - - // The value of how pressed down each trigger has to be in order to register a button press "trigger_threshold": 0.5, - - // Left JoyCon Controller Bindings "left_joycon": { "stick": "Axis0", "stick_button": "Button13", @@ -138,8 +69,6 @@ "button_l": "Button6", "button_zl": "Button8" }, - - // Right JoyCon Controller Bindings "right_joycon": { "stick": "Axis2", "stick_button": "Button14", diff --git a/Ryujinx/GUI/GeneralSettings.cs b/Ryujinx/GUI/GeneralSettings.cs index bd137ded9d..e3d16483df 100644 --- a/Ryujinx/GUI/GeneralSettings.cs +++ b/Ryujinx/GUI/GeneralSettings.cs @@ -32,8 +32,6 @@ namespace Ryujinx [GUI] CheckButton CustThemeToggle; [GUI] Entry CustThemeDir; [GUI] TextView GameDirsBox; - [GUI] ToggleButton SaveToggle; - [GUI] ToggleButton CloseToggle; public static void ConfigureSettings(Configuration Instance) { SwitchConfig = Instance; } @@ -47,8 +45,6 @@ namespace Ryujinx GSWin.Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.GUI.assets.ryujinxIcon.png"); - CustThemeToggle.Clicked += CustThemeToggle_Activated; - if (SwitchConfig.LoggingEnableError) { ErrorLogToggle.Click(); } if (SwitchConfig.LoggingEnableWarn) { WarningLogToggle.Click(); } if (SwitchConfig.LoggingEnableInfo) { InfoLogToggle.Click(); } @@ -102,7 +98,7 @@ namespace Ryujinx SwitchConfig.SystemLanguage = (SystemLanguage)Enum.Parse(typeof(SystemLanguage), SystemLanguageSelect.ActiveId); SwitchConfig.CustomThemePath = CustThemeDir.Buffer.Text; - Configuration.SaveConfig(SwitchConfig, System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.jsonc")); + Configuration.SaveConfig(SwitchConfig, System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.json")); File.WriteAllText("./GameDirs.dat", GameDirsBox.Buffer.Text); Configuration.Configure(device, SwitchConfig); diff --git a/Ryujinx/GUI/GeneralSettings.glade b/Ryujinx/GUI/GeneralSettings.glade index 45b1b7eabf..ca4c4d6da6 100644 --- a/Ryujinx/GUI/GeneralSettings.glade +++ b/Ryujinx/GUI/GeneralSettings.glade @@ -2,29 +2,29 @@ - + False - Ryujinx - General Settings (Read-Only) - 500 + True + dialog - + - True False vertical - - - True + 2 + + False - vertical + end - + + Save True - False - 4 - Emulation Settings + True + True + False @@ -32,10 +32,37 @@ 0 + + + Close + True + True + True + + + + False + True + 1 + + + + + False + False + 0 + + + + + True + True True False + 15 + 15 Enable Error Logs @@ -49,58 +76,6 @@ 0 - - - Enable File Log - True - True - False - True - - - 0 - 1 - - - - - Enable FS Integrity Checks - True - True - False - True - - - 0 - 2 - - - - - Enable Aggressive CPU Options - True - True - False - True - - - 1 - 2 - - - - - Enable Docked Mode - True - True - False - True - - - 1 - 1 - - Enable Warning Logs @@ -127,45 +102,6 @@ 0 - - - Enable Discord Integration - True - True - False - True - - - 2 - 1 - - - - - Ignore Missing Services - True - True - False - True - - - 2 - 2 - - - - - Enable VSync - True - True - False - True - - - 3 - 1 - - Enable Stub Logs @@ -188,8 +124,60 @@ True - 4 - 0 + 0 + 1 + + + + + Enable File Log + True + True + False + True + + + 1 + 1 + + + + + Enable Discord Integration + True + True + False + True + + + 2 + 1 + + + + + Enable Docked Mode + True + True + False + True + + + 0 + 2 + + + + + Enable VSync + True + True + False + True + + + 3 + 1 @@ -201,8 +189,58 @@ True - 4 - 1 + 1 + 2 + + + + + Enable FS Integrity Checks + True + True + False + True + + + 2 + 2 + + + + + Enable Aggressive CPU Options + True + True + False + True + + + 3 + 2 + + + + + Ignore Missing Services + True + True + False + True + + + 0 + 3 + + + + + True + False + System Language: + + + 2 + 3 @@ -230,135 +268,31 @@ - 4 - 2 + 3 + 3 - + True False - System Language: + gtk-discard - 3 - 2 + 1 + 3 - - False - True - 1 - - - - True - True - 0 - - - - - True - False - - - False - True - 1 - - - - - True - False - 4 - GUI Settings - - - False - True - 2 - - - - - True - False - - - Use Custom Theme - True - True - False - True - - - False - True - 1 - - - + True False - Custom Theme Dir: + Emulation Settings - False - True - 5 - 1 - - - - - True - True - - - True - True - 2 - - - - - False - True - 3 - - - - - True - False - - - False - True - 4 - - - - - True - False - vertical - - - True - False - 4 - Game Directories - - - False - True - 0 + False @@ -374,67 +308,86 @@ - True - True 1 + + + True + False + Game Directories + + + 1 + False + + + + + True + False + + + Use Custom Theme + True + True + False + True + + + + False + True + 10 + 0 + + + + + True + False + Custom Theme Dir: + + + False + True + 5 + 1 + + + + + True + True + center + + + True + True + 2 + + + + + 2 + + + + + True + False + GUI Settings + + + 2 + False + + True True - 5 - - - - - True - False - - - True - False - gtk-discard - - - True - True - 0 - - - - - Save - True - True - True - - - - False - True - 1 - - - - - Close - True - True - True - - - - False - True - 2 - - - - - False - True - 6 + 1 diff --git a/Ryujinx/GUI/MainMenu.cs b/Ryujinx/GUI/MainMenu.cs index 2348d7e8fa..141efebdb9 100644 --- a/Ryujinx/GUI/MainMenu.cs +++ b/Ryujinx/GUI/MainMenu.cs @@ -49,7 +49,7 @@ namespace Ryujinx device = new HLE.Switch(renderer, audioOut); - Configuration.Load(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.jsonc")); + Configuration.Load(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.json")); Configuration.InitialConfigure(device); gtkapp = _gtkapp; diff --git a/Ryujinx/GUI/MainMenu.glade b/Ryujinx/GUI/MainMenu.glade index 820a92743f..47665c4f98 100644 --- a/Ryujinx/GUI/MainMenu.glade +++ b/Ryujinx/GUI/MainMenu.glade @@ -2,16 +2,11 @@ - + False Ryujinx - center 1280 750 - center - - - True diff --git a/Ryujinx/GUI/assets/Theme.css b/Ryujinx/GUI/assets/Theme.css index 63cf860e9a..997f3f11ac 100644 --- a/Ryujinx/GUI/assets/Theme.css +++ b/Ryujinx/GUI/assets/Theme.css @@ -26,6 +26,24 @@ separator { background: #929394; } +notebook { + border: none; +} + + notebook > header { + background-color: #2C2F33; + border: none; + } + + notebook > header label { + color: #F4F6F7; + } + +notebook > stack:not(:only-child) { + background-color: transparent; + border-width: 0px; +} + treeview { background-color: #2C2F33; color: #F4F6F7; @@ -193,4 +211,4 @@ scrollbar { scrollbar.horizontal slider { min-width: 30px; min-height: 6px; - } + } \ No newline at end of file diff --git a/Ryujinx/Ryujinx.csproj b/Ryujinx/Ryujinx.csproj index 24aacd50ff..c24b888c80 100644 --- a/Ryujinx/Ryujinx.csproj +++ b/Ryujinx/Ryujinx.csproj @@ -42,7 +42,7 @@ - + PreserveNewest