summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core: Remove usage of unicornGravatar Lioncash2020-11-038-412/+15
| | | | | | | | Unicorn long-since lost most of its use, due to dynarmic gaining support for handling most instructions. At this point any further issues encountered should be used to make dynarmic better. This also allows us to remove our dependency on Python.
* Merge pull request #4878 from bunnei/unload-nrrGravatar bunnei2020-11-031-1/+15
|\ | | | | hle: service: ldr: Implement UnloadNrr.
| * hle: service: ldr: Implement UnloadNrr.Gravatar bunnei2020-10-311-1/+15
| | | | | | | | - Used by Final Fantasy X/X-2 HD Remaster.
* | Rename to align with switchbrew and remove gpu function (#4714)Gravatar Levi Behunin2020-11-012-16/+10
|/ | | | | * Rename to align with switchbrew * Rename to align with switchbrew and remove gpu function that checks if clearing should be done.
* video_core: unbreak -Werror in NVDEC with ClangGravatar Jan Beich2020-10-301-1/+1
| | | | | | src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp:41:15: error: unused variable 'OutOfMemory' [-Werror,-Wunused-const-variable] constexpr u32 OutOfMemory{static_cast<u32>(-12)}; ^
* kernel/process: Add missing <ctime> includeGravatar Morph2020-10-291-0/+1
| | | | Fixes compilation on MSVC
* Merge pull request #4835 from lat9nq/rng-default-timeGravatar bunnei2020-10-281-1/+1
|\ | | | | kernel: Use the current time as the default RNG seed
| * kernel: Use the current time as the default RNG seedGravatar lat9nq2020-10-261-1/+1
| | | | | | | | Use the current time, not zero, as the default RNG seed.
* | Merge pull request #4846 from lioncash/service-fnGravatar bunnei2020-10-285-1/+7
|\ \ | | | | | | service: Update function tables
| * | service: Update function tablesGravatar Lioncash2020-10-275-1/+7
| | | | | | | | | | | | Updates function tables according to info on SwitchBrew.
* | | hle/kernel: Remove unused registered_core_threads to fix data racesGravatar ReinUsesLisp2020-10-271-5/+0
|/ / | | | | | | | | This member was only used on asserts and it triggered data races. Remove it to fix them.
* | Merge pull request #4729 from ameerj/nvdec-prodGravatar bunnei2020-10-2612-288/+475
|\ \ | | | | | | video_core: NVDEC Implementation
| * | video_core: NVDEC ImplementationGravatar ameerj2020-10-2612-288/+475
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>
* | Merge pull request #4832 from bunnei/cpu-manager-microprofile-fixGravatar bunnei2020-10-261-0/+2
|\ \ | | | | | | core: cpu_manager: Add missing call to MicroProfileOnThreadExit().
| * | core: cpu_manager: Add missing call to MicroProfileOnThreadExit().Gravatar bunnei2020-10-261-0/+2
| |/ | | | | | | - Fixes an occasional crash when trying to launch subsequent games.
* | Merge pull request #4833 from bunnei/timezonemanager-explicitGravatar bunnei2020-10-261-1/+1
|\ \ | | | | | | hle: services: TimeZoneContentManager: This can be made explicit.
| * | hle: services: TimeZoneContentManager: This can be made explicit.Gravatar bunnei2020-10-261-1/+1
| |/
* | Merge pull request #4834 from lioncash/copy-fnGravatar bunnei2020-10-262-3/+3
|\ \ | |/ |/| controller: Pass ControllerParameters by reference in ReconfigureControllers()
| * controller: Pass ControllerParameters by reference in ReconfigureControllers()Gravatar Lioncash2020-10-262-3/+3
| | | | | | | | Prevents unnecessary copies and heap reallocations from occurring.
* | Merge pull request #4828 from lioncash/lockguardGravatar Rodrigo Locatti2020-10-251-1/+1
|\| | | | | general: Use template deduction guides for lock_guard
| * general: Use template deduction guides for lock_guardGravatar Lioncash2020-10-251-1/+1
| | | | | | | | Same behavior, less code.
* | Merge pull request #4792 from bunnei/rtc-fixGravatar bunnei2020-10-228-189/+324
|\ \ | |/ |/| service: time: Update current time with changes to RTC setting.
| * service: time: Update current time with changes to RTC setting.Gravatar bunnei2020-10-128-189/+324
| | | | | | | | - This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs.
* | core: Fix clang build pt.3Gravatar Lioncash2020-10-213-14/+4
| | | | | | | | Should finally resolve building with clang.
* | core: Fix clang build pt.2Gravatar Lioncash2020-10-201-2/+5
| | | | | | | | Resolves the clang build issue in a more unintrusive way.
* | Revert "core: Fix clang build"Gravatar bunnei2020-10-2083-667/+483
| |
* | kernel: Fix build with recent compiler flag changesGravatar Lioncash2020-10-201-4/+8
| | | | | | | | | | This slipped through the cracks due to another change being merged before the compiler flag changes.
* | Merge pull request #4796 from lioncash/clangGravatar LC2020-10-2083-483/+667
|\ \ | | | | | | core: Fix clang build
| * | core: Fix clang buildGravatar Lioncash2020-10-1783-483/+667
| | | | | | | | | | | | | | | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* | | Merge pull request #4390 from ogniK5377/get-applet-inf-stubGravatar bunnei2020-10-201-1/+11
|\ \ \ | | | | | | | | nifm: GetAppletInfo stub
| * | | Added remaining paramsGravatar David Marcec2020-10-201-1/+4
| | | |
| * | | nifm: GetAppletInfo stubGravatar David Marcec2020-10-201-1/+8
| | | | | | | | | | | | | | | | Fixes crash for Catherine Full Body
* | | | Merge pull request #4788 from ReinUsesLisp/lockfree-host-threadGravatar bunnei2020-10-191-28/+38
|\ \ \ \ | |/ / / |/| | | kernel: Implement host thread register methods without locking
| * | | kernel: Implement host thread register methods without lockingGravatar ReinUsesLisp2020-10-131-28/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Locks on GetCurrentHostThreadID were causing performance issues according to Visual Studio's profiler. It was consuming twice the time as arm_interface.Run(). The cost was not in the function itself but in the lockinig it required. Reimplement these functions using atomics and static storage instead of an unordered_map. This is a side effect to avoid locking and using linked lists for reads. Replace unordered_map with a linear search.
* | | | Merge pull request #4785 from Morph1984/fs-hadesGravatar bunnei2020-10-191-2/+3
|\ \ \ \ | | | | | | | | | | filesystem: Fix CreateDirectory and DeleteFile
| * | | | filesystem: Fix CreateDirectory and DeleteFileGravatar Morph2020-10-131-2/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | Add a check if dir is nullptr (does not exist) Fixes save game creation in Hades
* | | | Merge pull request #4802 from lioncash/bcatGravatar bunnei2020-10-191-7/+7
|\ \ \ \ | | | | | | | | | | core: Add boxcat sources with target_sources
| * | | | core: Add boxcat sources with target_sourcesGravatar Lioncash2020-10-181-7/+7
| | | | | | | | | | | | | | | | | | | | Same behavior, minus a script variable.
* | | | | Merge pull request #4783 from bunnei/nvdrv-freespaceGravatar bunnei2020-10-182-0/+25
|\ \ \ \ \ | |/ / / / |/| | | | hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.
| * | | | hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.Gravatar bunnei2020-10-122-0/+25
| | |_|/ | |/| | | | | | | | | | - This is used by Super Mario 3D All-Stars.
* | | | Merge pull request #4801 from lioncash/missing-boundGravatar bunnei2020-10-171-1/+1
|\ \ \ \ | | | | | | | | | | mii/manager: Make use of unused lower bound in GetRandomValue()
| * | | | mii/manager: Make use of unused lower bound in GetRandomValue()Gravatar Lioncash2020-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the lower bound wasn't being used and zero was being used as the lower bound every time this function was called. This affects the outcome of some of the randomized entries a little bit, for example, the lower-bound for beard and mustache flags was supposed to be 1, not 0. Aside from these cases, the bug didn't affect anything else.
* | | | | service: bcat: Check client connection before interacting with socket.Gravatar bunnei2020-10-161-0/+10
|/ / / / | | | | | | | | | | | | - Fixes a crash when BCAT service is offline.
* | | | Merge pull request #4784 from bunnei/cancelbufferGravatar bunnei2020-10-153-14/+53
|\ \ \ \ | | | | | | | | | | hle: service: vi: Implement BufferQueue::CancelBuffer.
| * | | | hle: service: vi: Implement BufferQueue::CancelBuffer.Gravatar bunnei2020-10-133-14/+53
| | |_|/ | |/| | | | | | | | | | - This is used by Super Mario 3D All-Stars.
* / | | service: acc: Stub IManagerForApplication::StoreOpenContext.Gravatar bunnei2020-10-141-1/+7
|/ / / | | | | | | | | | - Used by Super Mario 3D All-Stars.
* | / core/CMakeLists: Make some warnings errorsGravatar Lioncash2020-10-1328-132/+133
| |/ |/| | | | | | | | | | | | | | | Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
* | Merge pull request #3929 from FearlessTobi/ticket-keysGravatar bunnei2020-10-122-32/+30
|\ \ | |/ |/| file_sys/nsp: Make SetTicketKeys actually do something
| * file_sys/nsp: Make SetTicketKeys actually do somethingGravatar FearlessTobi2020-07-182-32/+30
| | | | | | | | | | Previously, the method wasn't modifying any class state and therefore not having any effects when called. Since this has been the case for a very long time now, I'm not sure if we couldn't just remove this method altogether.
* | Merge pull request #4736 from Morph1984/home-button-input-protection-stubGravatar bunnei2020-10-074-2/+50
|\ \ | | | | | | hid: Stub HomeButtonInputProtection service commands