lat9nq
8bd246032a
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
6b5f565324
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
5 years ago
bunnei
3984bb6def
hle: services: TimeZoneContentManager: This can be made explicit.
5 years ago
bunnei
54aabb00b0
core: cpu_manager: Add missing call to MicroProfileOnThreadExit().
- Fixes an occasional crash when trying to launch subsequent games.
5 years ago
Lioncash
98f4c5e7b8
general: Use template deduction guides for lock_guard
Same behavior, less code.
5 years ago
Lioncash
ea20b5c970
core: Fix clang build pt.3
Should finally resolve building with clang.
5 years ago
Lioncash
e408bd3b7c
core: Fix clang build pt.2
Resolves the clang build issue in a more unintrusive way.
5 years ago
bunnei
3d592972dc
Revert "core: Fix clang build"
5 years ago
Lioncash
fdd9154069
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
298b50e220
Added remaining params
5 years ago
David Marcec
acd35e1b60
nifm: GetAppletInfo stub
Fixes crash for Catherine Full Body
6 years ago
Lioncash
0ab7bfdfce
core: Add boxcat sources with target_sources
Same behavior, minus a script variable.
5 years ago
Lioncash
be1954e04c
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
c1577f3448
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
363c644730
service: bcat: Check client connection before interacting with socket.
- Fixes a crash when BCAT service is offline.
5 years ago
bunnei
1d714c8c7f
service: acc: Stub IManagerForApplication::StoreOpenContext.
- Used by Super Mario 3D All-Stars.
5 years ago
bunnei
1f186f34a2
hle: service: vi: Implement BufferQueue::CancelBuffer.
- This is used by Super Mario 3D All-Stars.
5 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.
5 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.
5 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
5 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.
5 years ago
bunnei
b260847218
hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.
- This is used by Super Mario 3D All-Stars.
5 years ago
german
2f47b27654
Only use inputs corresponding to controller type
5 years ago
german
283616dbd8
Stubbed EnableSixAxisSensorFusion
5 years ago
Morph
91bd2281bf
caps_c: Stub SetShimLibraryVersion
- Used by caps_su SetShimLibraryVersion
5 years ago
Morph
7d287a6fb0
caps_u: Stub SetShimLibraryVersion
- Used in Super Smash Bros. Ultimate
5 years ago
Morph
9a251339dc
caps_su: Properly stub SetShimLibraryVersion
5 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.
5 years ago
german
ab88c2f611
First implementation of controller rumble
6 years ago
Lioncash
5c4e237902
core: Mark GetInstance() as deprecated
This way it's obvious that this function shouldn't be used in any future
code.
5 years ago
Lioncash
3e4a0a13cb
frontend/controller: Eliminate dependency on the global system instance
5 years ago
Lioncash
f3a1bf53f9
service: Restore "unused" function
Turns out this function is actually used, but within a trace log.
5 years ago
Morph
3602df7f1f
submission_package: Fix updates integrated into cartridge images.
5 years ago
german
ddff03cff5
Use different timing for motion
5 years ago
Lioncash
b14d344dfc
memory: Resolve a -Wdocumentation warning
memory doesn't exist as a parameter any more.
5 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.
5 years ago
Lioncash
a881efbf26
ips_layer: Eliminate a redundant copy in Parse()
Prevents unnecessary copying of the line being parsed.
5 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
5 years ago
Morph
ab961e0701
hid: Implement Get/SetNpadHandheldActivationMode
- Used in Clubhouse Games: 51 Worldwide Classics
5 years ago
Morph
40a72e9cd5
am: Stub GetPreviousProgramIndex
- Used in Super Mario 3D All-Stars
5 years ago
Morph
41c2f5200c
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.
5 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.
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