Zach Hilman
deb5d6be60
svc: Use proper random entropy generation algorithm
2018-11-13 12:26:03 -05:00
Zach Hilman
4c0e453e08
svc: Return random seed for svcGetInfo RandomEntropy
2018-11-12 21:46:21 -05:00
Zach Hilman
6af690c2b8
settings: Add config option to set RNG seed
2018-11-11 23:09:46 -05:00
Frederic Laing
c1e5c112c6
configure_system: Fix compiler warning
2018-11-06 16:38:10 +01:00
bunnei
a97dc50bc4
Merge pull request #1615 from lioncash/input
...
configure_system: Contrain profile usernames to 32 characters
2018-11-01 19:10:26 -04:00
Lioncash
eae8892b57
configure_system: Contrain profile usernames to 32 characters
...
Previously, we would let a user enter an unbounded name and then
silently truncate away characters that went over the 32-character limit.
This is kind of bad from the UX point of view, because we're essentially
not doing what the user intended in certain scenarios.
Instead, we clamp it to 32 characters and make that visually apparent in
the dialog box to provide a name for a user.
2018-10-31 02:05:00 -04:00
bunnei
a090b0a28c
Merge pull request #1595 from FreddyFunk/cast
...
configure_system: Fix compiler warning
2018-10-30 00:27:41 -04:00
Frederic L
c76f4b6aec
global: Use std::optional instead of boost::optional ( #1578 )
...
* get rid of boost::optional
* Remove optional references
* Use std::reference_wrapper for optional references
* Fix clang format
* Fix clang format part 2
* Adressed feedback
* Fix clang format and MacOS build
2018-10-30 00:03:25 -04:00
Frederic Laing
d0eea8fc3a
configure_system: Fix compiler warning
2018-10-28 21:13:09 +01:00
Lioncash
f7d6c35085
configure_system: Make GetIcon() return the scaled 64x64 icon
...
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-27 01:05:56 -04:00
Lioncash
f4272e65b8
configure_system: Move entry formatting for the user account list entries to its own function
...
Avoids the need to duplicate this all over the place, and makes it
translator-friendly across the board.
2018-10-27 01:05:56 -04:00
Lioncash
2099e41b17
configure_system: Display errors to the user if file operations fail when 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-27 01:05:50 -04:00
Lioncash
062bf90622
configure_system: Make the file selector text translatable
...
This should be localizable, since it's user-facing text.
2018-10-25 17:27:30 -04:00
Lioncash
73dea24300
configure_system: Make GetAccountUsername() an internal function
...
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-25 17:27:25 -04:00
Lioncash
45c01544a6
configure_system: Simplify UUID generation call in AddUser()
...
This is a static function so we can just perform an assignment directly.
2018-10-25 16:50:07 -04:00
Lioncash
e39e875547
configure_system: Amend function casing
2018-10-25 16:47:09 -04:00
Lioncash
94daae2847
profile_manager: Use std::optional instead of boost::optional
...
Now that we can actually use std::optional on macOS, we don't need to
continue using boost::optional here.
2018-10-24 11:06:52 -04:00
Zach Hilman
5c294cdb5d
configure_system: Clear current username before overwriting
...
Prevents bug where old username would remain if the new username was shorter in length.
2018-10-24 09:25:20 -04:00
Zach Hilman
1977ed3d9f
profile_manager: Create save data if it doesn't exist on use
2018-10-23 19:31:28 -04:00
Zach Hilman
da04134ce6
acc: Fix account UUID duplication error
2018-10-23 19:31:28 -04:00
Zach Hilman
e1784822f2
configure_system: Clear selection after user delete
2018-10-23 19:31:28 -04:00
Zach Hilman
8bdf2fe7b7
profile_manager: Load user icons, names, and UUIDs from system save
2018-10-23 19:31:28 -04:00
Zach Hilman
22e74d049b
qt: Add Profile Manager UI to system settings
2018-10-23 19:31:28 -04:00
Lioncash
5de7c31baa
qt: Default destructors where applicable
...
Makes code consistent with our style of defaulting special member
functions where applicable.
2018-08-06 13:27:08 -04:00
David
4a4641a134
Added ability to change username & language code in the settings ui. Added IProfile::Get and SET::GetLanguageCode for libnx tests ( #851 )
2018-08-03 11:02:55 -04:00
James Rowe
ea88c44eb8
Format: Run the new clang format on everything
2018-01-20 16:45:11 -07:00
noah katz
630e0825e8
Fixed formatting
2018-01-17 11:20:46 -05:00
noah katz
915bc24ba1
Fix non translated string (same as Citra PR 2949)
2018-01-16 19:56:41 -05:00
MerryMage
2c057ef5df
Minor cleanup
2018-01-13 23:56:18 +00:00
James Rowe
bd5740a721
Remove gpu debugger and get yuzu qt to compile
2018-01-12 19:11:04 -07:00
James Rowe
5dbd091a80
Massive removal of unused modules
2018-01-12 19:11:03 -07:00