summaryrefslogtreecommitdiffstats
path: root/src/common/settings.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-21config: Unify config handling under frontend_commont8951-2/+2
Replaces every way of handling config for each frontend with SimpleIni. frontend_common's Config class is at the center where it saves and loads all of the cross-platform settings and provides a set of pure virtual functions for platform specific settings. As a result of making config handling platform specific, several parts had to be moved to each platform's own config class or to other parts. Default keys were put in platform specific config classes and translatable strings for Qt were moved to shared_translation. Default hotkeys, default_theme, window geometry, and qt metatypes were moved to uisettings. Additionally, to reduce dependence on Qt, QStrings were converted to std::strings where applicable.
2023-11-10yuzu: Save mute when in background settingNarr the Reg1-0/+2
2023-10-12yuzu: Use new setting method for stop emulationFlorian1-0/+5
2023-09-23Query Cachge: Fully rework Vulkan's query cacheFernando Sahmkow1-3/+7
2023-08-30android: Expose interface for getting settings from native codeCharles Lombardo1-0/+2
Completely removes code related to parsing the settings file on the java side. Now all settings are accessed via NativeConfig.kt and config.cpp has been modified to be closer to the core counterpart. Since the core currently uses QSettings, we can't remove reliance from Wini yet. This also includes simplifications to each settings interface to get closer to native code and prepare for per-game settings.
2023-08-23settings: Add docked mode helper functionlat9nq1-0/+5
2023-08-16settings: Add AspectRatio enum, split res scale functionlat9nq1-3/+7
2023-07-25settings: Correct Linkage member impl locationlat9nq1-3/+0
2023-07-22common,qt-config: Remove usage of forward_listlat9nq1-1/+0
2023-07-21settings: Remove sorting from loglat9nq1-4/+0
Unecessary, and would run every time the settings are logged.
2023-07-21common: Move global configuration state modifiers back to settingslat9nq1-0/+10
2023-07-21settings: Cleanuplat9nq1-2/+3
Addresses review feedback Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2023-07-21settings: Require time zone setting value for stirnglat9nq1-2/+2
2023-07-21settings,uisettings: Remove leading underscorelat9nq1-1/+1
2023-07-21common,yuzu-qt: Avoid explicit instantiation on old clanglat9nq1-0/+2
Clang versions < 15 have compile issues with explicit instantiation. Disable it for these versions.
2023-07-21settings: Move IsConfiguringGlobal to settings_commonlat9nq1-9/+0
2023-07-21settings: Move some simple data to BasicSettinglat9nq1-8/+0
Reduces the need for the compiler to duplicate this code, by about 100KB executable size.
2023-07-21(ui,)settings: Use explicit instantiationlat9nq1-0/+52
Reduces compile times a tad on clang.
2023-07-21settings: Report all contained settings valueslat9nq1-45/+19
Also adds a couple characters that denotes the state of the setting. M for modified, or not default. C for custom, in context of per-game settings.
2023-07-21settings,general: Rename non-confirming enumslat9nq1-3/+3
2023-07-21configure_audio: Implement ui generationlat9nq1-1/+1
Needs a considerable amount of management specific to some of the comoboboxes due to the audio engine configuration. general: Partial audio config implmentation configure_audio: Implement ui generation Needs a considerable amount of management specific to some of the comoboboxes due to the audio engine configuration. general: Partial audio config implmentation settings: Make audio settings as enums
2023-07-21settings, uisettings: Initialize linkage counterlat9nq1-1/+1
2023-07-21configure_system: Implement with for looplat9nq1-0/+1
2023-07-21settings: Add UiGeneral classlat9nq1-0/+4
2023-07-21settings: Recategorize a bitlat9nq1-2/+5
Will help with generating config UI later.
2023-07-21settings: Add a registry of settingslat9nq1-1/+51
LoadString: Sanitize input settings: Handle empty string, remove redundant category settings: Rename Input to Controls, FS to DataStorage settings: Fix Controls groups information settings: Move use_docked_mode to System (again) settings: Document settings: Add type identification function settings: Move registry into values settings: Move global_reset_registry into values settings: Separate AdvGraphics from Renderer settings: More document squash settings: Use linkage object uisettings: Move registry into settings Probably wont build without uisettings: Use settings linkage object config: Load settings with a map Uses the new all_settings vector to load settings. qt-config: Rename settings category qt config: Rename to read category config: Read/write contols category with for_each This is extremely limited due to the complexity of the Controls group, but this handles the the settings that use the interface. qt-config: Use new settings registry qt-config: Read/write advgrphics qt-config: Use settings linkage object yuzu_cmd: Load setting off of vector cmd-config: Finish settings rename config: Read controls settings group with for_each cmd/config: Move registry into values cmd: Read adv graphics cmd-config: Use settings linkage object
2023-07-21settings,core,config_sys: Remove optional type from custom_rtc, rng_seedlat9nq1-1/+2
core: Fix MSVC errors
2023-07-21settings: Pool SetGlobal functionslat9nq1-59/+4
2023-07-21settings,video_core: Consolidate ASTC decoding optionslat9nq1-2/+0
Just puts them all neatly into one place.
2023-07-10settings: Disable C++20 tzdb path on MinGWlat9nq1-1/+2
This path always results in Etc/UTC on MinGW, which often is not close to the local time zone.
2023-07-09settings: Catch runtime error from STLlat9nq1-3/+2
This function throws a runtime error we can catch on old Windows 10 installs, so we can catch it here rather than disable this path for everybody.
2023-07-05settings: Disable C++20 path on MSVClat9nq1-1/+2
Even though it compiles and runs fine on the latest Windows versions, older LTSC builds will crash due to lacking support somewhere in the OS. For now just disable it for MSVC until either Microsoft fixes this or we no longer support 1809 LTSC.
2023-06-28settings: Clean up includeslat9nq1-2/+3
Adds <version> since we are looking at C++ implementation version details. Also moves exception header includes into the if preprocessor command since we only use it there.
2023-06-28settings: Catch runtime_error, fallback time zonelat9nq1-3/+15
Windows will let you select time zones that will fail in their own C++ implementation library. Evidently from the stack trace, we get a runtime error to work with, so catch it and use the fallback.
2023-06-17video_core: Removed AF for all mip modes option as it's default nowWollnashorn1-1/+0
2023-06-13video_core: Option to apply anisotropic filtering for all mipmap modesWollnashorn1-0/+1
2023-06-08nvnflinger: allow locking framerate during video playbackLiam1-0/+1
2023-06-05common: Move system time zone string detectionlat9nq1-72/+7
Moves it from Settings to Common::TimeZone, since this algorithm doesn't depend on the setting. It also lets us use it in other libraries. common: Various fixes time_zone: Don't double up the std::abs Too many absolute values were causing mirrored time zones to resolve as the same.
2023-06-05settings: Always report a valid time zonelat9nq1-2/+76
Prevents needing to deduce the non-Switch setting in core. Instead, we deduce the meaning of this setting where the heresy is committed, in common. settings: Remove strftime usage GetTimeZoneString: Use standard features Also forces GMT on MinGW due to broken strftime.
2023-05-23textures: add BC1 and BC3 compressors and recompression settingLiam1-0/+2
2023-05-07Settings: add option to enable / disable reactive flushingFernando Sahmkow1-0/+2
2023-05-07settings: Add enable compute pipelineslat9nq1-0/+1
For the Intel proprietary driver's deficiencies. settings: Restore compute option global state
2023-05-04settings: remove pessimistic flushingLiam1-1/+0
2023-05-03configuration: Expose separate swap present modeslat9nq1-2/+1
Previously, yuzu would try and guess which vsync mode to use given different scenarios, but apparently we didn't always get it right. This exposes the separate modes in a drop-down the user can select. If a mode isn't available in Vulkan, it defaults to FIFO.
2023-05-01vk_present_manager: Add toggle for async presentationGPUCode1-0/+1
2023-04-30settings: rename extended memory layout to unsafe, move from general to systemLiam1-1/+2
2023-02-23configuration: Add async ASTC decode settingameerj1-0/+2
2023-02-22settings: Add more input settings to the logNarr the Reg1-0/+7
2023-02-12Update settings.cppm-HD1-0/+4
added missing graphical settings to RestoreGlobalState()
2023-01-13CPPMatías Locatti1-0/+8
2023-01-131.5X resolution scaler optionMatías Locatti1-0/+4
2023-01-05config: Set the Vulkan driver pipeline cache option to be globalWollnashorn1-0/+1
2023-01-05common: add setting for renderer clock workaroundLiam1-0/+1
2022-12-14Set: Allow setting device nicknameChloe Marcec1-0/+1
2022-11-26settings: Reset FSR sharpening global state with the otherslat9nq1-0/+1
2022-11-24FSR Sharpening Slider part 1 - only a global sliderMatías Locatti1-0/+1
2022-11-09Add break statement in default casesEnrico Mancuso1-0/+1
According to the contributing page (https://github.com/yuzu-emu/yuzu/wiki/Contributing) the default cases should have a break statement default: // Yes, even break for the last case break;
2022-08-25video_core: add option for pessimistic flushingLiam1-0/+1
2022-08-12Allow audio volume up to 200%Kelebek11-1/+1
2022-07-22Project AndioKelebek11-1/+2
2022-07-17yuzu: settings: Remove framerate cap and merge unlocked framerate setting.bunnei1-1/+0
- These were all somewhat redundant.
2022-06-14common: Change semantics of UNREACHABLE to unconditionally crashLiam1-1/+1
2022-06-01core/debugger: Implement new GDB stub debuggerLiam1-0/+1
2022-04-28GCC 12 fixesLiam1-1/+1
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-02-27dynarmic: Inline exclusive memory accessesmerry1-0/+1
Inlines implementation of exclusive instructions into JITted code, improving performance of applications relying heavily on these instructions. We also fastmem these instructions for additional speed, with support for appropriate recompilation on fastmem failure. An unsafe optimization to disable the intercore global_monitor is also provided, should one wish to rely solely on cmpxchg semantics for safety. See also: merryhime/dynarmic#664
2022-02-21settings: Add a new "use_extended_memory_layout" setting.bunnei1-0/+1
- This will be used to enable emulation of a larger memory arrangement.
2021-11-21configure_general: Allow framerate cap to be used in custom game configsKewlan1-0/+1
2021-11-16Settings: Add anti-aliasing method settingMarshall Mohror1-0/+1
2021-11-16VideoCore: Add more rescaling option.FernandoS271-0/+13
2021-11-16Texture Cahe: Fix downscaling on SMO.Fernando Sahmkow1-0/+2
2021-11-16video_core: Misc resolution scaling related refactoringameerj1-1/+1
2021-11-16Renderer: Implement Bicubic and ScaleForce filters.Fernando Sahmkow1-9/+1
2021-11-16common/settings: Remove unused scaling optionsReinUsesLisp1-16/+7
2021-11-16Settings: eliminate rescaling_factor.Fernando Sahmkow1-1/+1
2021-11-16Settings: Add resolution scaling to settings.Fernando Sahmkow1-0/+51
2021-11-16VideoCore: Initial Setup for the Resolution Scaler.Fernando Sahmkow1-0/+1
2021-09-29settings: Remove BCAT settingsMorph1-2/+0
2021-09-16fix_accidental_deletionMoonlacer1-1/+2
2021-09-16remove-audio-stretching-settingMoonlacer1-4/+1
2021-09-10input_common: Enable steam controllers and 8 player supportgerman771-0/+3
2021-08-28Garbage Collection: enable as default, eliminate option.Fernando Sahmkow1-2/+0
2021-08-16configure_graphics: Add GPU nvdec decoding as an optionameerj1-2/+2
Some system configurations may see visual regressions or lower performance using GPU decoding compared to CPU decoding. This setting provides the option for users to specify their decoding preference. Co-Authored-By: yzct12345 <87620833+yzct12345@users.noreply.github.com>
2021-07-24general: Rename "Frame Limit" references to "Speed Limit"ameerj1-4/+4
This setting is best referred to as a speed limit, as it involves the limits of all timing based aspects of the emulator, not only framerate. This allows us to differentiate it from the fps unlocker setting.
2021-07-23general: Add setting shader_backendlat9nq1-2/+2
GLASM is getting good enough that we can move it out of advanced graphics settings. This removes the setting `use_assembly_shaders`, opting for a enum class `shader_backend`. This comes with the benefits that it is extensible for additional shader backends besides GLSL and GLASM, and this will work better with a QComboBox. Qt removes the related assembly shader setting from the Advanced Graphics section and places it as a new QComboBox in the API Settings group. This will replace the Vulkan device selector when OpenGL is selected. Additionally, mark all of the custom anisotropic filtering settings as "WILL BREAK THINGS", as that is the case with a select few games.
2021-07-09configure_audio: Use u8 for volume valueameerj1-1/+1
2021-07-08settings, arm_dynarmic, yuzu qt: Move CPU debugging optionlat9nq1-1/+1
Decouples the CPU debugging mode from the enumeration to its own boolean. After this, it moves the CPU Debugging tab over to a sub tab underneath the Debug tab in the configuration UI.
2021-06-28general: Make most settings a BasicSettinglat9nq1-8/+8
Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting.
2021-06-20Update dynarmic and add new unsafe CPU option.Fernando Sahmkow1-0/+1
2021-06-16Reaper: Setup settings and final tuning.Fernando Sahmkow1-0/+2
2021-06-16configure_graphics: Add Accelerate ASTC decoding settingameerj1-0/+2
2021-06-11General: Add settings for fastmem and disabling adress space check.FernandoS271-0/+8
2021-05-26common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270)Morph1-6/+10
* common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
2021-05-17general: Demote custom_rtc to regular settinglat9nq1-1/+0
2021-05-16configuration: Add CPU tab to game propertieslat9nq1-0/+6
Allows setting CPU accuracy to Accurate or Unsafe per-game, as well as the accuracy options for Unsafe. Debug is not allowed here as a per-game CPU accuracy.
2021-05-16general: Make CPU accuracy and related a Settings::Settinglat9nq1-1/+1
Required to make CPU accuracy and unsafe settings available to use as a per-game setting.
2021-04-15common: Move settings to common from core.bunnei1-13/+2
- Removes a dependency on core and input_common from common.
2021-02-02settings: Log the cache, config, and mod load directoriesMorph1-0/+3
2020-12-29core: settings: Untangle multicore from asynchronous GPU.bunnei1-5/+0
- Now that GPU is always threaded, we can support multicore with synchronous GPU.
2020-12-19yuzu: Remove gdbstub configurationFearlessTobi1-2/+0
The gdbstub itself was removed with https://github.com/yuzu-emu/yuzu/pull/5028. This PR just removes the remaining gdb configuration code from the emulator and the UI.
2020-11-27core: Eliminate remaining usages of the global system instanceLioncash1-10/+7
Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends.
2020-11-16settings: Remove global vibration strength modifierMorph1-1/+0
This will be replaced in favor of per-player vibration strength modifiers.
2020-11-16configure_input: Hook up the vibration percentage spinboxMorph1-0/+1
This allows setting the vibration strength percentage anywhere from 1% to 100%. Also hooks up the remaining motion button and checkbox in the Controller Applet.
2020-11-16settings: Preparation for per-game input settingsMorph1-1/+7
2020-11-07settings: log value of CPU_Accuracylat9nq1-0/+1
2020-11-04core/settings: Move configuring_global behind an APILioncash1-6/+14
Rather than have directly modified global state here, we can make it an implementation detail and have an interface that changes are queried through.
2020-10-27video_core: NVDEC Implementationameerj1-0/+2
This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>
2020-08-26Project Mjölnir: Part 1Morph1-50/+0
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-16common/fileutil: Convert namespace to Common::FSLioncash1-2/+2
Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
2020-07-28configure_graphics: Remove Force 30 FPS modeMorph1-1/+0
The introduction of multicore rendered this setting non-functional as timing code was changed. This removes the setting entirely.
2020-07-17Drop settings namespaceDavid Marcec1-2/+1
2020-07-17Rebase for per game settingsDavid Marcec1-0/+3
2020-07-15settings: Resolve a sign conversion warning within GetTimeZoneString()Lioncash1-5/+5
A sign conversion warning was occurring due to an int < size_t comparison.
2020-07-15settings: Make use of std::string_view over std::string for loggingLioncash1-33/+34
In all usages of LogSetting(), string literals are provided. std::string_view is better suited here, as we won't churn a bunch of string allocations every time the settings are logged out. While we're at it, we can fold LogSetting() into LogSettings(), given it's only ever used there.
2020-07-14clang-formatlat9nq1-2/+1
2020-07-14settings: Move settings sanitization to its own functionlat9nq1-0/+6
Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables.
2020-07-10configuration: implement per-game configurations (#4098)lat9nq1-21/+63
* Switch game settings to use a pointer In order to add full per-game settings, we need to be able to tell yuzu to switch to using either the global or game configuration. Using a pointer makes it easier to switch. * configuration: add new UI without changing existing funcitonality The new UI also adds General, System, Graphics, Advanced Graphics, and Audio tabs, but as yet they do nothing. This commit keeps yuzu to the same functionality as originally branched. * configuration: Rename files These weren't included in the last commit. Now they are. * configuration: setup global configuration checkbox Global config checkbox now enables/disables the appropriate tabs in the game properties dialog. The use global configuration setting is now saved to the config, defaulting to true. This also addresses some changes requested in the PR. * configuration: swap to per-game config memory for properties dialog Does not set memory going in-game. Swaps to game values when opening the properties dialog, then swaps back when closing it. Uses a `memcpy` to swap. Also implements saving config files, limited to certain groups of configurations so as to not risk setting unsafe configurations. * configuration: change config interfaces to use config-specific pointers When a game is booted, we need to be able to open the configuration dialogs without changing the settings pointer in the game's emualtion. A new pointer specific to just the configuration dialogs can be used to separate changes to just those config dialogs without affecting the emulation. * configuration: boot a game using per-game settings Swaps values where needed to boot a game. * configuration: user correct config during emulation Creates a new pointer specifically for modifying the configuration while emulation is in progress. Both the regular configuration dialog and the game properties dialog now use the pointer Settings::config_values to focus edits to the correct struct. * settings: split Settings::values into two different structs By splitting the settings into two mutually exclusive structs, it becomes easier, as a developer, to determine how to use the Settings structs after per-game configurations is merged. Other benefits include only duplicating the required settings in memory. * settings: move use_docked_mode to Controls group `use_docked_mode` is set in the input settings and cannot be accessed from the system settings. Grouping it with system settings causes it to be saved with per-game settings, which may make transferring configs more difficult later on, especially since docked mode cannot be set from within the game properties dialog. * configuration: Fix the other yuzu executables and a regression In main.cpp, we have to get the title ID before the ROM is loaded, else the renderer will reflect only the global settings and now the user's game specific settings. * settings: use a template to duplicate memory for each setting Replaces the type of each variable in the Settings::Values struct with a new class that allows basic data reading and writing. The new struct Settings::Setting duplicates the data in memory and can manage global overrides per each setting. * configuration: correct add-ons config and swap settings when apropriate Any add-ons interaction happens directly through the global values struct. Swapping bewteen structs now also includes copying the necessary global configs that cannot be changed nor saved in per-game settings. General and System config menus now update based on whether it is viewing the global or per-game settings. * settings: restore old values struct No longer needed with the Settings::Setting class template. * configuration: implement hierarchical game properties dialog This sets the apropriate global or local data in each setting. * clang format * clang format take 2 can the docker container save this? * address comments and style issues * config: read and write settings with global awareness Adds new functions to read and write settings while keeping the global state in focus. Files now generated per-game are much smaller since often they only need address the global state. * settings: restore global state when necessary Upon closing a game or the game properties dialog, we need to restore all global settings to the original global state so that we can properly open the configuration dialog or boot a different game. * configuration: guard setting values incorrectly This disables setting values while a game is running if the setting is overwritten by a per game setting. * config: don't write local settings in the global config Simple guards to prevent writing the wrong settings in the wrong files. * configuration: add comments, assume less, and clang format No longer assumes that a disabled UI element means the global state is turned off, instead opting to directly answer that question. Still however assumes a game is running if it is in that state. * configuration: fix a logic error Should not be negated * restore settings' global state regardless of accept/cancel Fixes loading a properties dialog and causing the global config dialog to show local settings. * fix more logic errors Fixed the frame limit would set the global setting from the game properties dialog. Also strengthened the Settings::Setting member variables and simplified the logic in config reading (ReadSettingGlobal). * fix another logic error In my efforts to guard RestoreGlobalState, I accidentally negated the IsPowered condition. * configure_audio: set toggle_stretched_audio to tristate * fixed custom rtc and rng seed overwriting the global value * clang format * rebased * clang format take 4 * address my own review Basically revert unintended changes * settings: literal instead of casting "No need to cast, use 1U instead" Thanks, Morph! Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> * Revert "settings: literal instead of casting " This reverts commit 95e992a87c898f3e882ffdb415bb0ef9f80f613f. * main: fix status buttons reporting wrong settings after stop emulation * settings: Log UseDockedMode in the Controls group This should have happened when use_docked_mode was moved over to the controls group internally. This just reflects this in the log. * main: load settings if the file has a title id In other words, don't exit if the loader has trouble getting a title id. * use a zero * settings: initalize resolution factor with constructor instead of casting * Revert "settings: initalize resolution factor with constructor instead of casting" This reverts commit 54c35ecb46a29953842614620f9b7de1aa9d5dc8. * configure_graphics: guard device selector when Vulkan is global Prevents the user from editing the device selector if Vulkan is the global renderer backend. Also resets the vulkan_device variable when the users switches back-and-forth between global and Vulkan. * address reviewer concerns Changes function variables to const wherever they don't need to be changed. Sets Settings::Setting to final as it should not be inherited from. Sets ConfigurationShared::use_global_text to static. Co-Authored-By: VolcaEM <volcaem@users.noreply.github.com> * main: load per-game settings after LoadROM This prevents `Restart Emulation` from restoring the global settings *after* the per-game settings were applied. Thanks to BSoDGamingYT for finding this bug. * Revert "main: load per-game settings after LoadROM" This reverts commit 9d0d48c52d2dcf3bfb1806cc8fa7d5a271a8a804. * main: only restore global settings when necessary Loading the per-game settings cannot happen after the ROM is loaded, so we have to specify when to restore the global state. Again thanks to BSoD for finding the bug. * configuration_shared: address reviewer concerns except operator overrides Dropping operator override usage in next commit. Co-Authored-By: LC <lioncash@users.noreply.github.com> * settings: Drop operator overrides from Setting template Requires using GetValue and SetValue explicitly. Also reverts a change that broke title ID formatting in the game properties dialog. * complete rebase * configuration_shared: translate "Use global configuration" Uses ConfigurePerGame to do so, since its usage, at least as of now, corresponds with ConfigurationShared. * configure_per_game: address reviewer concern As far as I understand, it prevents the program from unnecessarily copying strings. Co-Authored-By: LC <lioncash@users.noreply.github.com> Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: VolcaEM <volcaem@users.noreply.github.com> Co-authored-by: LC <lioncash@users.noreply.github.com>
2020-06-26Add a "Mute Audio" hotkeyKewlan1-0/+7
2020-05-19yuzu: Add frontend settings for assembly shadersReinUsesLisp1-0/+1
Add settings for assembly shaders. Currently hidden to avoid users from accidentally enabled them.
2020-05-11core: settings: Add a setting for time zone.bunnei1-0/+16
2020-05-03settings: Add anisotropic filtering level to the yuzu configuration log (#3875)Morph1-0/+1
2020-04-22Correct Linux Compile Error.Fernando Sahmkow1-0/+8
2020-04-22UI: Replasce accurate GPU option for GPU Accuracy LevelFernando Sahmkow1-1/+1
2020-03-19set: implement GetRegionCodeDan1-0/+1
2020-02-26core: settings: Add setting to enable vsync, which is on by default.bunnei1-0/+1
2019-09-30settings: Add option to set BCAT backendZach Hilman1-0/+2
2019-09-21settings: Update LogSettings to show NAND/SDMC paths from FileUtilZach Hilman1-2/+3
2019-07-11yuzu: Remove setting for using UnicornLioncash1-1/+0
The JIT is mature enough that this setting can be removed, falling back to Unicorn only on unsupported architectures. Any missing features from Unicorn (of which there are extremely few), are mostly developer-oriented, which most users don't care about. Features should be coordinated with the JIT, not the interpreter, anyhow.
2019-07-04yuzu: Remove CPU Jit setting from the UIfearlessTobi1-1/+1
A normal user shouldn't change this, as it will slow down the emulation and can lead to bugs or crashes. The renaming is done in order to prevent users from leaving this on without a way to turn it off from the UI.
2019-05-30rasterizer_opengl: Remove OpenGL core profileReinUsesLisp1-1/+0
2019-04-20Allow picking a Compatibility Profile for OpenGL.Fernando Sahmkow1-0/+1
This option allows picking the compatibility profile since a lot of bugs are fixed in it. We devs will use this option to easierly debug current problems in our Core implementation.:wq
2019-03-29core/yuzu: Remove enable_nfc settingfearlessTobi1-1/+0
This was initially added to prevent problems from stubbed/not implemented NFC services, but as we never encountered such and as it's only used in a deprecated function anyway, I guess we can just remove it to prevent more clutter of the settings.
2019-03-09clang fixHexagon121-1/+2
2019-03-09Log 2 new setting valuesHexagon121-0/+2
2019-01-22citra_qt: Log settings on launchzhupengfei1-0/+29
2018-11-19hid: Use player-defined controller type as PREFERRED_CONTROLLERZach Hilman1-0/+50
2018-08-11video_core; Get rid of global g_toggle_framelimit_enabled variableLioncash1-5/+1
Instead, we make a struct for renderer settings and allow the renderer to update all of these settings, getting rid of the need for global-scoped variables. This also uncovered a few indirect inclusions for certain headers, which this commit also fixes.
2018-08-04video_core: Eliminate the g_renderer global variableLioncash1-2/+4
We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency.
2018-08-02video_core: Make global EmuWindow instance part of the base renderer classLioncash1-5/+3
Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer.
2018-01-13Remove references to PICA and rasterizers in video_coreJames Rowe1-6/+0
2017-10-10hle: Remove a large amount of 3ds-specific service code.bunnei1-2/+0
2017-08-25SidebySide Layout (#2859)ThaMighty901-1/+1
* added a SidebySide Layout * Reworked, so both screen have the same height and cleaned up screen translates. * added the option in the UI, hope this is the right way to do it. formated framebuffer_layout.cpp * delete the x64 files * deleted ui_configure_graphics.h * added Option for the Layout in the xml * got rid of SIDE_BY_SIDE_ASPECT_RATIO because it was useless. pulled translate into variables * changed shift variables to u32 and moved them in their respective branch. remove notr="true" for the Screen layout drop down * reworked intends :). changed function description for SideFrameLayout * some description reworking
2017-05-28Core: Fix some out-of-style includesYuri Kunde Schlesner1-1/+1
2017-05-04ir: implement new 3ds HID via ir:rstwwylele1-1/+1
2017-05-03ir: implement circle pad prowwylele1-0/+2
2017-03-01HID: use ButtonDevicewwylele1-0/+3
2017-01-31removed the possibly uneeded cast on values.gdbstub_portnoah the goodra1-1/+1
as far as i could tell this cast is unneeded because [GDBStub::SetServerPort](https://github.com/citra-emu/citra/blob/master/src/core/gdbstub/gdbstub.cpp#L897) takes a u16 and [values.gdbstub_port](https://github.com/citra-emu/citra/blob/master/src/core/settings.h#L116) is already a u16
2017-01-07config: Add option for specifying screen resolution scale factor.bunnei1-1/+0
2016-12-23core: Move emu_window and key_map into coreMerryMage1-1/+1
* Removes circular dependences (common should not depend on core)
2016-12-06Implement Frame rate limiter (#2223)emmauss1-0/+1
* implement frame limiter * fixes
2016-11-05Support additional screen layouts.James Rowe1-0/+7
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-1/+0
2016-08-31configure_audio: User-configuratble option to enable/disable audio stretchingMerryMage1-0/+1
2016-04-30Audio: Add sink selection to configuration filesMerryMage1-0/+5
2016-04-21Config: Add scaled resolution optiontfarley1-1/+1
2016-04-11CitraQt: Apply config at startupJannik Vogel1-0/+14
2014-12-21License changepurpasmart961-1/+1
2014-10-08Added configuration file system.archshift1-0/+11
Uses QSettings on citra-qt, and inih on citra-cli.