aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2018-10-10Fixed incorrect types for svcBreakDavid Marcec
svcBreak reason should be a u32, not a u64.
2018-10-09Merge pull request #1459 from ogniK5377/breakbunnei
svcBreak, Signalling to the debugger should not kill execution
2018-10-09Merge pull request #1465 from lioncash/telemetrybunnei
telemetry_session: Minor miscellaneous changes
2018-10-09telemetry_session: Remove doxygen comment for a non-existent parameterLioncash
There's no "func" parameter, so this can just be removed.
2018-10-09telemetry_session: Add missing includesLioncash
Prevents potential compilation issues in the future by including missing headers for certain functions and types.
2018-10-09telemetry_session: Remove unimplemented FinalizeAsyncJob prototypeLioncash
This isn't implemented anywhere, so it can just be removed.
2018-10-09telemetry_session: Use a std::array in GenerateTelemetryId()Lioncash
We don't need to potentially heap-allocate a std::string instance here, given the data is known ahead of time. We can just place it within an array and pass this to the mbedtls functions.
2018-10-09patch_manager: Return a std::unique_ptr from ParseControlNCA() and ↵Lioncash
GetControlMetadata() instead of a std::shared_ptr Neither of these functions require the use of shared ownership of the returned pointer. This makes it more difficult to create reference cycles with, and makes the interface more generic, as std::shared_ptr instances can be created from a std::unique_ptr, but the vice-versa isn't possible. This also alters relevant functions to take NCA arguments by const reference rather than a const reference to a std::shared_ptr. These functions don't alter the ownership of the memory used by the NCA instance, so we can make the interface more generic by not assuming anything about the type of smart pointer the NCA is contained within and make it the caller's responsibility to ensure the supplied NCA is valid.
2018-10-09ips_layer: Avoid constructing std::vector instances where not necessaryLioncash
We can just compare the existing std::vector instance with a constexpr std::array containing the desired match. This is lighter resource-wise, as we don't need to allocate on the heap.
2018-10-09ips_layer: Remove unnecessary explicit std::pair constructor in std::arrayLioncash
Makes the layout of the array consistent, by making all elements match, instead of special-casing the first one.
2018-10-09ips_layer: Add missing includesLioncash
Adds missing includes to prevent potential compilation issues in the future. Also moves the definition of a struct into the cpp file, so that some includes don't need to be introduced within the header.
2018-10-09ips_layer: std::move data within PatchIPS() and Apply()Lioncash
We don't need to make a copy of the read data, so we can std::move it into the make_shared call here.
2018-10-09ips_layer: Silence truncation and conversion warningsLioncash
Makes type conversions explicit to avoid compiler warnings.
2018-10-09Added bitfield instead of manually checking if the bit is setDavid Marcec
2018-10-09Actual kill execution when the bit isn't set, not the other way aroundDavid Marcec
2018-10-09svcBreak, Signalling to the debugger should not kill executionDavid Marcec
When loading NROs, svcBreak is called to signal to the debugger that a new "module" is loaded. As no debugger is technically attached we shouldn't be killing the programs execution.
2018-10-08Merge pull request #1423 from DarkLordZach/romfs-file-extsbunnei
fsmitm_romfsbuild: Add support for stubbing and IPS patches in LFS
2018-10-08Merge pull request #1424 from DarkLordZach/ips-witchbunnei
ips_layer: Add support for IPSwitch executable patches
2018-10-08Merge pull request #1456 from ogniK5377/aoc-u-fixupsbunnei
Fixed assertion due to CountAddOnContent & Casting warnings
2018-10-08Merge pull request #1457 from ogniK5377/unmap-bufferbunnei
Unmapping an unmapped buffer should succeed
2018-10-08Unmapping an unmapped buffer should succeedDavid Marcec
Hardware tests show that trying to unmap an unmapped buffer already should always succeed. Hardware test was tested up to 32 iterations of attempting to unmap
2018-10-07nso/nro: Use default allocation size for arg_dataZach Hilman
2018-10-07cmd: Support passing game arguments from command lineZach Hilman
Uses -p (--program) and following string as args.
2018-10-07settings: Add program_args string settingZach Hilman
2018-10-07nso/nro: Add NSO arguments structure to data sectionZach Hilman
Only added if arguments string is non-empty and a pass is requested by loader.
2018-10-07partition_data_manager: Rename system files for hekateZach Hilman
x
2018-10-07crypto: Add PartitionDataManagerZach Hilman
Keeps track of system files for key derivation
2018-10-07key_manager: Add support for loading keys from partition dataZach Hilman
2018-10-07key_manager: Add ETicket key derivationZach Hilman
Derives titlekeys
2018-10-07key_manager: Add base key derivationZach Hilman
Derives master keys, game encryption keys, and package1/2 keys
2018-10-07key_manager: Add BIS key getterZach Hilman
2018-10-07key_manager: Add support for more keysZach Hilman
TSEC, SBK, BIS, and other Sources for proper derivation
2018-10-07key_manager: Add keyblob supportZach Hilman
2018-10-07key_manager: Add support for crypto revisions past 04Zach Hilman
2018-10-07key_manager: Add support for comments in keyfilesZach Hilman
2018-10-07vfs: Move forward declarations to separate fileZach Hilman
2018-10-07key_manager: Add support for console-specific keyfileZach Hilman
2018-10-07key_manager: Rename KEK to KekZach Hilman
2018-10-08Fixed assertion due to CountAddOnContentDavid Marcec
Word count should be 3 since we're pushing a result code and a u32. Also fixed up compiler warnings due to casting
2018-10-06Merge pull request #1396 from DarkLordZach/packed-updatesbunnei
loader: Add support for packed updates
2018-10-06Merge pull request #1448 from ogniK5377/frontend-accessbunnei
Ported #4296 from citra
2018-10-06Added forward define for ServerPortDavid Marcec
2018-10-06Ported #4296 from citraDavid Marcec
This will allow us to easily remove the use of "NFC" in "System"
2018-10-06Merge pull request #1332 from FearlessTobi/port-web-backendbunnei
Port web_service from Citra
2018-10-06kernel/mutex: Amend behavior of TransferMutexOwnership()Lioncash
This was the result of a typo accidentally introduced in e51d715700a35a8f14e5b804b6f7553c9a40888b. This restores the previous correct behavior. The behavior with the reference was incorrect and would cause some games to fail to boot.
2018-10-05thread: Make the scheduler pointer a regular pointerbalika011
Conceptually, it doesn't make sense for a thread to be able to persist the lifetime of a scheduler. A scheduler should be taking care of the threads; the threads should not be taking care of the scheduler. If the threads outlive the scheduler (or we simply don't actually terminate/shutdown the threads), then it should be considered a bug that we need to fix. Attributing this to balika011, as they opened #1317 to attempt to fix this in a similar way, but my refactoring of the kernel code caused quite a few conflicts.
2018-10-05Merge pull request #1439 from lioncash/threadbunnei
kernel/thread: Make all instance variables private
2018-10-05romfs_factory: Extract packed update setter to new functionZach Hilman
2018-10-05patch_manager: Add support for NSP packed updatesZach Hilman
Reads as Update (NSP) in add-ons
2018-10-05patch_manager: Add support for packed updatesZach Hilman
Will prefer any installed update over the packed version.