aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2021-03-02Merge pull request #5815 from comex/net-error-reformbunnei
Network error handling reform
2021-03-01core: Shutdown: Move kernel cleanup to later in shutdown.bunnei
- Fixes a shutdown crash due to a race condition with GPU still accessing memory.
2021-02-28[network] Error handling reformcomex
`network.cpp` has several error paths which either: - report "Unhandled host socket error=n" and return `SUCCESS`, or - switch on a few possible errors, log them, and translate them to Errno; the same switch statement is copied and pasted in multiple places in the code Convert these paths to use a helper function `GetAndLogLastError`, which is roughly the equivalent of one of the switch statements, but: - handling more cases (both ones that were already in `Errno`, and a few more I added), and - using OS functions to convert the error to a string when logging, so it'll describe the error even if it's not one of the ones in the switch statement. - To handle this, refactor the logic in `GetLastErrorMsg` to expose a new function `NativeErrorToString` which takes the error number explicitly as an argument. And improve the Windows version a bit. Also, add a test which exercises two random error paths.
2021-02-28Merge pull request #6007 from bunnei/ldn-errorbunnei
core: hle: ldn: Error out on call to Initialization.
2021-02-27Merge pull request #5276 from german77/gesturesMorph
HID: Implement gestures
2021-02-27Implements touch, pan, pinch and rotation gesturesgerman
2021-02-27core: hle: ldn: Error out on call to Initialization.bunnei
- Since we do not emulate LDN, returning an error here makes more sense.
2021-02-27core: Switch to unique_ptr for usage of Common::Fiber.bunnei
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer.
2021-02-27Merge pull request #5953 from bunnei/memory-refactor-1bunnei
Kernel Rework: Memory updates and refactoring (Part 1)
2021-02-26Merge pull request #5944 from Morph1984/gc-vibrationsbunnei
hid: Implement GameCube Controller Vibrations
2021-02-21hid: Implement GameCube Controller VibrationsMorph
Implements both SendVibrationGcErmCommand and GetActualVibrationGcErmCommand, and modifies GetVibrationDeviceInfo to account for additional controllers.
2021-02-21acc: Stub GetNintendoAccountUserResourceCacheForApplicationMorph
This command returns a Nintendo Account ID and writes 2 output buffers. The first output buffer is a NasUserBaseForApplication and the second output buffer is currently empty. Used by: - Pokken Tournament DX - Super Smash Bros. Ultimate - Super Nintendo Entertainment System - Nintendo Switch Online - Mario Kart 8 Deluxe
2021-02-20kernel: Fix resource release exception on exitameerj
After rewriting the resource limit, objects releasing reserved resources require a live kernel instance. This commit fixes exceptions that occur due to the kernel being destroyed before some objects released their resources, allowing for a graceful exit.
2021-02-18hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.bunnei
2021-02-18hle: kernel: Migrate MemoryManager to KMemoryManager.bunnei
2021-02-18hle: kernel: Migrate PageLinkedList to KPageLinkedList.bunnei
2021-02-18hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.bunnei
2021-02-18hle: kernel: Migrate SlabHeap to KSlabHeap.bunnei
2021-02-18hle: kernel: Migrate MemoryLayout to KMemoryLayout.bunnei
2021-02-18hle: kernel: Migrate AddressSpaceInfo to KAddressSpaceInfo.bunnei
2021-02-18hle: kernel: memory_manager: Rename AllocateContinuous to AllocateContinuous.bunnei
2021-02-18hle: kernel: KSystemControl does not belong in Memory namespace.bunnei
2021-02-18hle: kernel: memory: PageHeap: Migrate to KPageBitmap class.bunnei
2021-02-18hle: kernel: Add KPageBitmap class.bunnei
2021-02-18hle: kernel: system_control: Add function GenerateRandomU64.bunnei
2021-02-18hle: kernel: Add KSpinLock implementation.bunnei
2021-02-18core: memory: Add templated GetPointer methods.bunnei
2021-02-18hle: kernel: Rename SharedMemory to KSharedMemory.bunnei
2021-02-18Merge pull request #4973 from ameerj/nvdec-optbunnei
nvdec: Reuse allocated buffers and general cleanup
2021-02-15core: core_timing_util: Optimize core timing math.bunnei
- Avoids a lot of unnecessary 128-bit math for imperceptible accuracy.
2021-02-15Merge pull request #5939 from Morph1984/web_typesLC
core/CMakeLists: Add web_types.h
2021-02-15Merge pull request #4940 from german77/nativeGCbunnei
HID: Implement GC controller in game
2021-02-15core/CMakeLists: Add web_types.hMorph
2021-02-13hle: service: ldn: IUserLocalCommunicationService: Improve the stub.bunnei
2021-02-13hle: service: ldn: IUserLocalCommunicationService: Indicate that LDN is ↵bunnei
disabled. - Fixes crash on Pokemon Sword/Shield when pressing 'Y'.
2021-02-13hle: service: am: IStorageAccessor: Fix out of bounds error handling.bunnei
2021-02-13Address PR feedbackameerj
Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
2021-02-13nvdec cleanupameerj
2021-02-12kernel: More accurately reserve and release resourcesameerj
2021-02-12kernel: KScopedReservation implementationameerj
This implements KScopedReservation, allowing resource limit reservations to be more HW accurate, and release upon failure without requiring too many conditionals.
2021-02-12kernel: Unify result codes (#5890)Chloe
* kernel: Unify result codes Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways. * oops * rename errors to svc_results
2021-02-11Merge pull request #5902 from lioncash/core-warnbunnei
core: Silence various warnings on Clang 12
2021-02-11Merge pull request #5869 from german77/mousePanningbunnei
input_common: Add mouse panning
2021-02-10software_keyboard: Implement Finalize request commandMorph
2021-02-09core: Add -fsized-dealloction as a Clang flaglat9nq
Prevents a operator delete error when compiling with Clang 11.
2021-02-09bsd: Remove usage of optional emplace() with no argumentsLioncash
Clang 12 currently falls over in the face of this.
2021-02-09am/controller: Remove [[fallthrough]] from unreachable pathLioncash
Prevents warnings on clang 12. This path is reachable on other variations of the build that disable the unreachable macro.
2021-02-09nfp: Correct uninitialized size being used within GetTagInfo()Lioncash
We were previously the name of the object being initialized within its own initializer, which results in uninitialized data being read.
2021-02-08Merge pull request #5892 from german77/backupbunnei
olsc: Stub GetSaveDataBackupSetting
2021-02-08Merge pull request #5868 from german77/HandheldFixbunnei
Prevent over scheduling audio events and add motion update unschedule event