- Jul 19, 2018
-
-
bunnei authored
pl_u: Remove printf specifier in log call in a log call in GetSharedFontInOrderOfPriority()
-
bunnei authored
gdbstub: Get rid of a few signed/unsigned comparisons
-
bunnei authored
hid: Resolve a signed/unsigned comparison warning
-
bunnei authored
svc: Correct always true assertion case in SetThreadCoreMask
-
bunnei authored
loader: Amend Doxygen comments
-
bunnei authored
loader/nso: Check if read succeeded in IdentifyFile() before checking magic value
-
bunnei authored
hle/service: Make constructors explicit where applicable
-
bunnei authored
nvflinger: Emplace Display instances directly
-
bunnei authored
nvdrv: Take std::string by const reference in GetDevice()
-
Sebastian Valle authored
Filesystem: Return EntryType::Directory for the root directory.
-
Lioncash authored
The reason this would never be true is that ideal_processor is a u8 and THREADPROCESSORID_DEFAULT is an s32. In this case, it boils down to how arithmetic conversions are performed before performing the comparison. If an unsigned value has a lesser conversion rank (aka smaller size) than the signed type being compared, then the unsigned value is promoted to the signed value (i.e. u8 -> s32 happens before the comparison). No sign-extension occurs here either. An alternative phrasing: Say we have a variable named core and it's given a value of -2. u8 core = -2; This becomes 254 due to the lack of sign. During integral promotion to the signed type, this still remains as 254, and therefore the condition will always be true, because no matter what value the u8 is given it will never be -2 in terms of 32 bits. Now, if one type was a s32 and one was a u32, this would be entirely different, since they have the same bit width (and the signed type would be converted to unsigned instead of the other way around) but would still have its representation preserved in terms of bits, allowing the comparison to be false in some cases, as opposed to being true all the time. --- We also get rid of two signed/unsigned comparison warnings while we're at it.
-
Lioncash authored
This can just use the fmt specifiers and be type-agnostic.
-
Sebastian Valle authored
hle_ipc: Amend usage of buffer_index within one of HLERequestContext's WriteBuffer() overloads
-
bunnei authored
fsp_srv: Misc individual changes
-
Lioncash authored
Ensures both operands in comparisons are the same signedness.
-
Lioncash authored
Modernizes the loops themselves while also getting rid of a signed/unsigned comparison in a loop condition.
-
Lioncash authored
Gets rid of the use of a magic constant
-
bunnei authored
filesystem: Minor changes
-
bunnei authored
common/swap: Minor changes
-
bunnei authored
common/common_funcs: Remove unused rotation functions
-
bunnei authored
loader/{nro, nso}: Resolve compilation warnings
-
Subv authored
It is unknown if this is correct behavior, but it makes sense and fixes a regression with Stardew Valley.
-
Lioncash authored
These weren't adjusted when VFS was introduced
-
bunnei authored
common/misc: Deduplicate code in GetLastErrorMsg()
-
bunnei authored
externals: Update Xbyak to 5.65
-
bunnei authored
externals: Update catch to v2.2.3
-
Lioncash authored
We should always assume the filesystem is volatile and check each IO operation. While we're at it reorganize checks so that early-out errors are near one another.
-
Lioncash authored
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
-
Lioncash authored
We can use emplace_back to construct the Display instances directly, instead of constructing them separately and copying them, avoiding the need to copy std::string and std::vector instances that are part of the Display struct.
-
bunnei authored
file_util: return string by const reference for GetExeDirectory()
-
bunnei authored
string_util: Remove AsciiToHex()
-
bunnei authored
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
-
bunnei authored
partition_filesystem: Ensure all class members of PartitionFilesystem are initialized
-
bunnei authored
content_archive: Minor changes
-
Lioncash authored
This is only ever used as a lookup into the device map, so we don't need to take the std::string instance by value here.
-
Lioncash authored
Previously, the buffer_index parameter was unused, causing all writes to use the buffer index of zero, which is not necessarily what is wanted all the time. Thankfully, all current usages don't use a buffer index other than zero, so this just prevents a bug before it has a chance to spring.
-
Lioncash authored
We can avoid constructing a std::vector here by simply passing a pointer to the original data and the size of the copy we wish to perform to the backend's Write() function instead, avoiding copying the data where it's otherwise not needed.
-
Lioncash authored
We were using a second std::vector as a buffer to convert another std::vector's data into a byte sequence, however we can just use pointers to the original data and use them directly with WriteBuffer, which avoids copying the data at all into a separate std::vector. We simply cast the pointers to u8* (which is allowed by the standard, given std::uint8_t is an alias for unsigned char on platforms that we support).
-
bunnei authored
vfs: Deduplicate accumulation code in VfsDirectory's GetSize()
-
bunnei authored
gl_state: Temporarily disable culling and depth test.
-