bunnei
ad48ebb2c8
core: kernel: Add svc_types header to include SVC-specific types.
6 years ago
bunnei
82d457af37
core: kernel: Move SVC to its own namesapce.
6 years ago
bunnei
b0e3cbef7a
kernel: resource_limit: Improvements to implementation.
6 years ago
bunnei
f2676efe23
process: SetupMainThread: Zero out argument on process start.
6 years ago
Lioncash
e2d8be1ca2
General: Resolve warnings related to missing declarations
6 years ago
Lioncash
337f2dc11f
time_zone_manager: Resolve sign conversion warnings
ttis and ats will never exceed the length of INT32_MAX in our case, so
this is safe.
6 years ago
Lioncash
77356731a9
hle_ipc: Remove std::size_t casts where applicable
These were added in the change that enabled -Wextra on linux builds so
as not to introduce interface changes in the same change as a
build-system flag addition.
Now that the flags are enabled, we can freely change the interface to
make these unnecessary.
6 years ago
Lioncash
1c340c6efa
CMakeLists: Specify -Wextra on linux builds
Allows reporting more cases where logic errors may exist, such as
implicit fallthrough cases, etc.
We currently ignore unused parameters, since we currently have many
cases where this is intentional (virtual interfaces).
While we're at it, we can also tidy up any existing code that causes
warnings. This also uncovered a few bugs as well.
6 years ago
Lioncash
213fff67bc
CMakeLists: Make -Wreorder a compile-time error
This can result in silent logic bugs within code, and given the amount
of times these kind of warnings are caused, they should be flagged at
compile-time so no new code is submitted with them.
6 years ago
Lioncash
521c4c33b5
kernel/thread: Resolve -Wswitch warnings
6 years ago
bunnei
eb676c343a
service: time: Implement CalculateStandardUserSystemClockDifferenceByUser.
- Used by Animal Crossing: New Horizons.
6 years ago
bunnei
598740f1dd
service: friend: Stub IFriendService::GetBlockedUserListIds.
- This is safe to stub, as there should be no adverse consequences from reporting no blocked users.
6 years ago
Fernando Sahmkow
486a42c45a
Buffer queue: Correct behavior of free buffer.
This corrects the behavior of free buffer after witnessing it in an
unrelated hardware test. I haven't found any games affected by it but in
name of better accuracy we'll correct such behavior.
6 years ago
ReinUsesLisp
8c0ba9c6fe
service/vi: Partially implement BufferQueue disconnect
6 years ago
Morph
224a75d839
capsrv: Split Capture services into individual files and stub GetAlbumContentsFileListForApplication ( #3571 )
* Organize capture services into individual files
* Stub GetAlbumContentsFileListForApplication
* Address feedback
6 years ago
bunnei
8a6a25e4b6
services: hid: Stub InitializeSevenSixAxisSensor.
- Used by Super Smash Bros. Ultimate v7.0.0.
6 years ago
bunnei
a60f34a850
services: time: Implement CalculateSpanBetween.
- Used by Super Smash Bros. Ultimate.
6 years ago
perillamint
a429644672
am: Implement VR related APIs
Implement (and stub) VR related APIs in AM sysmodule.
This fixes issue #2938
6 years ago
bunnei
5228bd0bb9
services: ldr: Fix MemoryState for read/write regions of NROs.
- Fixes #3541 , used by Final Fantasy VIII Remastered.
6 years ago
FearlessTobi
4afebf26b6
sm/controller: Increase PointerBufferSize
This increases the PointerBufferSize as a lager one is required by some services.
This change is still not hw-accurate, but it is proven to work in Ryujinx.
Instead of using a hardcoded size, we should figure out the specific values for each service in the future. Some of them can be taken from Atmosphere: https://github.com/Atmosphere-NX/Atmosphere/search?q=PointerBufferSize .
6 years ago
FearlessTobi
977418c65b
core/web_browser: Allow WebApplet to exit gracefully when an error occurs
Currently, yuzu just freezes when an error occurs while Initializing the WebApplet.
From a user perspective, this obviously isn't great as the game just softlocks.
With this change, yuzu will call the Finalize method, so to the game it seems like as the user just exited the WebApplet normally.
This works around https://github.com/yuzu-emu/yuzu/issues/2852 .
6 years ago
Dan
06dea163fa
set: implement GetRegionCode
6 years ago
ReinUsesLisp
ac7ee21331
time_zone_content_manager: Fix out of bounds read
There were cases where raw_data didn't contain enough
space to hold the zero terminator.
This was caught with -fsanitize=address.
6 years ago
Fernando Sahmkow
95b804ff05
NVFlinger: Do the microprofile Flip after processing a valid frame.
6 years ago
bunnei
dba112e510
core: hle: Implement separate A32/A64 SVC interfaces.
6 years ago
bunnei
c083ea7d78
core: Implement separate A32/A64 ARM interfaces.
6 years ago
Morph
e1efab1f51
AM/ICommonStateGetter: Stub SetLcdBacklighOffEnabled ( #3454 )
* Stub SetLcdBacklighOffEnabled
Used by Super Smash Bros. Ultimate
We require backlight services to be implemented to turn on/off the backlight.
* Address feedback
6 years ago
Fernando Sahmkow
3d0a2375ca
Scheduler: Inline global scheduler in Scheduler Lock.
6 years ago
Fernando Sahmkow
a1bf353780
Kernel: Correct pending feedback.
6 years ago
Fernando Sahmkow
d219a96cc8
Kernel: Address Feedback.
6 years ago
Fernando Sahmkow
ea956c823e
Kernel: Implement Scheduler locks
6 years ago
Fernando Sahmkow
5c90d22f3d
Kernel: Implement Time Manager.
6 years ago
Fernando Sahmkow
179bafa7cb
Kernel: Rename ThreadCallbackHandleTable and Setup Thread Ids on Kernel.
6 years ago
Fernando Sahmkow
0728dfef84
Kernel: Make global scheduler depend on KernelCore
6 years ago
Brian Clinkenbeard
ad4e5c15fb
httplib compatibility
6 years ago
CJBok
23c4cc80e2
analog_from_button get direction implementation
6 years ago
Nguyen Dac Nam
5257a83ebe
IUserLocalCommunicationService: add function Initialize2
6 years ago
Nguyen Dac Nam
6c0eb6026b
HLE: correct function name of IUserLocalCommunicationService
402: function name should be Initialize2 (7.0.0+) not SetOperationMode
Follow by: https://switchbrew.org/wiki/LDN_services#IUserLocalCommunicationService
6 years ago
namkazy
7fadc9c180
nvhost_gpu: implement ChannelSetTimeslice
6 years ago
Fernando Sahmkow
2bc949628d
Core: Address Feedback
6 years ago
Lioncash
be269e21a5
address_arbiter: Collapse loops in InsertThread() and RemoveThread()
Same behavior, but without the need to explicitly loop through
everything manually.
6 years ago
Lioncash
9f2c703137
address_arbiter: Simplify GetThreadsWaitingOnAddress()
Simplifies the overall function and also allows for it to become a
const-qualified member function.
6 years ago
Lioncash
f00a54f508
bcat/backend: Make formatting of passphrase consistent in NullBackend::SetPassphrase()
Aligns the '=' to be consistent with the rest of the logs within this
source file.
6 years ago
Lioncash
eefd97e80d
bcat/backend: Prevent fmt exception in debug log within NullBackend::Clear()
A formatting specifier within Clear wasn't being used, which will cause
fmt to throw an exception. This fixes that.
6 years ago
Lioncash
b80c348b09
kernel/thread: Remove trivial usages of the global system accessor
We can just use the kernel member variable directly instead of going
through the system to obtain the same thing.
6 years ago
Fernando Sahmkow
1e6f8aba04
Core: Set all hardware emulation constants in a single file.
6 years ago
Fernando Sahmkow
d23d504d77
Kernel: Refactor synchronization to better match RE
6 years ago
makigumo
926ea5a16d
update hwopus DecodeInterleaved for FW 7.0.0+
trivial change,
see https://switchbrew.org/wiki/Audio_services#IHardwareOpusDecoder
6 years ago
Fernando Sahmkow
c5aefe42aa
Kernel: Change WaitObject to Synchronization object. In order to better reflect RE.
6 years ago
bunnei
7b07e521ca
hle: services: Use std::shared_ptr instead of copy by value.
6 years ago