summaryrefslogtreecommitdiff
path: root/src/yuzu
AgeCommit message (Collapse)Author
2018-12-14Merge pull request #1871 from lioncash/movebunnei
yuzu/wait_tree: Pass QString by value and std::move in the initializer list for WaitTreeText
2018-12-13audio_core: Make g_sink_details internally linkedLioncash
We can hide the direct array from external view and instead provide functions to retrieve the necessary info. This has the benefit of completely hiding the makeup of the SinkDetails structure from the rest of the code. Given that this makes the array hidden, we can also make the array constexpr by altering the members slightly. This gets rid of several static constructor calls related to std::vector and std::function. Now we don't have heap allocations here that need to occur before the program can even enter main(). It also has the benefit of saving a little bit of heap space, but this doesn't matter too much, since the savings in that regard are pretty tiny.
2018-12-10Merge pull request #1819 from DarkLordZach/disable-addonsbunnei
patch_manager: Add support for disabling patches
2018-12-07Merge pull request #1873 from lioncash/constbunnei
loaders: Make GetFileType() a const qualified member function
2018-12-05yuzu/wait_tree: Pass QString by value and std::move in the initializer list ↵Lioncash
for WaitTreeText Just a trivial modernization that potentially avoids copying strings in certain scenarios.
2018-12-05yuzu/game_list_worker: Don't retrieve the file type twice in ↵Lioncash
AddFstEntriesToGameList() Similarly, here we can avoid doing unnecessary work twice by retrieving the file type only once and comparing it against relevant operands, avoiding potential unnecessary object construction/destruction.
2018-12-05yuzu/game_list_worker: Don't retrieve file type and file type strings twice ↵Lioncash
in MakeGameListEntry() While GetFileType() is indeed a getter function, that doesn't mean it's a trivial function, given some case require reading from the data or constructing other objects in the background. Instead, only do necessary work once.
2018-12-05configure_input_simple: Properly signal docked mode changeZach Hilman
2018-12-05configure_input: Add ConfigureInputSimple as default input UI configZach Hilman
Greatly simplifies the current input UI, while still allowing power users to tweak advanced settings. Adds 'input profiles', which are easy autoconfigurations to make getting started easy and fast. Also has a custom option which brings up the current, full UI.
2018-12-05configure_input: Convert into QDialogZach Hilman
2018-12-05configure: Use ConfigureInputSimple for Input tabZach Hilman
2018-12-05ui_settings: Add UI setting for input profile indexZach Hilman
2018-12-05configuration/config: Use an intermediary variable for accessing playersLioncash
Avoids typing the same long accessor just to retrieve player attributes.
2018-12-04Merge pull request #1837 from lioncash/mapbunnei
yuzu/game_list_worker: Minor cleanup and code deduplication
2018-12-04yuzu/game_list_worker: Move std::string construction after the termination ↵Lioncash
check in callbacks Avoids potentially allocating a std::string instance when it isn't needed.
2018-12-04qt: Add Properties menu to game list right-clickZach Hilman
2018-12-04debugger: Set paused thread colorLuke Street
2018-12-04kernel/object: Amend handle types to distinguish between readable and ↵Lioncash
writable events Two kernel object should absolutely never have the same handle ID type. This can cause incorrect behavior when it comes to retrieving object types from the handle table. In this case it allows converting a WritableEvent into a ReadableEvent and vice-versa, which is undefined behavior, since the object types are not the same. This also corrects ClearEvent() to check both kernel types like the kernel itself does.
2018-12-04svc: Implement SetThreadActivity (thread suspension)Luke Street
2018-12-03applets: Correct event ResetTypes from OneShot to StickyZach Hilman
Fixes bugs relating to signalling in software keyboard.
2018-12-03qt: Implement GUI dialog frontend for ProfileSelectorZach Hilman
Presents profiles in a list, similar to switch.
2018-12-03qt: Register to use Qt ProfileSelector instead of defaultZach Hilman
2018-12-03qt: Add UI to display game properties and disable add-onsZach Hilman
2018-12-03config: Store and load disabled add-ons listZach Hilman
2018-12-03Merge pull request #1842 from lioncash/slotbunnei
yuzu/configuration: Minor clean-up related changes
2018-12-03Merge pull request #1835 from lioncash/cache-globalbunnei
filesystem: De-globalize registered_cache_union
2018-12-03Merge pull request #1803 from DarkLordZach/k-able-eventbunnei
kernel: Divide Event into ReadableEvent and WritableEvent
2018-12-03game_list: Remove a reference of a referenceFrederic Laing
2018-12-02yuzu/configuration: Make slots private where applicableLioncash
These slots are only ever attached to event handling mechanisms within the class itself, they're never used externally. Because of this, we can make the functions private. This also removes redundant usages of the private access specifier.
2018-12-02yuzu/configuration: Add missing override specifiers to configuration-related ↵Lioncash
classes Resolves trivial compiler warnings.
2018-12-02yuzu/configuration/configure_input: Default destructor in the cpp fileLioncash
The previous code could potentially be a compilation issue waiting to occur, given we forward declare the type for a std::unique_ptr. If the complete definition of the forward declared type isn't visible in a translation unit that the class is used in, then it would fail to compile. Defaulting the destructor in a cpp file ensures the std::unique_ptr's destructor is only invoked where its complete type is known.
2018-12-01Merge pull request #1795 from ReinUsesLisp/vc-cleanupbunnei
video_core: Minor style changes
2018-12-01filesystem: De-globalize registered_cache_unionLioncash
We can just return a new instance of this when it's requested. This only ever holds pointers to the existing registed caches, so it's not a large object. Plus, this also gets rid of the need to keep around a separate member function just to properly clear out the union. Gets rid of one of five globals in the filesystem code.
2018-12-01yuzu/game_list_worker: Deduplicate game list entry creationLioncash
Avoids duplicating the same code twice verbatim.
2018-12-01yuzu/game_list_worker: Tidy up string handling in FillControlMap()Lioncash
We don't need to call out to our own file handling functions when we're going to construct a QFileInfo instance right after it. We also don't need to convert to a std::string again just to compare the file extension.
2018-11-30remove border from GameListBartosz Kaszubowski
2018-11-30configure_input: Amend clang-format discrepanciesLioncash
2018-11-29kernel/event: Reference ReadableEvent from WritableEventZach Hilman
2018-11-29core: Port all current usages of Event to Readable/WritableEventZach Hilman
2018-11-29Merge pull request #1768 from greggameplayer/patch-2bunnei
Uncheck automatically joycons docked when docked mode is enable
2018-11-28gl_rasterizer: Remove extension booleansReinUsesLisp
2018-11-27Merge pull request #1814 from lioncash/ptrbunnei
file_sys/registered_cache: Use regular const references instead of std::shared_ptr for InstallEntry()
2018-11-27yuzu/configure_input_player: Use std::size_t to represent the player index ↵Lioncash
instead of u8 Prevents compiler warnings related to truncation when invoking the dialog. It's also extremely suspect to use a u8 value here instead of a more general type to begin with.
2018-11-27yuzu/configure_input: Make CallConfigureDialog a non-member template functionLioncash
This doesn't depend on any part of the private interface, so it can be made a non-member internal function.
2018-11-27file_sys/registered_cache: Use regular const references instead of ↵Lioncash
std::shared_ptr for InstallEntry() These parameters don't need to utilize a shared lifecycle directly in the interface. Instead, the caller should provide a regular reference for the function to use. This also allows the type system to flag attempts to pass nullptr and makes it more generic, since it can now be used in contexts where a shared_ptr isn't being used (in other words, we don't constrain the usage of the interface to a particular mode of memory management).
2018-11-27yuzu/configure_input_player: Use a lambda expression instead of std::bindLioncash
std::bind is the pre-C++11 way of doing this.
2018-11-27yuzu/configure_input_player: Amend constructor initializer list orderLioncash
Orders the elements the way they would actually be initialized in. Resolves compiler warnings with gcc and clang
2018-11-27yuzu/configure_input: Remove unused function MoveGridElementLioncash
2018-11-27yuzu/configure_input*: Move data members after function declarationsLioncash
The common pattern is to put the data members after the function interface where applicable.
2018-11-27yuzu/configure_input: Remove unnecessary includesLioncash