| Age | Commit message (Collapse) | Author |
|
|
|
This allows homebrew applications to be able to properly detect connected controllers.
|
|
|
|
Co-authored-by: James Rowe <jroweboy@gmail.com>
Co-authored-by: Its-Rei <kupfel@gmail.com>
|
|
As reported by tsan, SelectThreads could write to
is_context_switch_pending holding a mutex while SwitchToCurrent reads it
without holding any.
It is assumed that the author didn't want an atomic here, so the code is
reordered so that whenever is_context_switch_pending is read inside
SwitchToContext, the mutex is locked.
|
|
As reported by tsan, host_thread_ids could be read while
any of the RegisterHostThread variants were called.
To fix this, lock the register mutex when yuzu is running in multicore
mode and GetCurrentHostThreadID is called.
|
|
|
|
Fixes a race condition detected from tsan
|
|
registered_cache: Make use of designated initializers
|
|
logging option
The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session.
This commit also fixes a few errors that are present in the general debug menu.
|
|
cpu_manager: Make use of ranged for where applicable
|
|
key_manager: Make data arrays constexpr
|
|
vfs_real: Avoid redundant map lookups
|
|
We can just log out the parameters in the meantime.
|
|
Same behavior, minus unnecessary inclusions where not necessary.
|
|
Initialize id to a deterministic value and also mark the unreachable
cases in the switch with UNREACHABLE().
|
|
Simplifies code.
|
|
Removes the need for comments to indicate the fields being assigned.
|
|
core_timing: Resolve sign conversion warning
|
|
We can convert these maps into constexpr arrays to eliminate some
runtime static constructors.
|
|
We can simplify a few loops by making use of ranged for.
|
|
|
|
Same behavior, minus unnecessary zeroing out of the pointer.
|
|
This constant is only ever assigned to downcount, which is a s64, not a
u64.
|
|
dynarmic: Add unsafe optimizations
|
|
Migrates the Telemetry namespace into the Common namespace to make the
code consistent with the rest of our common code.
|
|
|
|
Avoids some trivially avoidable map lookups by keeping the result of
find operations around and querying them.
|
|
common/fileutil: Convert namespace to Common::FS
|
|
aes_util: Make use of non-template variant of Transcode
|
|
|
|
Migrates a remaining common file over to the Common namespace, making it
consistent with the rest of common files.
This also allows for high-traffic FS related code to alias the
filesystem function namespace as
namespace FS = Common::FS;
for more concise typing.
|
|
core: Resolve several -Wextra-semi warnings
|
|
software_keyboard: Resolve a pessimizing move warning
|
|
system_control: Make functions internally linked where applicable
|
|
kernel/scheduler: Mark SchedulerLock constructor as nodiscard
|
|
Prevents a useless self-assignment from occurring.
|
|
A std::vector created in place like this is already an rvalue and
doesn't need to be moved.
|
|
We can amend one of the cascade macros to require semicolons in order to
compile. In other cases, we can just remove the superfluous semicolons.
|
|
Ensures that callers make use of the constructor, preventing bugs from
silently occurring.
|
|
Allows the compiler to warn about cases where the constructor is used
but then immediately discarded, which is a potential cause of
locking/unlocking bugs.
|
|
cheat_engine: Resolve implicit bool->u64 conversion
|
|
General: Tidy up clang-format warnings part 2
|
|
|
|
freezer: Make use of std::erase_if
|
|
cheat_engine: Make use of designated initializers
|
|
kernel: Remove unused variables
|
|
vfs_vector: Make creation of array vfs files less verbose
|
|
am: Unstub SetScreenShotPermission
|
|
This makes it more inline with its currently unavailable standardized
analogue std::derived_from.
While we're at it, we can also make the template match the requirements
of the standardized variant as well.
|