Rodolfo Bogado
e8b565b239
renderer_opengl: Correct bpp value for ASTC_2D_8X5_SRGB
7 years ago
Michael
635d1e5651
Enable alpha channel for DXT1 texture format
7 years ago
Tobias
351d5a2227
Correct bpp value for ASTC_2D_8X5
7 years ago
FernandoS27
e5ca097e32
Refactor precise usage and add FMNMX, MUFU, FMUL32 and FADD332
7 years ago
Frederic L
72d10ce66c
file_sys/patch_manager: Remove unnecessary if-statements ( #1586 )
* remove unnecessary if-statements
* Addressed feedback
7 years ago
Rodolfo Bogado
0287b2be6d
Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support
7 years ago
Zach Hilman
1fa31cf74d
key_manager: Use isxdigit instead of isdigit when reading key file
Crypto revisions are hex numbers and this function only checks if the string is valid for stoul in base 16, so it should be isxdigit.
7 years ago
FernandoS27
d8d557df86
Improved Shader accuracy on Vertex and Geometry Shaders with FFMA, FMUL and FADD
7 years ago
FernandoS27
705300992e
Implement Default Block Height for each format
7 years ago
Zach Hilman
7c70746ec4
loader/nsp: Move secondary loader initialization to constructor
Prevents nullptr bug when trying to dump the RomFS of an NSP resulting from secondary_loader not being initialized.
7 years ago
Frederic Laing
0bf24d310e
gl_rasterizer_cache: Fix compiler warning
7 years ago
DeeJayBro
3b1e4c0995
service/filesystem: Add DirectoryDelete & DirectoryDeleteRecursively
7 years ago
Lioncash
9024cbb5b8
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.
7 years ago
Lioncash
85ed0af84e
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.
7 years ago
Lioncash
8eaf857d06
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.
7 years ago
Weiyi Wang
12c365b549
cubeb_sink: ignore null-name device when selecting
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
7 years ago
Lioncash
7de8e36343
svc: Localize the GetInfo enum class to the function itself
Nothing from this enum is intended to be used outside of this function.
7 years ago
Lioncash
6594853eb1
svc: Implement svcGetInfo command 0xF0000002
This retrieves:
if (curr_thread == handle_thread) {
result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks);
} else if (curr_thread == handle_thread && sub_id == current_core_index) {
result = hardware_tick_count - last_context_switch_ticks;
}
7 years ago
bunnei
58444a0376
gl_rasterizer: Implement primitive restart.
7 years ago
bunnei
949d9a7136
maxwell_3d: Add code for initializing register defaults.
7 years ago
bunnei
8cea598158
gl_rasterizer: Implement depth range.
7 years ago
bunnei
cebce2a93a
ldr: Partially implement LoadNro.
- This is an incomplete implementation. It was tested with Super Mario Party.
7 years ago
bunnei
c2049aa4e5
process: LoadModule should clear JIT instruction cache.
7 years ago
bunnei
a609b6907a
Kernel/Memory: Added a function to first a suitable guest address at which to allocate a region of a given size.
7 years ago
bunnei
ef7b2237d9
nro: Make LoadNro method accessible outside of apploader code.
7 years ago
Lioncash
85285b09b0
configure_system: Make the file selector text translatable
This should be localizable, since it's user-facing text.
7 years ago
Lioncash
5172354e29
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.
7 years ago
Lioncash
bf7da804c5
configure_system: Default initialize member variables
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.
7 years ago
Lioncash
8806e69f59
configure_system: Simplify UUID generation call in AddUser()
This is a static function so we can just perform an assignment directly.
7 years ago
Lioncash
a6addb5332
configure_system: Amend function casing
7 years ago
Lioncash
2347e1b8c5
configure_system: Add missing override specifier on the destructor
7 years ago
Lioncash
3c63cecb96
configure_system: Make public slots private
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.
7 years ago
Zach Hilman
9a87ece837
ips_layer: Use rle_size instead of data_size in RLE patch application
Prevents a potential bug when using RLE records in an IPS patch.
7 years ago
Lioncash
fbbb58b226
service/usb: Update service function tables
Updated based off the information provided by Hexkyz on Switchbrew.
7 years ago
Lioncash
1e3b139cd7
service/acc: Move fallback image to file scope
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().
7 years ago
Lioncash
6f00628564
service/acc: Silence compiler warnings
Silences compiler warnings related to truncation. This also introduces a
small helper function to perform the clamping of the image size.
7 years ago
Lioncash
3ec90dc6ef
service/acc: Early return in failure case in LoadImage()
Allows unindenting the other branch's code.
7 years ago
FernandoS27
ca142f35c0
Implemented LD_L and ST_L
7 years ago
FernandoS27
abefe29398
Implement Shader Local Memory
7 years ago
Lioncash
1fb4bebb63
kernel/errors: Remove now-unused, unnecessary, error codes
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.
7 years ago
Lioncash
239dfea34a
kernel/shared_memory: Return ERR_INVALID_MEMORY_PERMISSIONS instead of ERR_INVALID_COMBINATION
This is more consistent with what the kernel does.
7 years ago
Lioncash
474bc29208
kernel/server_port: Simplify emptiness check within ShouldWait()
7 years ago
Lioncash
b703aba622
kernel/server_port: Change error case return value in Accept() to ERR_NOT_FOUND
This is what the kernel does in this instance.
7 years ago
Lioncash
afb7e5cc05
kernel/error: Remove leftover 3DS error codes
These are now entirely unused and can be removed.
7 years ago
Lioncash
fcf8f53a63
kernel/svc: Amend returned error code for invalid priorities in CreateThread
Like with the previous change, the kernel doesn't return NOT_AUTHORIZED
here. It returns INVALID_THREAD_PRIORITY.
7 years ago
Lioncash
77328b0f19
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.
7 years ago
Lioncash
c7c346a15d
kernel/error: Add error code for invalid pointers
The kernel appears to return 0xE601 for this situation. Particularly in
svcWaitSynchronization, svcReplyAndReceive, and svcGetThreadContext
7 years ago
Lioncash
6df09f5b76
kernel/error: Add error code for closed sessions
The kernel appears to return 0xF601 for this case.
7 years ago
Lioncash
1edf8660bc
game_list_worker: Use QString's formatting instead of fmt in 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.
7 years ago
Lioncash
4a31f99a02
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.
7 years ago