summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: Remove unused boost inclusions where applicableGravatar Lioncash2018-10-302-3/+0
| | | | Cleans up unused includes and trims off some dependencies on externals.
* global: Use std::optional instead of boost::optional (#1578)Gravatar Frederic L2018-10-3024-144/+141
| | | | | | | | | | | | | | | | * get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
* Merge pull request #1621 from lioncash/ipcGravatar bunnei2018-10-293-6/+9
|\ | | | | hle_ipc: Make GetDomainMessageHeader return a regular pointer
| * hle_ipc: Add member function for querying the existence of a domain headerGravatar Lioncash2018-10-293-3/+6
| | | | | | | | Gets rid of the need to call the getter and then check for null.
| * hle_ipc: Make GetDomainMessageHeader return a regular pointerGravatar Lioncash2018-10-292-3/+3
| | | | | | | | | | Nothing requires the shared owner ship here, so we can just return a plain pointer.
* | core: Make System references const where applicableGravatar Lioncash2018-10-282-3/+3
| |
* | core: Add missing const variants of getters for the System classGravatar Lioncash2018-10-282-10/+49
|/ | | | | | Many of the Current<Thing> getters (as well as a few others) were missing const qualified variants, which makes it a pain to retrieve certain things from const qualified references to System.
* Merge pull request #1593 from lioncash/svcGravatar bunnei2018-10-286-35/+128
|\ | | | | svc: Implement svcGetInfo command 0xF0000002
| * svc: Localize the GetInfo enum class to the function itselfGravatar Lioncash2018-10-262-32/+31
| | | | | | | | Nothing from this enum is intended to be used outside of this function.
| * svc: Implement svcGetInfo command 0xF0000002Gravatar Lioncash2018-10-266-4/+98
| | | | | | | | | | | | | | | | | | | | 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; }
* | file_sys/patch_manager: Remove unnecessary if-statements (#1586)Gravatar Frederic L2018-10-281-7/+6
| | | | | | | | | | | | * remove unnecessary if-statements * Addressed feedback
* | Merge pull request #1598 from DeeJayBro/delete-directoryGravatar bunnei2018-10-281-2/+26
|\ \ | | | | | | service/filesystem: Implemented DeleteDirectory & DeleteDirectoryRecursive
| * | service/filesystem: Add DirectoryDelete & DirectoryDeleteRecursivelyGravatar DeeJayBro2018-10-271-2/+26
| |/
* | Merge pull request #1600 from DarkLordZach/nsp-secondary-loader-fixGravatar bunnei2018-10-281-17/+20
|\ \ | | | | | | loader/nsp: Move secondary loader initialization to constructor
| * | loader/nsp: Move secondary loader initialization to constructorGravatar Zach Hilman2018-10-271-17/+20
| |/ | | | | | | Prevents nullptr bug when trying to dump the RomFS of an NSP resulting from secondary_loader not being initialized.
* / key_manager: Use isxdigit instead of isdigit when reading key fileGravatar Zach Hilman2018-10-271-1/+1
|/ | | | 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.
* Merge pull request #1430 from DarkLordZach/remove-promote-dirGravatar bunnei2018-10-2617-95/+1
|\ | | | | vfs: Remove InterpretAsDirectory and related functions
| * vfs: Remove InterpretAsDirectory and related functionsGravatar Zach Hilman2018-10-1917-95/+1
| | | | | | | | 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.
* | Merge pull request #1569 from lioncash/amiiboGravatar bunnei2018-10-252-3/+5
|\ \ | | | | | | yuzu/main: Notify user of loading errors with Amiibo data
| * | yuzu/main: Notify user of loading errors with Amiibo dataGravatar Lioncash2018-10-242-3/+5
| | | | | | | | | | | | | | | We shouldn't silently continue if loading failed, since the general assumption is that no messages showing up implicitly indicates success.
* | | ldr: Partially implement LoadNro.Gravatar bunnei2018-10-251-3/+49
| | | | | | | | | | | | - This is an incomplete implementation. It was tested with Super Mario Party.
* | | process: LoadModule should clear JIT instruction cache.Gravatar bunnei2018-10-251-0/+6
| | |
* | | Kernel/Memory: Added a function to first a suitable guest address at which ↵Gravatar bunnei2018-10-252-0/+28
| | | | | | | | | | | | to allocate a region of a given size.
* | | nro: Make LoadNro method accessible outside of apploader code.Gravatar bunnei2018-10-252-6/+18
| | |
* | | ips_layer: Use rle_size instead of data_size in RLE patch applicationGravatar Zach Hilman2018-10-251-1/+1
| | | | | | | | | | | | Prevents a potential bug when using RLE records in an IPS patch.
* | | Merge pull request #1579 from lioncash/usbGravatar bunnei2018-10-251-21/+22
|\ \ \ | | | | | | | | service/usb: Update service function tables
| * | | service/usb: Update service function tablesGravatar Lioncash2018-10-241-21/+22
| | | | | | | | | | | | | | | | Updated based off the information provided by Hexkyz on Switchbrew.
* | | | Merge pull request #1576 from lioncash/acc-warnGravatar bunnei2018-10-251-25/+27
|\ \ \ \ | | | | | | | | | | service/acc: Silence compiler truncation warnings
| * | | | service/acc: Move fallback image to file scopeGravatar Lioncash2018-10-241-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
| * | | | service/acc: Silence compiler warningsGravatar Lioncash2018-10-241-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Silences compiler warnings related to truncation. This also introduces a small helper function to perform the clamping of the image size.
| * | | | service/acc: Early return in failure case in LoadImage()Gravatar Lioncash2018-10-241-8/+8
| |/ / / | | | | | | | | | | | | Allows unindenting the other branch's code.
* | | | Merge pull request #1577 from lioncash/errGravatar bunnei2018-10-255-34/+16
|\ \ \ \ | | | | | | | | | | kernel/error: Amend error return code values
| * | | | kernel/errors: Remove now-unused, unnecessary, error codesGravatar Lioncash2018-10-242-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | kernel/shared_memory: Return ERR_INVALID_MEMORY_PERMISSIONS instead of ↵Gravatar Lioncash2018-10-241-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ERR_INVALID_COMBINATION This is more consistent with what the kernel does.
| * | | | kernel/server_port: Simplify emptiness check within ShouldWait()Gravatar Lioncash2018-10-241-1/+1
| | | | |
| * | | | kernel/server_port: Change error case return value in Accept() to ERR_NOT_FOUNDGravatar Lioncash2018-10-242-3/+1
| | | | | | | | | | | | | | | | | | | | This is what the kernel does in this instance.
| * | | | kernel/error: Remove leftover 3DS error codesGravatar Lioncash2018-10-241-5/+0
| | | | | | | | | | | | | | | | | | | | These are now entirely unused and can be removed.
| * | | | kernel/svc: Amend returned error code for invalid priorities in CreateThreadGravatar Lioncash2018-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Like with the previous change, the kernel doesn't return NOT_AUTHORIZED here. It returns INVALID_THREAD_PRIORITY.
| * | | | kernel/svc: Move and correct returned error code for invalid thread ↵Gravatar Lioncash2018-10-241-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | kernel/error: Add error code for invalid pointersGravatar Lioncash2018-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | The kernel appears to return 0xE601 for this situation. Particularly in svcWaitSynchronization, svcReplyAndReceive, and svcGetThreadContext
| * | | | kernel/error: Add error code for closed sessionsGravatar Lioncash2018-10-241-1/+3
| |/ / / | | | | | | | | | | | | The kernel appears to return 0xF601 for this case.
* | | | Merge pull request #1570 from lioncash/optionalGravatar bunnei2018-10-243-43/+48
|\ \ \ \ | | | | | | | | | | profile_manager: Use std::optional instead of boost::optional
| * | | | profile_manager: Use std::optional instead of boost::optionalGravatar Lioncash2018-10-243-43/+48
| |/ / / | | | | | | | | | | | | | | | | Now that we can actually use std::optional on macOS, we don't need to continue using boost::optional here.
* | | | Merge pull request #1564 from lioncash/npadGravatar bunnei2018-10-241-2/+3
|\ \ \ \ | | | | | | | | | | npad: Remove unused controller variable from OnInit()
| * | | | npad: Remove unused controller variable from OnInit()Gravatar Lioncash2018-10-241-2/+3
| | |/ / | |/| | | | | | | | | | | | | | This also gets rid of variable shadowing related to the lambda parameter a little bit below this code as well.
* | | | Merge pull request #1563 from lioncash/frameGravatar bunnei2018-10-241-4/+0
|\ \ \ \ | | | | | | | | | | perf_stats: Remove unused variable within DoFrameLimiting()
| * | | | perf_stats: Remove unused variable within DoFrameLimiting()Gravatar Lioncash2018-10-241-4/+0
| |/ / / | | | | | | | | | | | | This hasn't been used since ba8ff096fdc9f7ab101851c4cd06c3244a7d84c3
* | | | Merge pull request #1562 from lioncash/aocGravatar bunnei2018-10-241-3/+3
|\ \ \ \ | | | | | | | | | | aoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() function
| * | | | aoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() functionGravatar Lioncash2018-10-241-3/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #1561 from lioncash/fsGravatar bunnei2018-10-242-3/+6
|\ \ \ \ | |_|/ / |/| | | file_sys: Remove unused variables