aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/game_list.cpp
AgeCommit message (Collapse)Author
2022-06-14game_list: Eliminate variable shadowingMorph
2022-06-13yuzu: Eliminate variable shadowingMorph
2022-06-11Merge pull request #8449 from Docteh/translate_placeholderMai M
retranslate the game list placeholder
2022-06-10UI: retranslate the game list placeholderKyle Kienapfel
This is the "Double-click to add a new folder to the game list" message that shows up when users first launch yuzu and is most likely never seen again. Previously this message was not re-translated.
2022-05-29Update some files with Qt 5.15.2 best practices in mindKyle K
There was some discussion about updating to Qt6 and I figured I would work on some smaller parts. For Windows platform the WinMain function has moved from the Qt5::WinMain to a new one called Qt6::EntryPointPrivate Also Qt5 supports versionless CMake targets https://www.qt.io/blog/versionless-cmake-targets-qt-5.15 These other changes in this commit are to support Qt6, but in ways that don't mess with Qt5. src/yuzu/bootmanager.cpp: Qt6 complains about not being able to know to use QPoint or QPointF, picking QPoint src/yuzu/bootmanager.h: Qt6 prefers that QStringList.h be included rather than an empty class definition src/yuzu/configuration/configure_system.cpp: toULongLong intends to return unsigned 64 bit integer, but Settings::values.rng_seed is only 32 bits wide src/yuzu/game_list.cpp: Qt6 returns a different datatype for QStringList.length than Qt5, it used to be int, but in Qt6 its now qsizetype src/yuzu/loading_screen.cpp: Qt5's for QStyleOption.init say to switch to initFrom. The QStyleOption.init doesn't exist in Qt6 src/yuzu/main.cpp: Another QPointer and QStringList.size, lets standardize on size()
2022-03-20yuzu: Reduce unused includesameerj
2022-02-01yuzu/game_list: Use non-deprecated version of QString's split() functionLioncash
The previous overload of split() was deprecated in 5.14.
2021-12-12game_list: Add persistent setting for the favorites row expanded stateameerj
Previously, the favorites row was always expanded on launch. This change introduces a persistent setting that allows the favorites row's expanded state to be remembered between launches.
2021-12-02yuzu: Implement basic controller navigationgerman77
2021-11-16yuzu: Fix build errorsameerj
2021-10-14Merge pull request #6774 from lat9nq/remove-global-yuzuMorph
yuzu qt: Remove global system instances
2021-10-11Fix a few warningsRomain Failliot
- configure_input_player_widget.cpp: always better to use `const auto &` whenever possible - profiler.cpp: `ev->pos()` is deprecated, replace with `ev->position()`, which returns floats, thus the addition of `.toPoint()` (same as what's happening in `pos()`) - game_list.cpp: `QString::SplitBehavior` is deprecate, use `Qt::` namespace instead
2021-10-07game_list: Remove global instances of Core::Systemlat9nq
2021-09-06Rename all shader cache references to pipeline cacheMatías Locatti
After Hades, both OpenGL and Vulkan use a pipeline cache instead of single stages of the graphics pipeline. Renamed the Remove menu entries to match.
2021-08-01game_list: Make game list folder icons smaller (#6762)Malte Jürgens
Makes the default game list folder icons 48x48 by default instead of 64x64, and allows for selecting small (24x24) and large (72x72) icon sizes.
2021-07-22main: Update Shader Cache menu optionsameerj
This change adds two new context menu items to remove either the OpenGL or the Vulkan shader caches individually, and the provides the option to remove all caches for the selected title. This also changes the behavior of the open shader cache option. Now it creates the shader cache directory for the title if it does not yet exist.
2021-07-20file_sys: Support load game collection (#6582)Feng Chen
Adds support for loading games with multiple programs embedded within such as the Dragon Quest 1+2+3 Collection
2021-07-08Merge pull request #6539 from lat9nq/default-settingAmeer J
general: Move most settings' defaults and labels into their definition
2021-06-28yuzu qt: Make most UISettings a BasicSettinglat9nq
For simple primitive settings, moves their defaults and labels to definition time. Also fixes typo and clang-format yuzu qt: config: Fix rng_seed
2021-06-28yuzu qt: Add option to dump to SDMC directorylat9nq
Enables dumping the RomFS to SDMC directory, specifically '[yuzu data directory]/sdmc/atmosphere/contents/[title_id]/romfs'.
2021-06-07yuzu qt: Start games from context menulat9nq
This connects the BootGame function to the context menu. In addition, there is an option to boot without using the custom configuration.
2021-06-03[game_list] Correct light theme loading (#6408)Maide
Correct light theme loading The setLayout call in game list instantiation will call resizing signals with default values in light theme, which was then being erroneously saved. setLayout doesn't seem to call resizing for any other theme, so I'm not sure why that happens.
2021-06-03Merge pull request #6402 from Kelebek1/UIbunnei
game_list: Stop the columns resizing on NAND install
2021-06-02Merge pull request #6403 from Kewlan/game-list-for-loop-optimizationbunnei
game_list: Minor for loop optimizations
2021-06-02game_list: Minor for loop optimizationsKewlan
There's no need to check the first and last rows since they'll always be the Favorites and AddDir rows. Also change the name of the clear_all variable for consistency.
2021-06-02Stop the columns resizing on NAND installKelebek1
2021-05-25yuzu qt: Handle per-game configs for title id 0lat9nq
Currently with programs that have a 0 title id, yuzu loads the custom configuration 0000000000000000.ini for per-game configs. This is not ideal since many homebrews share this id. Instead for these programs, we load a config that is simply the file name and `.ini` appended to it.
2021-05-02Merge pull request #6263 from Kewlan/folder-swap-expand-stateMorph
game_list: Fix dir move up/down expand state
2021-04-30game_list: Fix dir move up/down expand stateKewlan
2021-04-30game_list: Update filter results when removing directoriesKewlan
2021-04-15game_list: Mark games as favorite to make them appear at the top.Kewlan
Icons are from Icons8.
2021-01-18game_list: Fix folder reorderingFearlessTobi
The bug(s) happened because we swapped the contents on values.game_dirs, but the pointer each item had to their respective game_dir wasn't updated. This made it so that the item had the wrong game_dir associated with it after a "move up" or "move down" operation. It can be observed by choosing "open directory location" after such operation. Changed from raw pointer to an index because it's equivalent but a bit clearer, but the change is not essential. Co-Authored-By: Vitor K <29167336+vitor-k@users.noreply.github.com>
2021-01-13yuzu: Migrate off of setMargin() to setContentsMargins()Lioncash
setMargin() has been deprecated since Qt 5, and replaced with setContentsMargins(). We can move over to setContentsMargins() to stay forward-compatible with Qt 6.0.
2020-09-29qt/game_list: Give GameListSearchField::KeyReleaseEater a parentReinUsesLisp
This fixes a memory leak as KeyReleaseEater's destructor was never called.
2020-09-23game_list: Make game list function naming consistentLioncash
Makes the naming consistent with the rest of the functions that are present.
2020-09-23game_list: Eliminate redundant argument copiesLioncash
Several functions can be taken by const reference to avoid copies
2020-08-18Merge pull request #4381 from Morph1984/fix-open-folder-installed-titlebunnei
main: Fix Open Save/Mod Locations for installed titles
2020-08-16yuzu: Resolve -Wextra-semi warningsLioncash
While we're in the same area, we can ensure GameDir member variables are always initialized to consistent values.
2020-08-04main: Fix Open Save/Mod Locations for installed titlesMorph
Previously NAND/SDMC installed titles would open device saves when they are supposed to be user saves. This is due to the control nca not being read and thus returns 0 for both GetDefaultNormalSaveSize() and GetDeviceSaveDataSize(). Fix this by utilizing the patch manager to read the control nca.
2020-07-29game_list: Limit context menu options for homebrewMorph
Hides the following options when the title id is 0: - Open Save Location - Open Mod Data Location - Open Transferable Shader Cache - All removal options except Remove Custom Configuration
2020-07-29game_list: Add "Remove" context menuMorph
Adds the following actions: - Remove Installed Update - Remove All Installed DLC - Remove Shader Cache - Remove Custom Configuration - Remove All Installed Contents
2020-07-11CMakeLists: Make use of /std:c++latest on MSVCLioncash
Provides the buildbot with one builder that is always tracking the latest version of the C++ standard, allowing us to progressively rectify our code and amend any differences between standards over time instead of waiting for a complete standard change, potentially breaking a lot of code all at once.
2020-05-11yuzu: game_list: Fix 'Open Save Data Location' for device saves.bunnei
2020-04-06yuzu: Fixes to game list sortingFearlessTobi
Should fix citra-emu/citra#4593. As the issue might not be entirely clear, I'll offer a short explanation from what I understood from it and found from experimentation. Currently yuzu offers the user the option to change the text that's displayed in the "Name" column in the game list. Generally, it is expected that the items are sorted based on the displayed text, but yuzu would sort them by title instead. Made it so that an access to SortRole returns the same as DisplayRole. There shouldn't be any UI changes, only change in behaviour. Also fixes a bug with directory sorting, where having the directories out of order would enable you to try to "move up" to the addDirectory button, which would crash the emulator. Co-Authored-By: Vitor K <vitor-k@users.noreply.github.com>
2019-10-04yuzu/game_list: Silence -Wswitch and -Wunused-variableReinUsesLisp
2019-09-04Limit the size of directory icons, fix text when icon size is nonefearlessTobi
2019-09-04Change QList to QVectorfearlessTobi
2019-09-04Separate UserNand and Sdmc directoriesfearlessTobi
2019-09-04Address more trivial review commentsfearlessTobi
2019-09-04Address trivial review commentsfearlessTobi