Lioncash
aca3621146
nfp: Eliminate two unnecessary copies
GetAmiiboBuffer() returns by const reference, so we can use a reference
instead of taking the returned buffer by value.
5 years ago
Lioncash
1ee9ceb5af
arm_dynarmic_cp15: Initialize member variables
Ensures that the member variables are always initialized to a
deterministic value on creation.
5 years ago
Lioncash
02b8b6677a
control_metadata: Resolve typo in Portuguese language name
This isn't used anywhere, so this is a trivial fix.
5 years ago
Lioncash
8bbd82863d
service: Remove unused funcation
This is now completely unused, so it can be removed.
5 years ago
Lioncash
057aa6275d
service/sm: Slightly more efficient string name validation
We can check the end of the string first for null-termination, rather
than the beginning of the string.
5 years ago
Lioncash
78b1bc3b61
service/sm: Eliminate dependency on the global system instance
5 years ago
Lioncash
a62c1999c5
file_sys/romfs_factory: Eliminate usage of the global system accessor
5 years ago
Lioncash
0e80567bef
file_sys/bis_factory: Eliminate usage of the global system accessor
5 years ago
Lioncash
aa8d6fc041
loader/nso: Remove unnecessary [[maybe_unused]]
5 years ago
ReinUsesLisp
eb914b6c50
video_core: Enforce -Werror=switch
This forces us to fix all -Wswitch warnings in video_core.
5 years ago
Lioncash
113a3972a6
core/loader: Remove dependencies on the global system instance
Now all that remains is:
18 instances in file_sys code
14 instances in GDB stub code (this can be tossed wholesale)
4 instances in HLE code
2 instances in settings code.
5 years ago
Lioncash
66fc037ef2
nca_patch: Significantly reduce the stack usage size within SearchBucketEntry()
Previously this function was using ~16KB of stack (16528 bytes), which
was caused by the function arguments being taken by value rather than by
reference.
We can make this significantly lighter on the stack by taking them by
reference.
5 years ago
Lioncash
99b372a6c5
nca_patch: Make SearchBucketEntry() internally linked
This is only used internally and doesn't depend on any class state, so
we can make it fully internal.
5 years ago
Lioncash
3a8464cde2
cheat_engine: Convert ExtractName into a non-template function
We don't need to create two separate instantiations of the same code, we
can simply make the character template argument a regular function
parameter.
5 years ago
Lioncash
ba7eb5abf4
cheat_engine: Remove unnecessary system argument to CheatParser's Parse function
This isn't used within the function at all in any implementations, so we
can remove it entirely.
5 years ago
Lioncash
33e4a0b6c1
patch_manager: Resolve implicit truncations in FormatTitleVersion()
We make it explicit that we're truncating arithmetic here to resolve
compiler warnings (even if the sizes weren't u32/u64 arithmetic
generally promotes to int :<)
5 years ago
Lioncash
a4392c24cf
patch_manager: Make use of type aliases
We can use these to avoid typing the same type redundantly. This way, if
these ever change, only a single location needs to be modified.
5 years ago
Lioncash
637ab14ae6
patch_manager: Make a few functions internally linked
These functions are only used within this translation unit, so we can
make them internally linked.
5 years ago
ReinUsesLisp
bc8ace9917
gc_adapter: Disable MSVC nonstandard extension warning on libusb.h
Pragma disable zero-sized array nonstandard extension warning on MSVC.
5 years ago
Lioncash
e0dd440b1f
crypto/key_manager: Remove dependency on the global system accessor
We can supply the content provider as an argument instead of hardcoding
a global accessor in the implementation.
5 years ago
Lioncash
ec2a6e5ba8
kernel: Remove all dependencies on the global system instance
With this, the kernel finally doesn't depend directly on the global
system instance anymore.
5 years ago
FearlessTobi
57162e1df3
Test: Decrease pad_update_ns
There have been reports of quite heavy input lag in the past.
Compared to Citra for example, our pad_update_ns value is very high.
So let's decrease it and see if it helps with this problem.
5 years ago
Lioncash
ffdf8c0cb3
service: Remove two usages of the global system accessor
Removes more instances of reliance on global state.
5 years ago
Lioncash
c715fc4c5e
gc_adapter: Make DeviceConnected() a const member function
This doesn't modify instance state, so it can be made const.
5 years ago
Lioncash
40968e3993
bsd: Resolve unused value within SendToImpl
Previously the address provided to SendToImpl would never be propagated
to SendTo(). This fixes that.
5 years ago
Lioncash
cd643ab5c9
bsd: Resolve sign comparison warnings
5 years ago
Lioncash
180fa6859f
sockets_translate: Make use of designated initializers
Same behavior, less typing.
5 years ago
Lioncash
188a3cf74c
blocking_worker: Make use of templated lambda
We can simplify this a little by explicitly specifying the typename for
the lambda function.
5 years ago
Lioncash
9652973db2
blocking_worker: Resolve -Wdocumentation warning
5 years ago
ReinUsesLisp
9e87193725
video_core: Remove all Core::System references in renderer
Now that the GPU is initialized when video backends are initialized,
it's no longer needed to query components once the game is running: it
can be done when yuzu is booting.
This allows us to pass components between constructors and in the
process remove all Core::System references in the video backend.
6 years ago
Morph
5b6268d26a
configure_input: Hook up the motion button and checkbox
This allows toggling motion on or off, and allows access to the motion configuration.
Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
5 years ago
german
797564599f
Minor cleanup
5 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
5 years ago
german
0774b17846
Remove RealMotionDevice
5 years ago
Morph
8e18b61972
configure_input_player: Show/hide motion buttons based on the controller
5 years ago
Morph
df3cbd4758
controllers/npad: Simplify motion entry assignment
Simplifies the motion assignment in the Dual Joycon entry and assigns index 1 of the motion entry (Motion 2) for the right joycon.
5 years ago
german
ff679f3d17
Include HID and configuration changes related to motion
5 years ago
Morph
0e33b19ae0
hid: Implement MergeSingleJoyasDualJoy
- Used in multiple games such as Super Mario Odyssey.
5 years ago
Morph
b65456b958
applets/controller: Resolve several compiler warnings
Resolves -Wsign-compare and -Wunused-variable
5 years ago
Morph
076e4d44c3
Address feedback
5 years ago
Morph
1ec71b6ea0
clang-format
5 years ago
Morph
f95ea04995
applets/controller: Set min_players to have a minimum value of 1.
- Some games like Shipped have a minimum requirement of 0 connected players and is undesired behavior. We must require a minimum of 1 player connected regardless of what games may ask.
5 years ago
Morph
371226448a
applets/controller: Modify heuristic to account for certain games
Now left and right joycons have the same priority (meaning both needs to be supported by the game).
Explanation of the new heuristic:
Assign left joycons to even player indices and right joycons to odd player indices.
We do this since Captain Toad Treasure Tracker expects a left joycon for Player 1 and a right Joycon for Player 2 in 2 Player Assist mode.
5 years ago
Morph
6597b3817c
main: Apply settings after applet configuration is complete.
5 years ago
Morph
7299356f37
applets/controller: Implement fallback applet for the SDL frontend
Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
5 years ago
Morph
72b2f5d34f
applets/controller: Load configuration prior to setting up connections
This avoids unintentionally changing the states of elements while loading them in.
5 years ago
Morph
aeec0f8a38
applets/controller: Make 8 a static constexpr value of NUM_PLAYERS
Avoids repetitive usages of the int literal '8' or calls to player_widgets.size()
5 years ago
Morph
5ce3015945
applets/controller: Implement "Explain Text"
"Explain Text" is additional text that is shown for each player in the controller applet.
5 years ago
Morph
5219615418
Project Mjölnir: Part 2 - Controller Applet
Co-authored-by: Its-Rei <kupfel@gmail.com>
5 years ago
ReinUsesLisp
827ff077e7
file_sys/patch_manager: Add missing include
Fixes build issues
5 years ago