aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu
AgeCommit message (Collapse)Author
2018-12-26configure_per_general: Mark UI strings as translatable in the constructorLioncash
These are user-facing strings, so they should be translatable.
2018-12-26configure_input_simple: Make input profile array constexprLioncash
Calling tr() from a file-scope array isn't advisable, since it can be executed before the Qt libraries are even fully initialized, which can lead to crashes. Instead, the translatable strings should be annotated, and the tr() function should be called at the string's usage site.
2018-12-26Merge pull request #1849 from encounter/svcSetThreadActivitybunnei
svc: Implement SetThreadActivity (thread suspension)
2018-12-25qt: Use ProfileSelectionDialog when selecting user for save dataZach Hilman
This allows us to present a much nicer UI to the user over a simple combo box and is made easy with the modular nature of the profile-selection applet frontend.
2018-12-25qt: Add setting to prompt for user on game bootZach Hilman
Using the QtProfileSelectorDialog, this implementation is trivial. This mimics the real switch behavior of asking which user on every game boot, but it is default disabled as that might get inconvenient.
2018-12-23Merge pull request #1886 from FearlessTobi/port-4164bunnei
Port citra-emu/citra#4164: "citra_qt, video_core: Screenshot functionality"
2018-12-23Merge pull request #1781 from DarkLordZach/applet-profile-selectbunnei
am: Implement HLE profile selector applet
2018-12-23Merge pull request #1780 from DarkLordZach/controller-profilesbunnei
configure_input: Add Controller Setup Profiles and simplify input UI
2018-12-19Fixed uninitialized memory due to missing returns in canaryDavid Marcec
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
2018-12-18yuzu, video_core: Screenshot functionalityzhupengfei
Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
2018-12-14Merge pull request #1902 from lioncash/audiobunnei
audio_core: Make g_sink_details internally linked
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