summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/config.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow all touch inputs at the same time and remove config options that are not longer necesarygerman2021-01-151-4/+0
|
* config: Enable docked mode by defaultMorph2021-01-101-1/+1
|
* yuzu: Remove gdbstub configurationFearlessTobi2020-12-191-3/+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.
* yuzu_cmd: Remove 'users_size'comex2020-12-051-1/+0
| | | | | | | | | | | Specifically: const auto size = sdl2_config->GetInteger("System", "users_size", 0); The variable is never used, producing a warning. I wondered if this ought to be assigning something to in `Settings`, but nothing else in the codebase ever mentions a setting called "users_size", so I guess it's safe to remove...
* Add multiple udp server supportgerman2020-11-261-4/+2
|
* configure_input: Add per-player vibrationMorph2020-11-161-0/+2
| | | | | | | Allows for enabling and modifying vibration and vibration strength per player. Also adds a toggle for enabling/disabling accurate vibrations. Co-authored-by: Its-Rei <kupfel@gmail.com>
* settings: Remove global vibration strength modifierMorph2020-11-161-2/+0
| | | | This will be replaced in favor of per-player vibration strength modifiers.
* configure_input: Hook up the vibration percentage spinboxMorph2020-11-161-0/+2
| | | | | 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.
* settings: Preparation for per-game input settingsMorph2020-11-161-12/+13
|
* yuzu: settings: Enable multicore, asynch GPU, and assembly shaders by default.bunnei2020-10-271-3/+3
| | | | | | | - In general, this is now the preferred settings for most games. # Conflicts: # src/yuzu/configuration/config.cpp
* configure_input: Hook up the motion button and checkboxMorph2020-09-051-0/+2
| | | | | This allows toggling motion on or off, and allows access to the motion configuration. Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
* Project Mjölnir: Part 1Morph2020-08-261-0/+2
| | | | | Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
* common/fileutil: Convert namespace to Common::FSLioncash2020-08-161-18/+20
| | | | | | | | | | | | 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.
* Rebase for per game settingsDavid Marcec2020-07-171-0/+4
|
* Merge pull request #4294 from MerryMage/cpu-opt-settingsbunnei2020-07-141-2/+0
|\ | | | | configuration: Add settings to enable/disable specific CPU optimizations
| * configuration: Add settings to enable/disable specific CPU optimizationsMerryMage2020-07-111-2/+0
| |
* | settings: Remove storage size optionsMorph2020-07-101-9/+0
|/
* configuration: implement per-game configurations (#4098)lat9nq2020-07-101-37/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Merge pull request #3966 from Morph1984/hide-internal-resolution-uibunnei2020-06-161-2/+0
|\ | | | | yuzu/frontend: Remove internal resolution option
| * yuzu/frontend: Remove internal resolution optionMorph2020-06-061-2/+0
| |
* | Implement macro JITDavid Marcec2020-05-301-0/+2
|/
* yuzu: Add frontend settings for assembly shadersReinUsesLisp2020-05-191-0/+2
| | | | | Add settings for assembly shaders. Currently hidden to avoid users from accidentally enabled them.
* core: settings: Add a setting for time zone.bunnei2020-05-111-2/+3
|
* GPU: Add Fast GPU Time Option.Fernando Sahmkow2020-04-231-0/+2
|
* UI: Replasce accurate GPU option for GPU Accuracy LevelFernando Sahmkow2020-04-221-2/+2
|
* dynarmic: Add option to disable CPU JIT optimizationsMerryMage2020-04-201-0/+2
|
* bcat: Disable Boxcat backend by defaultFearlessTobi2020-03-171-1/+1
| | | | | | | | | | | | This commit disables the Boxcat backend by default for new users of yuzu. There's several reasons as to why this is done: 1. Boxcat currently only actually has an impact on 3 games and doesn't influence any core mechanics of them 2. It causes a plethora of issues when enabled such as games like Crash Team Racing, Diablo 3 and Tales of Vesperia not booting at all or hanging 3. It causes https://github.com/yuzu-emu/yuzu/issues/2957 to happen. This makes the configuration menu totally unusable for many Linux users of yuzu I think those points show that currently the negative impact of Boxcat outweighs its benefits and should therefore be disabled by default. For users who are eager to use the extra features provided by it, they can still just turn it on in the settings.
* Create an "Advanced" tab in the graphics configuration tab and add anisotropic filtering levels.Morph2020-02-281-0/+2
|
* core: settings: Add setting to enable vsync, which is on by default.bunnei2020-02-261-0/+2
|
* Add following aspect ratios: 16:9, 21:9, Stretch to WindowMorph2020-02-141-0/+2
| | | | Available as a drop down within the configure graphics tab.
* settings: Add settings for graphics backendReinUsesLisp2020-01-291-0/+6
|
* Replace GetString with Get functionFearlessTobi2020-01-231-2/+2
| | | | This should hopefully fix compilation errors.
* Input: UDP Client to provide motion and touch controlsfearlessTobi2020-01-231-0/+5
| | | | | | | | An implementation of the cemuhook motion/touch protocol, this adds the ability for users to connect several different devices to citra to send direct motion and touch data to citra. Co-Authored-By: jroweboy <jroweboy@gmail.com>
* settings: Add option to set BCAT backendZach Hilman2019-09-301-0/+5
|
* settings: Add options for managing gamecard emulationZach Hilman2019-09-211-0/+14
|
* settings: Add options for setting storage sizesZach Hilman2019-09-211-0/+9
|
* Add frametime logging for tracking performance over timefearlessTobi2019-09-101-0/+2
| | | | Co-Authored-By: jroweboy <jroweboy@gmail.com>
* yuzu: Remove setting for using UnicornLioncash2019-07-111-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.
* Merge pull request #2669 from FearlessTobi/move-cpujit-settingZach Hilman2019-07-041-1/+1
|\ | | | | yuzu: Move CPU Jit setting to Debug tab
| * yuzu: Remove CPU Jit setting from the UIfearlessTobi2019-07-041-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.
* | settings: Add config option for kiosk (quest) modeZach Hilman2019-06-291-0/+1
|/
* Merge pull request #2482 from DarkLordZach/prepobunnei2019-06-211-0/+2
|\ | | | | core: Add detailed local reporting feature for development
| * settings: Add 'Reporting Services' config optionZach Hilman2019-05-251-0/+2
| | | | | | | | Full enable/disable for all reports.
* | rasterizer_opengl: Remove OpenGL core profileReinUsesLisp2019-05-301-2/+0
| |
* | common/file_util: Make ReadFileToString and WriteStringToFile consistentLioncash2019-05-231-2/+2
|/ | | | | | | | | | | Makes the parameter ordering consistent, and also makes the filename parameter a std::string. A std::string would be constructed anyways with the previous code, as IOFile's only constructor with a filepath is one taking a std::string. We can also make WriteStringToFile's string parameter utilize a std::string_view for the string, making use of our previous changes to IOFile.
* Allow picking a Compatibility Profile for OpenGL.Fernando Sahmkow2019-04-201-0/+2
| | | | | | 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
* core/yuzu: Remove enable_nfc settingfearlessTobi2019-03-291-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.
* yuzu_cmd/config: Replace C casts with static_castReinUsesLisp2019-03-091-4/+5
|
* yuzu_cmd/config: Silent implicit cast warningReinUsesLisp2019-03-091-1/+1
|
* settings: Add new graphics setting for use_asynchronous_gpu_emulation.bunnei2019-03-071-0/+2
|
* settings: Hide shader cache behind a settingReinUsesLisp2019-02-071-0/+2
|
* settings: Use std::chrono::seconds instead of s64 for RTCZach Hilman2019-01-081-1/+2
|
* settings: Add custom RTC settingsZach Hilman2019-01-081-2/+9
| | | Stored as signed seconds since epoch.
* config: Store and load disabled add-ons listZach Hilman2018-12-031-0/+18
|
* Merge pull request #1747 from DarkLordZach/exefs-lfsbunnei2018-11-241-0/+1
|\ | | | | patch_manager: Add support for applying LayeredFS patches to ExeFS
| * settings: Add option to dump ExeFS of games upon launchZach Hilman2018-11-201-0/+1
| | | | | | | | When enabled, all exefs(es) will be copied to yuzu/dump/<title_id>/exefs.
* | configure_input_player: Set minimum width on controlsZach Hilman2018-11-191-7/+6
| |
* | yuzu_cmd/config: Add config deserialization for multiplayerZach Hilman2018-11-191-37/+254
| |
* | Correctly sets default system language for yuzu-CLI (#1727)Schplee2018-11-191-0/+2
|/ | | | | | | | | | * Correctly sets default system language for yuzu-CLI A user reported that yuzu_cmd runs games in Japanese rather than the correct default of English (like yuzu-qt does correctly), this change fixes that. * fix clang issue deleted whitespace
* Merge pull request #1618 from DarkLordZach/dump-nsobunnei2018-11-151-0/+1
|\ | | | | patch_manager: Add support for dumping uncompressed NSOs
| * settings: Add setting to control NSO dumpingZach Hilman2018-10-291-0/+1
| | | | | | | | Also adds UI option in Debug > Dump section, with the idea later things to be dumped (i.e. other game data or textures, etc) will use the same group box.
* | settings: Add config option to set RNG seedZach Hilman2018-11-121-0/+7
|/
* acc: Fix account UUID duplication errorZach Hilman2018-10-241-2/+3
|
* profile_manager: Load user icons, names, and UUIDs from system saveZach Hilman2018-10-241-18/+2
|
* settings: Add users and current_user settings and remove usernameZach Hilman2018-10-241-3/+19
|
* Added Amiibo support (#1390)David2018-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed conflict with nfp * Few fixups for nfc * Conflict 2 * Fixed AttachAvailabilityChangeEvent * Conflict 3 * Fixed byte padding * Refactored amiibo to not reside in "System" * Removed remaining references of nfc from system * used enum for Nfc GetStateOld * Added missing newline * Moved file operations to front end * Conflict 4 * Amiibos now use structs and added mutexes * Removed amiibo_path
* config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.bunnei2018-10-161-2/+2
| | | | - This will be used as a catch-all for slow-but-accurate GPU emulation paths.
* cmd: Support passing game arguments from command lineZach Hilman2018-10-071-0/+1
| | | | Uses -p (--program) and following string as args.
* Port web_service from CitrafearlessTobi2018-10-021-0/+8
|
* Update config.cppValentin Vanelslande2018-09-211-1/+1
|
* Invalid default value of username in yuzu_cmd (#1334)Philippe Babin2018-09-191-0/+4
| | | | | | | | | | * Fix bug where default username value for yuzu_cmd create an userprofile with uninitialize data as username * Fix format * Apply code review changes * Remove nullptr check
* Add audio stretching supportfearlessTobi2018-09-081-0/+2
|
* settings: Save and load NAND/SD dirs from configZach Hilman2018-09-041-0/+6
|
* Port #3353 from CitrafearlessTobi2018-08-211-2/+3
|
* Remove files that are not usedZach Hilman2018-08-011-0/+1
|
* audio_core: Add configuration settings.bunnei2018-08-011-0/+5
|
* file_util: Use an enum class for GetUserPath()Lioncash2018-07-211-1/+1
| | | | | | | | | | | | | Instead of using an unsigned int as a parameter and expecting a user to always pass in the correct values, we can just convert the enum into an enum class and use that type as the parameter type instead, which makes the interface more type safe. We also get rid of the bookkeeping "NUM_" element in the enum by just using an unordered map. This function is generally low-frequency in terms of calls (and I'd hope so, considering otherwise would mean we're slamming the disk with IO all the time) so I'd consider this acceptable in this case.
* settings: Turn docked mode off by default.bunnei2018-07-181-1/+1
|
* Rename logging macro back to LOG_*James Rowe2018-07-031-3/+3
|
* settings: Add a configuration for use_accurate_framebuffers.bunnei2018-06-271-0/+2
|
* core: Add a configuration setting for use_multi_core.bunnei2018-05-111-0/+1
|
* frontends: Move logging macros over to new fmt-capable onesLioncash2018-04-271-3/+3
|
* config: Use simplified checkbox (from Citra) for CPU JIT.bunnei2018-03-271-2/+1
|
* config: Rename is_docked to use_docked_mode to be consistent with other config bools.bunnei2018-03-271-1/+1
|
* config: Add setting for whether the system is docked or not.bunnei2018-03-271-0/+3
|
* yuzu_cmd: change default cpu core to dynarmicValentin Vanelslande2018-03-231-1/+1
|
* Format: Run the new clang format on everythingJames Rowe2018-01-211-2/+10
|
* config: Default log filter to trace.bunnei2018-01-131-1/+1
|
* Remove settings issues in sdl and fix a few files that broke in mingwJames Rowe2018-01-131-47/+0
|
* Get yuzu sdl to start compilingJames Rowe2018-01-131-2/+3
|
* Massive removal of unused modulesJames Rowe2018-01-131-0/+160