bunnei
363c644730
service: bcat: Check client connection before interacting with socket.
- Fixes a crash when BCAT service is offline.
6 years ago
bunnei
1d714c8c7f
service: acc: Stub IManagerForApplication::StoreOpenContext.
- Used by Super Mario 3D All-Stars.
6 years ago
bunnei
1f186f34a2
hle: service: vi: Implement BufferQueue::CancelBuffer.
- This is used by Super Mario 3D All-Stars.
6 years ago
ReinUsesLisp
b9a9b83bee
kernel: Implement host thread register methods without locking
Locks on GetCurrentHostThreadID were causing performance issues
according to Visual Studio's profiler. It was consuming twice the time
as arm_interface.Run(). The cost was not in the function itself but in
the lockinig it required.
Reimplement these functions using atomics and static storage instead of
an unordered_map. This is a side effect to avoid locking and using linked
lists for reads.
Replace unordered_map with a linear search.
6 years ago
Lioncash
39c8d18feb
core/CMakeLists: Make some warnings errors
Makes our error coverage a little more consistent across the board by
applying it to Linux side of things as well. This also makes it more
consistent with the warning settings in other libraries in the project.
This also updates httplib to 0.7.9, as there are several warning
cleanups made that allow us to enable several warnings as errors.
6 years ago
Morph
8db3feae19
filesystem: Fix CreateDirectory and DeleteFile
Add a check if dir is nullptr (does not exist)
Fixes save game creation in Hades
6 years ago
bunnei
62c6c9f6a6
service: time: Update current time with changes to RTC setting.
- This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs.
6 years ago
bunnei
b260847218
hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.
- This is used by Super Mario 3D All-Stars.
6 years ago
german
2f47b27654
Only use inputs corresponding to controller type
6 years ago
german
283616dbd8
Stubbed EnableSixAxisSensorFusion
6 years ago
Morph
91bd2281bf
caps_c: Stub SetShimLibraryVersion
- Used by caps_su SetShimLibraryVersion
6 years ago
Morph
7d287a6fb0
caps_u: Stub SetShimLibraryVersion
- Used in Super Smash Bros. Ultimate
6 years ago
Morph
9a251339dc
caps_su: Properly stub SetShimLibraryVersion
6 years ago
Morph
6380731486
hid: Stub HomeButtonInputProtection service commands
- Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
6 years ago
german
ab88c2f611
First implementation of controller rumble
6 years ago
Lioncash
3e4a0a13cb
frontend/controller: Eliminate dependency on the global system instance
6 years ago
Lioncash
f3a1bf53f9
service: Restore "unused" function
Turns out this function is actually used, but within a trace log.
6 years ago
german
ddff03cff5
Use different timing for motion
6 years ago
Lioncash
ff45c39578
General: Make use of std::nullopt where applicable
Allows some implementations to avoid completely zeroing out the internal
buffer of the optional, and instead only set the validity byte within
the structure.
This also makes it consistent how we return empty optionals.
6 years ago
Morph
7a504a9365
acc: Stub LoadOpenContext
This is used in multiple games such as:
- Clubhouse Games: 51 Worldwide Classics
- Grandia HD Collection
- XCOM 2 Collection
- Baldur's Gate 1/2
- Dr Kawashima's Brain Training
- Super Mario 3D All-Stars
6 years ago
Morph
ab961e0701
hid: Implement Get/SetNpadHandheldActivationMode
- Used in Clubhouse Games: 51 Worldwide Classics
6 years ago
Morph
40a72e9cd5
am: Stub GetPreviousProgramIndex
- Used in Super Mario 3D All-Stars
6 years ago
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.
6 years ago
Lioncash
8bbd82863d
service: Remove unused funcation
This is now completely unused, so it can be removed.
6 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.
6 years ago
Lioncash
78b1bc3b61
service/sm: Eliminate dependency on the global system instance
6 years ago
Lioncash
0e80567bef
file_sys/bis_factory: Eliminate usage of the global system accessor
6 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.
6 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.
6 years ago
Lioncash
ffdf8c0cb3
service: Remove two usages of the global system accessor
Removes more instances of reliance on global state.
6 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.
6 years ago
Lioncash
cd643ab5c9
bsd: Resolve sign comparison warnings
6 years ago
Lioncash
180fa6859f
sockets_translate: Make use of designated initializers
Same behavior, less typing.
6 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.
6 years ago
Lioncash
9652973db2
blocking_worker: Resolve -Wdocumentation warning
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.
6 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
6 years ago
german
0774b17846
Remove RealMotionDevice
6 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.
6 years ago
german
ff679f3d17
Include HID and configuration changes related to motion
6 years ago
Morph
0e33b19ae0
hid: Implement MergeSingleJoyasDualJoy
- Used in multiple games such as Super Mario Odyssey.
6 years ago
Morph
076e4d44c3
Address feedback
6 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.
6 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.
6 years ago
Morph
5ce3015945
applets/controller: Implement "Explain Text"
"Explain Text" is additional text that is shown for each player in the controller applet.
6 years ago
Morph
5219615418
Project Mjölnir: Part 2 - Controller Applet
Co-authored-by: Its-Rei <kupfel@gmail.com>
6 years ago
FearlessTobi
e6bd1fd1b8
yuzu: Add motion and touch configuration
6 years ago
Morph
eb149ec696
controllers/npad: Fix inconsistencies with controller connection statuses
6 years ago
Morph
334ef2efdd
controllers/npad: Fix LibNX controller connection statuses
This allows homebrew applications to be able to properly detect connected controllers.
6 years ago
Morph
e7c174b426
controllers/npad: Fix LedPattern for P1-4
6 years ago