summaryrefslogtreecommitdiff
path: root/src/yuzu
AgeCommit message (Collapse)Author
2018-10-27configure_system: Make GetIcon() return the scaled 64x64 iconLioncash
Avoids the need to put the scaling parameters all over the place for the common case. The only other time scaling is done is to generate the smaller 48x48 image, so this is fine.
2018-10-27configure_system: Move entry formatting for the user account list entries to ↵Lioncash
its own function Avoids the need to duplicate this all over the place, and makes it translator-friendly across the board.
2018-10-27configure_system: Display errors to the user if file operations fail when ↵Lioncash
setting user images We should display an error to the user if setting a user image for an account fails, rather than continuing onwards.
2018-10-25Merge pull request #1569 from lioncash/amiibobunnei
yuzu/main: Notify user of loading errors with Amiibo data
2018-10-25configure_system: Make the file selector text translatableLioncash
This should be localizable, since it's user-facing text.
2018-10-25configure_system: Make GetAccountUsername() an internal functionLioncash
We can just make the function accept an arbitrary ProfileManager reference and operate on that instead of tying the function to the class itself. This allows us to keep the function internal to the cpp file and removes the need to forward declare the UUID struct.
2018-10-25configure_system: Default initialize member variablesLioncash
These should be initialized to deterministic values so it's easier to catch improper behavior, as it'll always be reproducable, instead of performing uninitialized reads.
2018-10-25configure_system: Simplify UUID generation call in AddUser()Lioncash
This is a static function so we can just perform an assignment directly.
2018-10-25configure_system: Amend function casingLioncash
2018-10-25configure_system: Add missing override specifier on the destructorLioncash
2018-10-25configure_system: Make public slots privateLioncash
These are only used within this class, so we can make them private to keep their use contained. This also gets rid of the pre-Qt5 'slot' identifier, since Qt 5's connection syntax doesn't require a function to be declared a slot anymore.
2018-10-24Merge pull request #1575 from lioncash/qstringbunnei
game_list_worker: Use QString's formatting instead of fmt in FormatPatchNameVersions()
2018-10-24Merge pull request #1570 from lioncash/optionalbunnei
profile_manager: Use std::optional instead of boost::optional
2018-10-24Merge pull request #1558 from lioncash/ptrbunnei
yuzu/configuration/config: Use a std::unique_ptr for qt_config instead of a raw pointer
2018-10-24Merge pull request #1571 from lioncash/debug-translatebunnei
graphic_breakpoints: Correct translation of strings in BreakpointModel's data() function
2018-10-24Merge pull request #1568 from lioncash/dirbunnei
game_list: Use QFileInfo instead of common's file functions
2018-10-24Merge pull request #1567 from lioncash/translatebunnei
game_list: Make game list column headers translatable
2018-10-24Merge pull request #1566 from lioncash/strbunnei
bootmanager: Use QStringLiteral instead of std::string to represent the window title.
2018-10-24game_list_worker: Use QString's formatting instead of fmt in ↵Lioncash
FormatPatchNameVersions() Using fmt here requires unnecessary string conversions back into QString. Instead, we can just use QString's formatting and get the end result of the formatting operation in the proper type.
2018-10-24profile_manager: Use std::optional instead of boost::optionalLioncash
Now that we can actually use std::optional on macOS, we don't need to continue using boost::optional here.
2018-10-24graphic_breakpoints: Correct translation of strings in BreakpointModel's ↵Lioncash
data() function tr() will not function properly on static/global data like this, as the object is only ever constructed once, so the strings won't translate if the language is changed without restarting the program, which is undesirable. Instead we can just turn the map into a plain old function that maps the values to their equivalent strings. This is also lessens the memory allocated, since it's only allocating memory for the strings themselves, and not an encompassing map as well.
2018-10-24yuzu/main: Notify user of loading errors with Amiibo dataLioncash
We shouldn't silently continue if loading failed, since the general assumption is that no messages showing up implicitly indicates success.
2018-10-24configure_system: Clear current username before overwritingZach Hilman
Prevents bug where old username would remain if the new username was shorter in length.
2018-10-24game_list: Use QFileInfo instead of common's file functionsLioncash
We can just use the facilities that Qt provides instead of pulling in stuff from common. While we're at it, we can also simplify the nearby logging statement's argument by just calling .toStdString()
2018-10-24game_list: Make game list column headers translatableLioncash
These are user-facing strings, so they should be marked as translatable
2018-10-24bootmanager: Use QStringLiteral instead of std::string to represent the ↵Lioncash
window title This gets rid of an unnecessary type conversion. We can just use the regular QStringLiteral to already format the string as the type setWindowTitle accepts instead of converting from a std::string instance.
2018-10-24yuzu/configuration/config: Use a std::unique_ptr for qt_config instead of a ↵Lioncash
raw pointer Same behavior, less code.
2018-10-23yuzu/configuration/config: Reorganize member variable and function layoutLioncash
Makes the class layout consistent with the others.
2018-10-23profile_manager: Create save data if it doesn't exist on useZach Hilman
2018-10-23acc: Fix account UUID duplication errorZach Hilman
2018-10-23configure_system: Clear selection after user deleteZach Hilman
2018-10-23profile_manager: Load user icons, names, and UUIDs from system saveZach Hilman
2018-10-23qt: Allow user to select emu user on open save dataZach Hilman
2018-10-23qt: Add Profile Manager UI to system settingsZach Hilman
2018-10-23settings: Add users and current_user settings and remove usernameZach Hilman
2018-10-23Added Amiibo support (#1390)David
* 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
2018-10-23Merge pull request #1515 from DarkLordZach/dlc-lfsbunnei
patch_manager: Add support for LayeredFS on DLC RomFS
2018-10-23Merge pull request #1542 from lioncash/projectbunnei
CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
2018-10-23Merge pull request #1540 from lioncash/handlebunnei
kernel/process: Make the handle table per-process
2018-10-22Merge pull request #1543 from lioncash/targetbunnei
CMakeLists: Use target_compile_definitions instead of add_definitions to define YUZU_ENABLE_COMPATIBILITY_REPORTING
2018-10-20qt: Move Reinitialize Keys to Tools menuZach Hilman
2018-10-20CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIRLioncash
This is more localized to what we want to enforce directory-wise with the project. CMAKE_SOURCE_DIR indicates the root of the source tree, but this would cause the wrong behavior if someone included yuzu as part of a larger buildsystem (for whatever reason). Instead, we want to use the directory where the "project(yuzu)" command was declared as the root path reference.
2018-10-20CMakeLists: Use target_compile_definitions instead of add_definitions to ↵Lioncash
define YUZU_ENABLE_COMPATIBILITY_REPORTING Keeps the definition constrained to the yuzu target and prevents polluting anything else in the same directory (should that ever happen). It also keeps it consistent with how the USE_DISCORD_PRESENCE definition is introduced below it.
2018-10-20kernel/process: Make the handle table per-processLioncash
In the kernel, there isn't a singular handle table that everything gets tossed into or used, rather, each process gets its own handle table that it uses. This currently isn't an issue for us, since we only execute one process at the moment, but we may as well get this out of the way so it's not a headache later on.
2018-10-17qt: Add support for dumping a DLC Data RomFSZach Hilman
2018-10-16config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.bunnei
- This will be used as a catch-all for slow-but-accurate GPU emulation paths.
2018-10-16Merge pull request #1502 from lioncash/uniquebunnei
core: Convert shared_ptr instances into unique_ptr instances where applicable for System and Cpu
2018-10-16file_sys/registered_cache: Use unique_ptr and regular pointers instead of ↵Lioncash
shared_ptrs where applicable The data retrieved in these cases are ultimately chiefly owned by either the RegisteredCache instance itself, or the filesystem factories. Both these should live throughout the use of their contained data. If they don't, it should be considered an interface/design issue, and using shared_ptr instances here would mask that, as the data would always be prolonged after the main owner's lifetime ended. This makes the lifetime of the data explicit and makes it harder to accidentally create cyclic references. It also makes the interface slightly more flexible than the previous API, as a shared_ptr can be created from a unique_ptr, but not the other way around, so this allows for that use-case if it ever becomes necessary in some form.
2018-10-15Merge pull request #1487 from lioncash/maybe-unusedbunnei
yuzu/main: Apply the [[maybe_unused]] attribute to the parameter of SetDiscordEnabled
2018-10-15core_cpu: Make Cpu scheduler instances unique_ptrs instead of shared_ptrsLioncash