lat9nq
2974d72a2a
kernel: Use the current time as the default RNG seed
Use the current time, not zero, as the default RNG seed.
5 years ago
Lioncash
c3f019b9eb
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
5 years ago
bunnei
379ef37035
hle: services: TimeZoneContentManager: This can be made explicit.
5 years ago
bunnei
321fbec267
core: cpu_manager: Add missing call to MicroProfileOnThreadExit().
- Fixes an occasional crash when trying to launch subsequent games.
5 years ago
Lioncash
59a56fa810
general: Use template deduction guides for lock_guard
Same behavior, less code.
5 years ago
Lioncash
c7b6027f34
core: Fix clang build pt.3
Should finally resolve building with clang.
5 years ago
Lioncash
2d48020ca5
core: Fix clang build pt.2
Resolves the clang build issue in a more unintrusive way.
5 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
5 years ago
Lioncash
1367e8fb75
kernel: Fix build with recent compiler flag changes
This slipped through the cracks due to another change being merged
before the compiler flag changes.
5 years ago
David Marcec
b54f39b1d4
Added remaining params
5 years ago
David Marcec
83cb5a2c74
nifm: GetAppletInfo stub
Fixes crash for Catherine Full Body
6 years ago
Lioncash
a1b5ea953f
core: Add boxcat sources with target_sources
Same behavior, minus a script variable.
5 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
5 years ago
Lioncash
ab33132ccb
mii/manager: Make use of unused lower bound in GetRandomValue()
Previously, the lower bound wasn't being used and zero was being used as
the lower bound every time this function was called.
This affects the outcome of some of the randomized entries a little bit,
for example, the lower-bound for beard and mustache flags was supposed
to be 1, not 0.
Aside from these cases, the bug didn't affect anything else.
5 years ago
bunnei
bf6d4d3052
service: bcat: Check client connection before interacting with socket.
- Fixes a crash when BCAT service is offline.
5 years ago
bunnei
de8829370d
service: acc: Stub IManagerForApplication::StoreOpenContext.
- Used by Super Mario 3D All-Stars.
5 years ago
bunnei
cab012dd01
hle: service: vi: Implement BufferQueue::CancelBuffer.
- This is used by Super Mario 3D All-Stars.
5 years ago
ReinUsesLisp
a13623c68b
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.
5 years ago
Lioncash
16de0a6a96
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.
5 years ago
Morph
585838ca42
filesystem: Fix CreateDirectory and DeleteFile
Add a check if dir is nullptr (does not exist)
Fixes save game creation in Hades
5 years ago
bunnei
3fb8109c94
service: time: Update current time with changes to RTC setting.
- This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs.
5 years ago
bunnei
649a262f4e
hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.
- This is used by Super Mario 3D All-Stars.
5 years ago
german
3fa9068948
Only use inputs corresponding to controller type
5 years ago
german
450a3c0f42
Stubbed EnableSixAxisSensorFusion
6 years ago
Morph
ba883c8c84
caps_c: Stub SetShimLibraryVersion
- Used by caps_su SetShimLibraryVersion
6 years ago
Morph
e1d561f647
caps_u: Stub SetShimLibraryVersion
- Used in Super Smash Bros. Ultimate
6 years ago
Morph
a03d4d663c
caps_su: Properly stub SetShimLibraryVersion
6 years ago
Morph
f3e928bb6a
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
782aab6cf2
First implementation of controller rumble
6 years ago
Lioncash
dba567cfbf
core: Mark GetInstance() as deprecated
This way it's obvious that this function shouldn't be used in any future
code.
6 years ago
Lioncash
9861290969
frontend/controller: Eliminate dependency on the global system instance
6 years ago
Lioncash
711c5c7bdf
service: Restore "unused" function
Turns out this function is actually used, but within a trace log.
6 years ago
Morph
58f0798f1f
submission_package: Fix updates integrated into cartridge images.
6 years ago
german
c3fb504201
Use different timing for motion
6 years ago
Lioncash
3abd28c35a
memory: Resolve a -Wdocumentation warning
memory doesn't exist as a parameter any more.
6 years ago
Lioncash
e457001dce
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
Lioncash
485eec243d
ips_layer: Eliminate a redundant copy in Parse()
Prevents unnecessary copying of the line being parsed.
6 years ago
Morph
152b529a00
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
505ce79b9d
hid: Implement Get/SetNpadHandheldActivationMode
- Used in Clubhouse Games: 51 Worldwide Classics
6 years ago
Morph
5435e0ee39
am: Stub GetPreviousProgramIndex
- Used in Super Mario 3D All-Stars
6 years ago
Morph
0b72422a10
submission_package: Account for multi-content NSPs
Previously we assumed a submission package can only contain one Program NCA with a single TitleID.
However, Super Mario 3D All-Stars contains four Program NCAs, each with their unique TitleIDs.
This accounts for the existence of multi-content games such as this one.
- Fixes booting Super Mario 3D All-Stars from the games list.
6 years ago
Lioncash
45a608088c
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
4d0fa3544f
arm_dynarmic_cp15: Initialize member variables
Ensures that the member variables are always initialized to a
deterministic value on creation.
6 years ago
Lioncash
43a09c9bfc
control_metadata: Resolve typo in Portuguese language name
This isn't used anywhere, so this is a trivial fix.
6 years ago
Lioncash
341c612474
service: Remove unused funcation
This is now completely unused, so it can be removed.
6 years ago
Lioncash
e4747039da
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
95e8dff0d7
service/sm: Eliminate dependency on the global system instance
6 years ago
Lioncash
7824da5961
file_sys/romfs_factory: Eliminate usage of the global system accessor
6 years ago
Lioncash
e45b727db5
file_sys/bis_factory: Eliminate usage of the global system accessor
6 years ago
Lioncash
279b79c880
loader/nso: Remove unnecessary [[maybe_unused]]
6 years ago