summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | kernel/errors: Clean up error codesGravatar Lioncash2018-11-162-62/+32
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to PR 1706, which cleans up the error codes for the filesystem code, but done for the kernel error codes. This removes the ErrCodes namespace and specifies the errors directly. This also fixes up any straggling lines of code that weren't using the named error codes where applicable.
* | | | | | | Merge pull request #1638 from FreddyFunk/SetMemoryPermission-StubbedGravatar Mat M2018-11-162-1/+48
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Implement SetMemoryPermission
| * | | | | | | Implement SetMemoryPermissionGravatar Frederic Laing2018-11-061-3/+39
| | | | | | | |
| * | | | | | | Stubbed SetMemoryPermissionGravatar Frederic Laing2018-11-032-1/+12
| | |_|/ / / / | |/| | | | |
* | | | | | | Merge pull request #1632 from DarkLordZach/keys-manager-optimizationsGravatar bunnei2018-11-1610-14/+34
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | game_list: Optimize game list refresh
| * | | | | | | filesystem: Cache RegisteredCacheUnion instead of constructing on demandGravatar Zach Hilman2018-11-012-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents unnecessary re-reads of the metadata and unnecessary temporary objects.
| * | | | | | | file_sys: Use common KeyManager in NCA container typesGravatar Zach Hilman2018-11-016-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creates a single KeyManager for the entire container and then passes it into the NCA constructor, eliminating several unnecessary KeyManager reads.
| * | | | | | | content_archive: Add optional KeyManager parameter to constructorGravatar Zach Hilman2018-11-012-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows resuing a common KeyManager when a large amount of NCAs are handled by the same class. Should the parameter not be provided, a new KeyManager will be constructed, as was the default behavior prior to this.
* | | | | | | | Merge pull request #1706 from lioncash/file-errGravatar bunnei2018-11-164-33/+16
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | file_sys/errors: Clean up error code values
| * | | | | | | | file_sys/errors: Remove currently unused filesystem error codesGravatar Lioncash2018-11-161-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than keeping around unused values, we can just introduce them as needed.
| * | | | | | | | file_sys/errors: Get rid of the ErrCodes namespaceGravatar Lioncash2018-11-161-17/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's no real point to keeping the separate enum around, especially given the name of the error code itself is supposed to document what the value actually represents.
| * | | | | | | | file_sys/errors: Extract FS-related error codes to file_sys/errors.hGravatar Lioncash2018-11-164-14/+19
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Keeps filesystem-related error codes in one spot.
* / | | | | | | Added SetIsPalmaAllConnectable, SetPalmaBoostModeGravatar David Marcec2018-11-171-2/+14
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Currently unclear what these do yet, will be researched at a later time when we want to implement palma.
* | | | | | | Fixed priority switching edge case for handheld (#1675)Gravatar David2018-11-151-12/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed priority switching edge case for handheld We accidently used controller index instead of npad id * Moved NPadIdToIndex
* | | | | | | Merge pull request #1699 from DarkLordZach/deterministic-rng-3Gravatar bunnei2018-11-151-1/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | csrng: Use random integer distribution instead of raw engine
| * | | | | | | csrng: Use random integer distribution instead of raw engineGravatar Zach Hilman2018-11-151-1/+2
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | Prevents returning the same value every single call.
* | | | | | | Merge pull request #1687 from lioncash/deduplicationGravatar bunnei2018-11-152-37/+13
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | kernel/thread: Deduplicate scheduler switching code
| * | | | | | | kernel/thread: Deduplicate scheduler switching codeGravatar Lioncash2018-11-142-37/+13
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | The code in both places was the same verbatim, so we can extract it to a function to deduplicate the logic.
* | | | | | | Merge pull request #1618 from DarkLordZach/dump-nsoGravatar bunnei2018-11-157-7/+48
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | patch_manager: Add support for dumping uncompressed NSOs
| * | | | | | | patch_manager: Add support for dumping decompressed NSOsGravatar Zach Hilman2018-10-292-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When enabled in settings, PatchNSO will dump the unmodified NSO that it was passed to a file named <build id>.nso in the dump root for the current title ID.
| * | | | | | | settings: Add setting to control NSO dumpingGravatar Zach Hilman2018-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds UI option in Debug > Dump section, with the idea later things to be dumped (i.e. other game data or textures, etc) will use the same group box.
| * | | | | | | bis_factory: Add getter for mod dump root for a title IDGravatar Zach Hilman2018-10-294-6/+33
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | Equates to yuzu_dir/dump/<title id>/
* | | | | | | Merge pull request #1691 from lioncash/audrenGravatar bunnei2018-11-151-3/+3
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | service/audren_u: Forward RequestUpdateAuto through the same function as RequestUpdate
| * | | | | | service/audren_u: Forward RequestUpdateAuto through the same function as ↵Gravatar Lioncash2018-11-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RequestUpdate Based off RE, they both currently go through the same codepath with no difference in behavior.
* | | | | | | Merge pull request #1697 from lioncash/accGravatar bunnei2018-11-142-15/+23
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | acc/profile_manager: Minor cleanup-related changes
| * | | | | | | profile_manager: Replace iterative loop with a ranged-for loop in ↵Gravatar Lioncash2018-11-141-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ParseUserSaveFile()
| * | | | | | | profile_manager: Move UUID Format function definitions into the cpp fileGravatar Lioncash2018-11-142-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids relying on fmt always being indirectly included.
* | | | | | | | Merge pull request #1696 from lioncash/acc-condGravatar bunnei2018-11-141-2/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | service/acc: Correct error case within TrySelectUserWithoutInteraction()
| * | | | | | | | service/acc: Correct error case within TrySelectUserWithoutInteraction()Gravatar Lioncash2018-11-141-2/+4
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | empty() in this case will always return false, since the returned container is a std::array. Instead, check if all given users are invalid before returning the error code.
* | | | | | | | Merge pull request #1690 from lioncash/nfpGravatar bunnei2018-11-141-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | nfp: Correct erroneous sizeof expression within GetTagInfo()
| * | | | | | | | nfp: Correct erroneous sizeof expression within GetTagInfo()Gravatar Lioncash2018-11-141-1/+1
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous expression would copy sizeof(size_t) amount of bytes (8 on a 64-bit platform) rather than the full 10 bytes comprising the uuid member. Given the source and destination types are the same, we can just use an assignment here instead.
* | | | | | | | Merge pull request #1689 from lioncash/breakGravatar bunnei2018-11-141-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | hid/npad: Add missing break in switch statement within Controller_NPad::OnUpdate
| * | | | | | | | hid/npad: Add missing break in switch statement within ↵Gravatar Lioncash2018-11-141-0/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Controller_NPad::OnUpdate()
* | | | | | | | Merge pull request #1688 from lioncash/unusedGravatar bunnei2018-11-141-2/+2
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | service: Mark MakeFunctionString with the [[maybe_unused]] attribute.
| * | | | | | | service: Mark MakeFunctionString with the [[maybe_unused]] attribute.Gravatar Lioncash2018-11-141-2/+2
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When yuzu is compiled in release mode this function is unused, however, when compiled in debug mode, it's used within a LOG_TRACE statement. This prevents erroneous compilation warnings about an unused function (that isn't actually totally unused).
* | | | | | | Merge pull request #1679 from DarkLordZach/deterministic-rng-2Gravatar bunnei2018-11-144-2/+28
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | svc: Use proper random entropy generation algorithm
| * | | | | | svc: Use proper random entropy generation algorithmGravatar Zach Hilman2018-11-134-2/+28
| |/ / / / /
* | | | | | Merge pull request #1680 from lioncash/memGravatar bunnei2018-11-134-86/+98
|\ \ \ \ \ \ | | | | | | | | | | | | | | kernel/process: Migrate heap-related memory management out of the process class and into the vm manager
| * | | | | | vm_manager: Unstub GetTotalHeapUsage()Gravatar Lioncash2018-11-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we've moved all of the heap-related stuff to the VMManager class, we can unstub this function, as the necessary members are visible now.
| * | | | | | kernel/process: Migrate heap-related memory management out of the process ↵Gravatar Lioncash2018-11-134-84/+97
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | class and into the vm manager Avoids a breach of responsibilities in the interface and keeps the direct code for memory management within the VMManager class.
* | | | | | Merge pull request #1682 from lioncash/audioGravatar bunnei2018-11-131-2/+23
|\ \ \ \ \ \ | | | | | | | | | | | | | | hle/audren_u: Implement Get/SetRenderingTimeLimit
| * | | | | | hle/audren_u: Implement Get/SetRenderingTimeLimitGravatar Lioncash2018-11-131-2/+23
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | These appear to be a basic getter and setter pair, so these are fairly trivial to implement and get out of the way.
* | | | | | Merge pull request #1608 from DarkLordZach/save-data-readerGravatar bunnei2018-11-1310-16/+260
|\ \ \ \ \ \ | |/ / / / / |/| | | | | [ns|fsp_srv]: Implement various functions to boot Checkpoint
| * | | | | ns: Implement command 400: GetApplicationControlDataGravatar Zach Hilman2018-10-294-17/+75
| | | | | | | | | | | | | | | | | | Returns the raw NACP bytes and the raw icon bytes into a title-provided buffer. Pulls from Registration Cache for control data, returning all zeros should it not exist.
| * | | | | fsp_srv: Implement ISaveDataInfoReaderGravatar Zach Hilman2018-10-291-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | An object to read SaveDataInfo objects, which describe a unique save on the system. This implementation iterates through all the directories in the save data space and uses the paths to reconstruct the metadata.
| * | | | | fsp_srv: Implement command 61: OpenSaveDataInfoReaderBySaveDataSpaceIdGravatar Zach Hilman2018-10-292-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | Needed by Checkpoint. Returns an object that can iterate through all savedata on the system.
| * | | | | savedata_factory: Expose accessors for SaveDataSpaceGravatar Zach Hilman2018-10-294-14/+32
| | | | | |
| * | | | | loader/nro: Call RegisterRomFS from LoadGravatar Zach Hilman2018-10-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Allows NRO homebrew to use the RomFS in the ASET section.
| * | | | | control_metadata: Add GetRawBytes function to NACPGravatar Zach Hilman2018-10-292-0/+7
| |/ / / / | | | | | | | | | | | | | | | Returns the raw bytes of the NACP file. Needed for GetApplicationControlData which returns the raw, unprocessed NACP to the game.
* | | | | Merge pull request #1670 from DarkLordZach/deterministic-rngGravatar bunnei2018-11-124-3/+15
|\ \ \ \ \ | | | | | | | | | | | | csrng: Add config option to set RNG seed