Lioncash
afb7e5cc05
kernel/error: Remove leftover 3DS error codes
These are now entirely unused and can be removed.
7 years ago
Lioncash
fcf8f53a63
kernel/svc: Amend returned error code for invalid priorities in CreateThread
Like with the previous change, the kernel doesn't return NOT_AUTHORIZED
here. It returns INVALID_THREAD_PRIORITY.
7 years ago
Lioncash
77328b0f19
kernel/svc: Move and correct returned error code for invalid thread priorities in SetThreadPriority()
All priority checks are supposed to occur before checking the validity
of the thread handle, we're also not supposed to return
ERR_NOT_AUTHORIZED here.
7 years ago
Lioncash
c7c346a15d
kernel/error: Add error code for invalid pointers
The kernel appears to return 0xE601 for this situation. Particularly in
svcWaitSynchronization, svcReplyAndReceive, and svcGetThreadContext
7 years ago
Lioncash
6df09f5b76
kernel/error: Add error code for closed sessions
The kernel appears to return 0xF601 for this case.
7 years ago
Lioncash
4a31f99a02
profile_manager: Use std::optional instead of boost::optional
Now that we can actually use std::optional on macOS, we don't need to
continue using boost::optional here.
7 years ago
Lioncash
bed2d6c425
yuzu/main: Notify user of loading errors with Amiibo data
We shouldn't silently continue if loading failed, since the general
assumption is that no messages showing up implicitly indicates success.
7 years ago
Lioncash
93596d03ec
npad: Remove unused controller variable from OnInit()
This also gets rid of variable shadowing related to the lambda parameter
a little bit below this code as well.
7 years ago
Lioncash
7c9f7aeacc
perf_stats: Remove unused variable within DoFrameLimiting()
This hasn't been used since ba8ff096fd
7 years ago
Lioncash
a3d1ede25f
aoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() function
We can just call the function instead of duplicating the code here. This
also prevents an unused function warning.
We also don't need to take the lambda capture by reference. It's just a
u64 value, so by value is fine here.
7 years ago
Lioncash
c7c594a6b8
vfs: Handle failure of file reading within VfsRawCopy()
Also gets rid of an unused variable.
7 years ago
Lioncash
c6529688fc
key_manager: Remove unused variable in DeriveBase()
7 years ago
Zach Hilman
bfad41b0c1
profile_manager: Create save data if it doesn't exist on use
7 years ago
Zach Hilman
45f2a2fe29
acc: Fix account UUID duplication error
7 years ago
Zach Hilman
e408bbceed
configure_system: Clear selection after user delete
7 years ago
Zach Hilman
702622b8f1
profile_manager: Load user icons, names, and UUIDs from system save
7 years ago
Zach Hilman
19c5cf9c63
acc: Load user images from config dir
7 years ago
Zach Hilman
d3fbf45705
am: Pass current user UUID to launch parameters
7 years ago
Zach Hilman
aeffd4b436
profile_manager: Load users from emulator settings
7 years ago
Zach Hilman
e7e3d5898e
settings: Add users and current_user settings and remove username
7 years ago
David
50e4e81fd3
Added Amiibo support ( #1390 )
* Fixed conflict with nfp
* Few fixups for nfc
* Conflict 2
* Fixed AttachAvailabilityChangeEvent
* Conflict 3
* Fixed byte padding
* Refactored amiibo to not reside in "System"
* Removed remaining references of nfc from system
* used enum for Nfc GetStateOld
* Added missing newline
* Moved file operations to front end
* Conflict 4
* Amiibos now use structs and added mutexes
* Removed amiibo_path
7 years ago
David Marcec
38cdb6744d
Added assertion failed, reworked logging levels
7 years ago
David Marcec
8042731da9
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
314a948373
psm: Stub GetChargerType
Used by LovePotion Lua Homebrew. Stubbed as connected to official Nintendo Switch dock.
7 years ago
Lioncash
ca5a93167e
service: Add the basic skeleton for the NPNS services
7 years ago
Lioncash
981faea4d6
hid: Update service function table for hidbus
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
5ea4cfd499
am: Add the basic skeleton for the tcap service
Added based off information provided by Switchbrew.
7 years ago
Lioncash
edb1c36a87
am: Update service function tables
Updated based off information from Switchbrew
7 years ago
Lioncash
ae7f55947e
prepo: Update service function table.
Also introduces the new prepo:a2 service.
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
a806c78a1a
lbl: Update service function table names
Updated based off information provided by Switchbrew.
7 years ago
Zach Hilman
10a2d20e26
psm: Stub GetBatteryChargePercentage
Used by LovePotion Lua Homebrew. Stubbed to return 100% charge.
7 years ago
Zach Hilman
3b8c0f8885
service: Add skeleton for psm service
Seems to be the power controller. Listed in switchbrew under the category PTM services.
7 years ago
Lioncash
90a981a03a
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
896c0f61a0
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
a03600ba28
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
7e0d2fc994
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
0aef2b9c26
crypto: Use compressed sizes in offset calculation for KIP decompression
Fixes a fatal crash on start when deriving keys.
7 years ago
Zach Hilman
a25d79cfaa
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
7a7dad05c0
Stubbed home blocking
Needed by arms due to new hid rework
7 years ago
Lioncash
1833498617
es: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
a653be3510
audio: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
2b9fd23058
omm: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
4f52800822
nifm: Update service function tables
Updated based off information provided by switchbrew.
7 years ago
Lioncash
f6c5a48dd1
hid: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
d0cda7fe40
nim: Add the basic skeleton of the nim:eca service
Added based off information provided by Switchbrew
7 years ago
Lioncash
d16bafc99d
ns: Update service function table
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
a056b284cf
set_cal: Update service function table
Updated based on information from Switchbrew.
7 years ago
Lioncash
4b5ae8dbaa
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
d27f4a4928
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
f109615be0
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