Zach Hilman
1f01627bbc
savedata_factory: Expose accessors for SaveDataSpace
7 years ago
Zach Hilman
706f466e9f
loader/nro: Call RegisterRomFS from Load
Allows NRO homebrew to use the RomFS in the ASET section.
7 years ago
Zach Hilman
7c8d9d5960
control_metadata: Add GetRawBytes function to NACP
Returns the raw bytes of the NACP file. Needed for GetApplicationControlData which returns the raw, unprocessed NACP to the game.
7 years ago
Frederic L
cbe1bbf1bd
file_sys/patch_manager: Remove unnecessary if-statements ( #1586 )
* remove unnecessary if-statements
* Addressed feedback
7 years ago
Zach Hilman
74802ed32a
key_manager: Use isxdigit instead of isdigit when reading key file
Crypto revisions are hex numbers and this function only checks if the string is valid for stoul in base 16, so it should be isxdigit.
7 years ago
Zach Hilman
bd78dc0c29
loader/nsp: Move secondary loader initialization to constructor
Prevents nullptr bug when trying to dump the RomFS of an NSP resulting from secondary_loader not being initialized.
7 years ago
DeeJayBro
d29877e73e
service/filesystem: Add DirectoryDelete & DirectoryDeleteRecursively
7 years ago
Lioncash
2aa6e317d6
svc: Localize the GetInfo enum class to the function itself
Nothing from this enum is intended to be used outside of this function.
7 years ago
Lioncash
9bb7bc911f
svc: Implement svcGetInfo command 0xF0000002
This retrieves:
if (curr_thread == handle_thread) {
result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks);
} else if (curr_thread == handle_thread && sub_id == current_core_index) {
result = hardware_tick_count - last_context_switch_ticks;
}
7 years ago
bunnei
c86d76d65c
ldr: Partially implement LoadNro.
- This is an incomplete implementation. It was tested with Super Mario Party.
7 years ago
bunnei
bdb2835028
process: LoadModule should clear JIT instruction cache.
7 years ago
bunnei
59b8f91cb2
Kernel/Memory: Added a function to first a suitable guest address at which to allocate a region of a given size.
7 years ago
bunnei
ae5b0d437f
nro: Make LoadNro method accessible outside of apploader code.
7 years ago
Zach Hilman
0bb4dbc74b
ips_layer: Use rle_size instead of data_size in RLE patch application
Prevents a potential bug when using RLE records in an IPS patch.
7 years ago
Lioncash
64968341b7
service/usb: Update service function tables
Updated based off the information provided by Hexkyz on Switchbrew.
7 years ago
Lioncash
9c03c5ac8a
service/acc: Move fallback image to file scope
This is just flat data, so it doesn't really need to be in the function
itself. This also allows deduplicating the constant for the backup size
in GetImageSize().
7 years ago
Lioncash
6da246b0c2
service/acc: Silence compiler warnings
Silences compiler warnings related to truncation. This also introduces a
small helper function to perform the clamping of the image size.
7 years ago
Lioncash
8eec717cce
service/acc: Early return in failure case in LoadImage()
Allows unindenting the other branch's code.
7 years ago
Lioncash
dd17fc6213
kernel/errors: Remove now-unused, unnecessary, error codes
Now that we've gotten the innaccurate error codes out of the way, we can
finally toss away a bunch of these, trimming down the error codes to
ones that are actually used and knocking out two TODO comments.
7 years ago
Lioncash
815d526a6a
kernel/shared_memory: Return ERR_INVALID_MEMORY_PERMISSIONS instead of ERR_INVALID_COMBINATION
This is more consistent with what the kernel does.
7 years ago
Lioncash
2438be15a9
kernel/server_port: Simplify emptiness check within ShouldWait()
7 years ago
Lioncash
1bec1b6e99
kernel/server_port: Change error case return value in Accept() to ERR_NOT_FOUND
This is what the kernel does in this instance.
7 years ago
Lioncash
1206987215
kernel/error: Remove leftover 3DS error codes
These are now entirely unused and can be removed.
7 years ago
Lioncash
fc5b2b9f14
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
e71849e099
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
ad85a2da06
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
7748fd0e43
kernel/error: Add error code for closed sessions
The kernel appears to return 0xF601 for this case.
7 years ago
Lioncash
94daae2847
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
e89f14a0af
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
b34685863a
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
eb1e5a40e9
perf_stats: Remove unused variable within DoFrameLimiting()
This hasn't been used since fc6901c205
7 years ago
Lioncash
8e4c18f8b1
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
b932d4b420
vfs: Handle failure of file reading within VfsRawCopy()
Also gets rid of an unused variable.
7 years ago
Lioncash
c2b6cc4692
key_manager: Remove unused variable in DeriveBase()
7 years ago
Zach Hilman
1977ed3d9f
profile_manager: Create save data if it doesn't exist on use
7 years ago
Zach Hilman
da04134ce6
acc: Fix account UUID duplication error
7 years ago
Zach Hilman
e1784822f2
configure_system: Clear selection after user delete
7 years ago
Zach Hilman
8bdf2fe7b7
profile_manager: Load user icons, names, and UUIDs from system save
7 years ago
Zach Hilman
fe98903bfe
acc: Load user images from config dir
7 years ago
Zach Hilman
89d1743f1f
am: Pass current user UUID to launch parameters
7 years ago
Zach Hilman
9fbe44d36e
profile_manager: Load users from emulator settings
7 years ago
Zach Hilman
64595bddaf
settings: Add users and current_user settings and remove username
7 years ago
David
0d7783ba66
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
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