aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2018-10-13partition_data_manager: Remove unused std::map instance within DecryptPackage2()Lioncash
Aside from emplacing elements into the map, the map itself is never actually queried for contained data.
2018-10-13partition_data_manager: Take package2_keys by const referenceLioncash
These are only ever read from, so we don't need to make a copy of all the keys here.
2018-10-13partition_data_manager: Move IV data to where it's needed in DecryptPackage2()Lioncash
Given it's only used in one spot and has a fairly generic name, we can just specify it directly in the function call. This also the benefit of automatically moving it.
2018-10-13partition_data_manager: Remove commented out codeLioncash
Commented out code shouldn't be left in without a reason indicating why in a comment.
2018-10-13key_manager/partition_data_manager: Silence truncation compiler warningsLioncash
2018-10-13partition_data_manager: Dehardcode array boundsLioncash
Instead, we can make it part of the type and make named variables for them, so they only require one definition (and if they ever change for whatever reason, they only need to be changed in one spot).
2018-10-13partition_data_manager: Take VirtualFile by const reference in constructorLioncash
Given the VirtualFile instance isn't stored into the class as a data member, or written to, this can just be turned into a const reference, as the constructor doesn't need to make a copy of it.
2018-10-13partition_data_manager: Amend constructor initializer list orderLioncash
Orders the members in the exact order they would be initialized. This also prevents compiler warnings about this sort of thing.
2018-10-13partition_data_manager: Remove unused includesLioncash
Gets unused includes out of the headers and moves them into the cpp file if they're used there instead.
2018-10-13key_manager: Use std::vector's insert() instead of std::copy with a ↵Lioncash
back_inserter If the data is unconditionally being appended to the back of a std::vector, we can just directly insert it there without the need to insert all of the elements one-by-one with a std::back_inserter.
2018-10-13key_manager: Brace long conditional bodyLioncash
If a conditional (or it's body) travels more than one line, it should be braced.
2018-10-13key_manager: Don't assume file seeks and reads will always succeedLioncash
Given the filesystem should always be assumed to be volatile, we should check and bail out if a seek operation isn't successful. This'll prevent potentially writing/returning garbage data from the function in rare cases. This also allows removing a check to see if an offset is within the bounds of a file before perfoming a seek operation. If a seek is attempted beyond the end of a file, it will fail, so this essentially combines two checks into one in one place.
2018-10-13key_manager: Remove unnecessary seek in DeriveSDSeed()Lioncash
Given the file is opened a few lines above and no operations are done, other than check if the file is in a valid state, the read/write pointer will always be at the beginning of the file.
2018-10-12patch_manager: Move non-Program RomFS patch log to DebugZach Hilman
Normal Program-type patches will still be logged to aid in debugging, but for others (mainly Control), it was moved to Debug.
2018-10-12content_archive: Move get key log to Trace levelZach Hilman
Avoids printing live keys in the general log.
2018-10-12Merge pull request #1409 from DarkLordZach/key-derivationbunnei
crypto: Add support for full key derivation
2018-10-12Merge pull request #1483 from lioncash/codesetbunnei
kernel/process: Make CodeSet a regular non-inherited object
2018-10-12Merge pull request #1481 from lioncash/typobunnei
svc: Fix typos in sanitizing checks for MapMemory/UnmapMemory
2018-10-12Merge pull request #1467 from ogniK5377/svcbreak-type-fixbunnei
Fixed incorrect types for svcBreak
2018-10-12kernel/process: Make CodeSet a regular non-inherited objectLioncash
These only exist to ferry data into a Process instance and end up going out of scope quite early. Because of this, we can just make it a plain struct for holding things and just std::move it into the relevant function. There's no need to make this inherit from the kernel's Object type.
2018-10-12Merge pull request #1478 from ogniK5377/remap-invalidhandle-remapbunnei
Passing an invalid nmap handle to Remap should throw an error
2018-10-12Merge pull request #1482 from lioncash/initbunnei
thread: Remove unnecessary memset from ResetThreadContext()
2018-10-12Merge pull request #1479 from ogniK5377/nmap-revampedbunnei
Added error codes for nvmap
2018-10-12thread: Remove unnecessary memset from ResetThreadContext()Lioncash
Regular value initialization is adequate here for zeroing out data. It also has the benefit of not invoking undefined behavior if a non-trivial type is ever added to the struct for whatever reason.
2018-10-12Returned an error before processing other remapsDavid Marcec
2018-10-12Made the minimum alignment more clearDavid Marcec
2018-10-12svc: Fix typos in sanitizing checks for MapMemory/UnmapMemoryLioncash
2018-10-12WipDavid Marcec
2018-10-11Merge pull request #1474 from ogniK5377/hwopus-decodeinterleavedwithperformancebunnei
HwOpus, Implemented DecodeInterleavedWithPerformance
2018-10-11Merge pull request #1472 from lioncash/sanbunnei
svc: Add missing address range sanitizing checks to MapMemory/UnmapMemory
2018-10-12Dynamically decide handheld variant based on supported npad id priorityDavid Marcec
Kirby input still doesn't work, should fix a lot of other games
2018-10-11Added error codes for nvmapDavid Marcec
2018-10-11Passing an invalid nmap handle to Remap should throw an errorDavid Marcec
Added error for invalid nmap handles
2018-10-11nvhost_as_gpu: Flush CPU VAddr on UnmapBuffer.bunnei
2018-10-10core/CMakeLists: Make all web_service-related libraries privateLioncash
Now that all external dependencies are hidden, we can remove json-headers from the publically linked libraries, as the use of this library is now completely hidden from external users of the web_service library. We can also make the web_services library private as well, considering it's not a requirement. If a library needs to link in web_service, it should be done explicitly -- not via indirect linking.
2018-10-11HwOpus, Implemented DecodeInterleavedWithPerformanceDavid Marcec
Used by sonic ages
2018-10-10core/CMakeLists: Use target_compile_definitions instead of add_definitions ↵Lioncash
for specifying ENABLE_WEB_SERVICE Avoids introducing the definition to the whole directory space and localizes it to being added to the library that needs it.
2018-10-10svc: Add missing address range sanitizing checks to MapMemory/UnmapMemoryLioncash
This adds the missing address range checking that the service functions do before attempting to map or unmap memory. Given that both service functions perform the same set of checks in the same order, we can wrap these into a function and just call it from both functions, which deduplicates a little bit of code.
2018-10-11Added BeginPermitVibrationSession and EndPermitVibrationSessionDavid Marcec
Used by Mario Party
2018-10-10Added GetLedPattern and HandheldVariantDavid Marcec
HandheldVariant is for specific games which expect handheld controllers to be at position 8(kirby), however this doesn't fix all games as some games require handhelds to be at position 0(snipperclips)
2018-10-10kernel/thread: Use a regular pointer for the owner/current processLioncash
There's no real need to use a shared pointer in these cases, and only makes object management more fragile in terms of how easy it would be to introduce cycles. Instead, just do the simple thing of using a regular pointer. Much of this is just a hold-over from citra anyways. It also doesn't make sense from a behavioral point of view for a process' thread to prolong the lifetime of the process itself (the process is supposed to own the thread, not the other way around).
2018-10-10Kirby expects handheld controllers to be at position 8David Marcec
2018-10-09Merge pull request #1461 from lioncash/warnbunnei
ips_layer: Silence truncation and conversion warnings
2018-10-09Merge pull request #1464 from lioncash/uniquebunnei
patch_manager: Return a std::unique_ptr from ParseControlNCA() and GetControlMetadata() instead of a std::shared_ptr
2018-10-10Added the ability to "disconnect" individual npadsDavid Marcec
Fixes arms
2018-10-10Removed unneeded forward declarationsDavid Marcec
2018-10-10Addressed changes for better hidDavid Marcec
2018-10-10"Better Hid" rework part 1David Marcec
2018-10-10Changed all casts in svc_wrap.h to be static_cast insteadDavid Marcec
2018-10-10Use a better name than "dont_kill_application"David Marcec
signal_debugger seems like a more fitting name