aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2020-12-07controller: Avoid unnecessary copies in ConfigurationComplete()Lioncash
Avoids unnecessary 1072 byte copies when querying info about controllers.
2020-12-08Merge pull request #5020 from german77/AnalogfromButtonFixMorph
Disable analog joystick from buttons by default
2020-12-07Disable analog joystick from buttons by defaultgerman
2020-12-07Merge pull request #5153 from comex/xx-unixbunnei
CMakeLists,network: Create YUZU_UNIX macro to replace __unix__
2020-12-06Merge pull request #5148 from comex/xx-unused-fieldsbunnei
core: Mark unused fields as [[maybe_unused]]
2020-12-06Merge pull request #5154 from comex/xx-ipcbunnei
hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp
2020-12-07Merge pull request #5147 from comex/xx-purevirtLC
nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclass
2020-12-07Merge pull request #5150 from comex/xx-boxcatLC
boxcat: Avoid unnecessary object copy
2020-12-07Merge pull request #5136 from lioncash/video-shadow3LC
video_core: Resolve more variable shadowing scenarios pt.3
2020-12-06network, sockets: Replace `POLL_IN`, `POLL_OUT`, etc. constants with an ↵comex
`enum class PollEvents` Actually, two enum classes, since for some reason there are two separate yet identical `PollFD` types used in the codebase. I get that one is ABI-compatible with the Switch while the other is an abstract type used for the host, but why not use `WSAPOLLFD` directly for the latter? Anyway, why make this change? Because on Apple platforms, `POLL_IN`, `POLL_OUT`, etc. (with an underscore) are defined as macros in <sys/signal.h>. (This is inherited from FreeBSD.) So defining a variable with the same name causes a compile error. I could just rename the variables, but while I was at it I thought I might as well switch to an enum for stronger typing. Also, change the type used for values copied directly to/from the `events` and `revents` fields of the host *native* `pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct canonical type on both Unix and Windows.
2020-12-06Fix "explicitly defaulted but implicitly deleted" warningcomex
`PhysicalCore`'s move assignment operator was declared as `= default`, but was implicitly deleted because `PhysicalCore` has fields of reference type. Switch to explicitly deleting it to avoid a Clang warning. The move *constructor* is still defaulted, and is required to exist due to the use of `std::vector<PhysicalCore>`.
2020-12-06hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cppcomex
- Add a type check so that calling Push with an invalid type produces a compile error rather than a linker error. - vi.cpp was calling Push with a variable of type `std::size_t`. There's no explicit overload for `size_t`, but there is one for `u64`, which on most platforms is the same type as `size_t`. On macOS, however, it isn't: both types are 64 bits, but `size_t` is `unsigned long` and `u64` is `unsigned long long`. Regardless, it makes more sense to explicitly use `u64` here instead of `size_t`.
2020-12-06CMakeLists,network: Create YUZU_UNIX macro to replace __unix__comex
__unix__ is not predefined on Apple platforms even though they are Unix.
2020-12-06core: Mark unused fields as [[maybe_unused]]comex
2020-12-06boxcat: Avoid unnecessary object copycomex
2020-12-06nvdrv: Remove useless re-declaration of pure virtual methods that were ↵comex
already declared in the superclass
2020-12-06hle: kernel: Process: Various style fixes based on code review feedback.bunnei
2020-12-06core: cpu_manager: Fix a typo in PreemptSingleCore, which broke many games.bunnei
- We were reload'ing the old current scheduler, which may have changed.
2020-12-06hle: kernel: Thread: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KScopedSchedulerLockAndSleep: Various style fixes based on code ↵bunnei
review feedback.
2020-12-06hle: kernel: KScopedLock: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KAbstractSchedulerLock: Various style fixes based on code ↵bunnei
review feedback.
2020-12-06hle: kernel: KScheduler: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KPriorityQueue: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KAffinityMask: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: GlobalSchedulerContext: Various style fixes based on code ↵bunnei
review feedback.
2020-12-06hle: kernel: Use C++ style comments in KScheduler, etc.bunnei
2020-12-06kernel: KScopedSchedulerLockAndSleep: Remove unused ctor.bunnei
2020-12-06kernel: time_manager: Add missing lock guards.bunnei
2020-12-06hle: kernel: Migrate to KScopedSchedulerLock.bunnei
2020-12-06hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler.bunnei
2020-12-06hle: kernel: Separate KScheduler from GlobalSchedulerContext class.bunnei
2020-12-06hle: kernel: Rewrite scheduler implementation based on Mesopshere.bunnei
2020-12-06hle: kernel: physical_core: Clear exclusive state after each run.bunnei
- This is closer to pre-multicore behavior, and works a bit better.
2020-12-06hle: kernel: Port KAbstractSchedulerLock from Mesosphere.bunnei
2020-12-06hle: kernel: svc: Remove reschedule on svcBreak.bunnei
- This breaks things, and is unnecessary, since emulation will be done at this point.
2020-12-06hle: kernel: process: Add schedule count tracking, to be used for yield impl.bunnei
2020-12-06hle: kernel: svc: Remove unnecessary hack in svcSleep.bunnei
2020-12-06common: Port KPriorityQueue from Mesosphere.bunnei
2020-12-06hle: kernel: Port KAffinityMask from Mesosphere.bunnei
2020-12-05video_core: Resolve more variable shadowing scenarios pt.3Lioncash
Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors.
2020-12-05applets: Resolve variable shadowingMorph
2020-12-05system_version: Update to 11.0.0Chloe Marcec
2020-12-04nim: Stub IsLargeResourceAvailableMorph
- Used by Immortals Fenyx Rising
2020-12-03Merge pull request #4996 from bunnei/use-4jitsbunnei
Kernel: Refactor to use 4-instances of Dynarmic & various cleanups and improvements
2020-12-02Merge pull request #5000 from lioncash/audio-errorbunnei
audio_core: Make shadowing and unused parameters errors
2020-12-03audio_core: Make shadowing and unused parameters errorsLioncash
Moves the audio code closer to enabling warnings as errors in general.
2020-12-01Merge pull request #4937 from german77/multiUDPbunnei
InputCommon: Add multiple udp server support
2020-11-29Merge pull request #4939 from german77/MouseInputbunnei
InputCommon: Implement full mouse support
2020-11-29kernel: scheduler: Minor cleanup to remove duplicated code.bunnei