David Marcec
1b21fca8d6
Added assertion failed, reworked logging levels
7 years ago
David Marcec
8363276d6e
Added break types to svcBreak
There seems to be more such as type 1, and 2. Unsure what these currently are but when a game hits them we can investigate and add the rest
7 years ago
Zach Hilman
157368b56b
psm: Stub GetChargerType
Used by LovePotion Lua Homebrew. Stubbed as connected to official Nintendo Switch dock.
7 years ago
Lioncash
da95baa5de
service: Add the basic skeleton for the NPNS services
7 years ago
Lioncash
633b95adce
hid: Update service function table for hidbus
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
aa09b18f97
am: Add the basic skeleton for the tcap service
Added based off information provided by Switchbrew.
7 years ago
Lioncash
85df255cd1
am: Update service function tables
Updated based off information from Switchbrew
7 years ago
Lioncash
f8220c84fc
prepo: Update service function table.
Also introduces the new prepo:a2 service.
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
4c7235b008
lbl: Update service function table names
Updated based off information provided by Switchbrew.
7 years ago
Zach Hilman
1180af1627
psm: Stub GetBatteryChargePercentage
Used by LovePotion Lua Homebrew. Stubbed to return 100% charge.
7 years ago
Zach Hilman
e37e15fd1e
service: Add skeleton for psm service
Seems to be the power controller. Listed in switchbrew under the category PTM services.
7 years ago
Lioncash
e13c95fbe5
kernel/process: Make the handle table per-process
In the kernel, there isn't a singular handle table that everything gets
tossed into or used, rather, each process gets its own handle table that
it uses. This currently isn't an issue for us, since we only execute one
process at the moment, but we may as well get this out of the way so
it's not a headache later on.
7 years ago
Lioncash
3c47ef0927
svc: Fix vma boundary check in svcQueryMemory
This should be comparing against the queried process' vma_map, not the
current process'. The only reason this hasn't become an issue yet is we
currently only handle one process being active at any time.
7 years ago
David Marcec
d4034559b1
Added auto controller switching to supported controllers and single joycon button rotation
This is a subset of the better-hid-2 changes, this fixes input in various games which don't support dual joycons. This pr will search for the next best controller which is supported by the current game
7 years ago
Zach Hilman
50ee6b4082
aoc_u: Stub GetAddOnContentListChangedEvent
This event signals the game when new DLC is purchased from the eShop while the game is running. Since, for the forseeable future, yuzu will not have this ability, it seems safe to stub with a dummy event that will never fire. This is needed to boot Sonic Mania Plus (update v1.04).
7 years ago
Zach Hilman
2241677092
crypto: Use compressed sizes in offset calculation for KIP decompression
Fixes a fatal crash on start when deriving keys.
7 years ago
Zach Hilman
2aa6989cee
vfs: Remove InterpretAsDirectory and related functions
When writing VFS, it initally seemed useful to include a function to in-place convert container files into directories in one homogenous directory structure, but re-evaluating it now there have been plenty of chances to use it and there has always been a better way. Removing as it is unused and likely will not be used.
7 years ago
David Marcec
69140470d7
Stubbed home blocking
Needed by arms due to new hid rework
7 years ago
Lioncash
72461fb8f4
es: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
b35b5073aa
audio: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
9fc0851d40
omm: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
668ab6ec8b
nifm: Update service function tables
Updated based off information provided by switchbrew.
7 years ago
Lioncash
9abf6af0f1
hid: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
48c8e17b99
nim: Add the basic skeleton of the nim:eca service
Added based off information provided by Switchbrew
7 years ago
Lioncash
f6aee09f02
ns: Update service function table
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
3294204b2a
set_cal: Update service function table
Updated based on information from Switchbrew.
7 years ago
Lioncash
c015a42cc2
svc: Check for word alignment of addresses within svcArbitrateLock/svcArbitrateUnlock
The kernel itself checks whether or not the provided addresses are word
aligned before continuing, so we should be doing the same.
7 years ago
Lioncash
7784a1ca44
common: Move Is4KBAligned() to alignment.h
Aligning on 4KB pages isn't a Switch-specific thing, so this can be
moved to common so it can be used with other things as well.
7 years ago
Lioncash
3813aafaaf
core: Remove unnecessary assert in ArmInterface()
CpuCore already does this sort of checking, so we can just call that
instead of duplicating the assertions.
7 years ago
David Marcec
9aa32c18b6
Used better names for mm:u and fixed bad stub
InitializeWithId needs to return an id which is a u32 which should be a non zero value
7 years ago
Lioncash
489f59e45f
svc: Add missing sanitizing checks for MapSharedMemory/UnmapSharedMemory
Now that the changes clarifying the address spaces has been merged, we
can wrap the checks that the kernel performs when mapping shared memory
(and other forms of memory) into its own helper function and then use
those within MapSharedMemory and UnmapSharedMemory to complete the
sanitizing checks that are supposed to be done.
7 years ago
Lioncash
374ea27a8b
hid/controller: Remove unused header inclusions
swap.h only needs to be present in the header for the type aliases and
definitions, it's not actually needed in the cpp files though. input.h
is just unused entirely in xpad.h
7 years ago
Lioncash
ca3d440f78
hid/controller/npad: Remove unused dump_idx member variable
Given it's unused, we may as well toss it.
7 years ago
Lioncash
72aa1f10f6
hid/controller/npad: Remove unnecessary semicolon from the closing brace of LedPattern's constructor
7 years ago
Lioncash
5583e4f15d
hid/controller/npad: Remove #pragma once from the cpp file
This is only useful in headers.
7 years ago
Lioncash
fd85f5b847
hid/controller/npad: Move npad_id_list into the cpp file
This is just a lookup table, and since it's private, there's nothing
really stateful about it, so we can just move it into the cpp file.
7 years ago
Lioncash
9338428f43
hid/controller/npad: Remove unnecessary const from void return type
This literally does nothing.
7 years ago
Lioncash
f864e487b9
hid/controller: Default the destructors of all controller types in the cpp file
These classes are non-trivial and are definitely going to be changed in
the future, so we default these to prevent issues with forward
declarations, and to keep the compiler from inlining tear-down code.
7 years ago
Lioncash
6f8f5f1d0a
controller_base: Default the base class constructor and destructor in the cpp file
The destructor doesn't need to be a pure-virtual function.
7 years ago
Zach Hilman
a0f408400b
qt: Add support for dumping a DLC Data RomFS
7 years ago
Zach Hilman
148b28bad1
registered_cache: Deduplicate results of ListEntry and ListEntryFilter
Prevents a Entry from appearing in the list twice if the user has it installed in two places (e.g. User NAND and SDMC)
7 years ago
David Marcec
128f14d60e
Using dual joycons as the default controller
Reason for the change is to allow both docked and undocked mode to work
7 years ago
Zach Hilman
b36874c0b7
fsp_srv: Apply patches to Data storage in OpenDataStorageByDataId
7 years ago
Zach Hilman
ee70cf8a1a
patch_manager: Add support for using LayeredFS with Data
7 years ago
bunnei
b1c31be284
config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.
- This will be used as a catch-all for slow-but-accurate GPU emulation paths.
7 years ago
Lioncash
b00f4831b0
content_archive: Simpify assignment of bktr_base_romfs in the constructor
std::move doesn't actually dereference the data, so it doesn't matter
whether or not the type is null.
7 years ago
Lioncash
6adf7a6f99
content_archive: Make IsValidNCA() an internally linked function
This is only ever used within the cpp file, so it can just be an
internal function.
7 years ago
Lioncash
401a947c41
content_archive: Simplify rights ID check
This is the same as using std::any_of with an inverted predicate.
7 years ago
Lioncash
33363de6df
content_archive: Split loading into separate functions
The constructor alone is pretty large, the reading code should be split
into its consistuent parts to make it easier to understand it without
having to build a mental model of a 300+ line function.
7 years ago
Lioncash
067a174e00
content_archive: Pass and take NCASectionHeader instance by reference
Each header is 512 bytes in size, which is kind of an excessive amount
to copy all the time when it's possible to avoid doing so.
7 years ago