- Oct 27, 2018
-
-
FernandoS27 authored
-
Frederic Laing authored
-
Lioncash authored
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.
-
Lioncash authored
Avoids the need to duplicate this all over the place, and makes it translator-friendly across the board.
-
Lioncash authored
We should display an error to the user if setting a user image for an account fails, rather than continuing onwards.
-
- Oct 26, 2018
-
-
Weiyi Wang authored
We already ignore them on listing devices. We should do the same when selecting devices. This fix a crash when opening a specific device while there is a null device in the list
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
- Oct 25, 2018
-
-
bunnei authored
- This is an incomplete implementation. It was tested with Super Mario Party.
-
bunnei authored
-
bunnei authored
Kernel/Memory: Added a function to first a suitable guest address at which to allocate a region of a given size.
-
bunnei authored
-
Lioncash authored
This should be localizable, since it's user-facing text.
-
Lioncash authored
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.
-
Lioncash authored
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.
-
Lioncash authored
This is a static function so we can just perform an assignment directly.
-
Lioncash authored
-
Lioncash authored
-
Lioncash authored
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.
-
Zach Hilman authored
Prevents a potential bug when using RLE records in an IPS patch.
-
- Oct 24, 2018
-
-
Lioncash authored
Updated based off the information provided by Hexkyz on Switchbrew.
-
Lioncash authored
This is just flat data, so it doesn't really need to be in the function itself. This also allows deduplicating the constant for the backup size in GetImageSize().
-
Lioncash authored
Silences compiler warnings related to truncation. This also introduces a small helper function to perform the clamping of the image size.
-
Lioncash authored
Allows unindenting the other branch's code.
-
FernandoS27 authored
-
FernandoS27 authored
-
Lioncash authored
Now that we've gotten the innaccurate error codes out of the way, we can finally toss away a bunch of these, trimming down the error codes to ones that are actually used and knocking out two TODO comments.
-
Lioncash authored
This is more consistent with what the kernel does.
-
Lioncash authored
-
Lioncash authored
This is what the kernel does in this instance.
-
Lioncash authored
These are now entirely unused and can be removed.
-
Lioncash authored
Like with the previous change, the kernel doesn't return NOT_AUTHORIZED here. It returns INVALID_THREAD_PRIORITY.
-
Lioncash authored
kernel/svc: Move and correct returned error code for invalid thread priorities in SetThreadPriority() All priority checks are supposed to occur before checking the validity of the thread handle, we're also not supposed to return ERR_NOT_AUTHORIZED here.
-
Lioncash authored
The kernel appears to return 0xE601 for this situation. Particularly in svcWaitSynchronization, svcReplyAndReceive, and svcGetThreadContext
-
Lioncash authored
The kernel appears to return 0xF601 for this case.
-
Lioncash authored
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.
-
Lioncash authored
Now that we can actually use std::optional on macOS, we don't need to continue using boost::optional here.
-
Lioncash authored
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.
-
Lioncash authored
We shouldn't silently continue if loading failed, since the general assumption is that no messages showing up implicitly indicates success.
-