aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2020-07-17Merge pull request #4357 from lioncash/unused4David
kernel: Remove unused variables
2020-07-17Merge pull request #4358 from lioncash/unused5David
kernel/thread: Remove unimplemented function prototype
2020-07-16core/CMakeLists: Add missing physical_memory.h header fileLioncash
Allows this header file to show up in IDE CMake generators.
2020-07-16constants: Add missing <array> includeLioncash
Eliminates reliance on an indirect include.
2020-07-16mii/manager: Resolve sign mismatch warningsLioncash
Previously the loop termination condition was testing variables of different signedness.
2020-07-16mii/manager: Make use of designated initializersLioncash
Allows returning the structure in a more concise manner.
2020-07-16Merge pull request #4292 from bunnei/mii-rewritebunnei
hle: service: mii: Rewrite service to properly support creation of random and default miis.
2020-07-16Merge pull request #4327 from lioncash/desig2Rodrigo Locatti
address_space_info: Make use of designated initializers
2020-07-16kernel/thread: Remove unimplemented function prototypeLioncash
This isn't used, so it can be removed.
2020-07-16kernel: Remove unused variablesLioncash
Resolves some compiler warnings in the Linux build.
2020-07-16kernel: Add missing includeLioncash
2020-07-16cpu_manager: Mark function getters as staticLioncash
All these do are return std::function instances of static functions, so these can be used without an instance of the CPU manager.
2020-07-16cpu_manager: Remove unused preemption_count variableLioncash
Shrinks the data structure by 8 bytes.
2020-07-16cpu_manager: Add missing includesLioncash
Previously this header was relying on indirect inclusions that are no longer satisfied.
2020-07-16Merge pull request #4337 from lat9nq/fix-per-game-asyncbunnei
main: Set async gpu properly after loading per-game setting
2020-07-16Merge pull request #4346 from lioncash/threadDavid
kernel/handle_table: Remove usages of the global system instance
2020-07-16hid: Only update keyboard & debug pad inputs if enabledDavid Marcec
Previously we would ignore this setting and would update the states regardless of the user setting
2020-07-16Merge pull request #4249 from Morph1984/delete-update-aoc-on-overwriteDavid
registered_cache: Remove previous update/dlc if it exists on install
2020-07-16Check for empty section0 and CNMT prior to installMorph
2020-07-16Add comment to clarify the nullptr checkMorph
2020-07-16filesystem: Create subdirectories prior to creating a fileMorph
If subdirectories exist in the given path parameter and don't exist in the real filesystem create them prior to creating the files within. This fixes the softlocks upon save creation in The Legend of Zelda: Breath of the Wild
2020-07-15Merge pull request #4328 from lioncash/unused-var3bunnei
memory_layout: Remove unused data member
2020-07-15core_timing: Remove unused data memberLioncash
Shrinks the size of the CoreTiming class by 8 bytes.
2020-07-15core_timing: Make TimedCallback take std::chrono::nanosecondsLioncash
Enforces our desired time units directly with a concrete type.
2020-07-15core_timing: Make use of std::chrono with ScheduleEventLioncash
2020-07-15settings: Resolve a sign conversion warning within GetTimeZoneString()Lioncash
A sign conversion warning was occurring due to an int < size_t comparison.
2020-07-15kernel/process: Move name and system context to the bottom of the member listLioncash
These aren't directly important or commonly used within the process, so we can move these to the bottom to allow everything else to be more likely to be within a cache line.
2020-07-15kernel/handle_table: Remove usages of the global system instanceLioncash
Removes even more usages of the global system instance, trimming away more dependencies on global variables and making them explicit in the interface.
2020-07-15settings: Make use of std::string_view over std::string for loggingLioncash
In all usages of LogSetting(), string literals are provided. std::string_view is better suited here, as we won't churn a bunch of string allocations every time the settings are logged out. While we're at it, we can fold LogSetting() into LogSettings(), given it's only ever used there.
2020-07-15kernel/thread: Remove global GetCurrentThread()Lioncash
This is only used in one place, so we can fold it into the calling code, eliminating a place for the global system instance to be used.
2020-07-15clang formatMorph
2020-07-15Use proper install result when overwriting filesMorph
2020-07-15Remove global system instance and address feedbackMorph
2020-07-15registered_cache: Remove previous update/dlc if it exists on installMorph
- This checks for and removes old updates or dlc based on title id. If a content meta nca exists within the registered cache, it will attempt to remove all the ncas associated with the content meta before installing a new update/dlc
2020-07-15clang-formatVolcaEM
2020-07-15dmnt_cheat_vm: Implement opcode 0xC3 (ReadWriteStaticRegister)VolcaEM
This was based on Atmosphére's DMNT Cheat VM: - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp From Atmosphére's documentation: "Code type 0xC3 reads or writes a static register with a given register" There are now only two remaining opcodes to implement (PauseProcess and BreakProcess) This is untested because I don't have any experience in testing cheats on yuzu
2020-07-14clang-formatlat9nq
2020-07-14settings: Move settings sanitization to its own functionlat9nq
Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables.
2020-07-14Merge pull request #4294 from MerryMage/cpu-opt-settingsbunnei
configuration: Add settings to enable/disable specific CPU optimizations
2020-07-14Merge pull request #4282 from Morph1984/fs-sizebunnei
filesystem: Set various NAND partition sizes to their defaults
2020-07-13memory_layout: Remove unused data memberLioncash
This isn't used, so it can be removed entirely, shrinking the structure size by 8 bytes.
2020-07-13address_space_info: Use type alias to simplify codeLioncash
We can define an alias for the index arrays and then just reuse it to make the code nicer to read.
2020-07-13address_space_info: Make use of designated initializersLioncash
We can alter the structure so that we can use designated initializers in the array, eliminating the comments that indicate their field names.
2020-07-12kernel/scheduler: Use std::mutex instead of spin lockReinUsesLisp
Profiling shows that this is a highly contested mutex, causing dimishing results compared to a OS lock. std::mutex implementations can spin for a while before falling back to an OS lock. This avoids wasting precious CPU cycles in a no-op.
2020-07-12Merge pull request #4265 from Morph1984/file-renameFernando Sahmkow
vfs_real: Fix MoveFile
2020-07-12fs: Fix RomFS building when zero byte files are presentMorph
When zero byte files are present, the key (offset) for that file is identical to the file right after. A std::map isn't able to fit key-value pairs with identical keys (offsets), therefore, the solution is to use std::multimap which permits multiple entries with the same key. This most prominently fixes Pokemon Sword and Shield weather with any RomFS mod applied.
2020-07-12Merge pull request #4275 from CrazyMax/desired_languagebunnei
AM: fix GetDesiredLanguage:
2020-07-11hle: service: mii: Rewrite service to properly support creation of random ↵bunnei
and default miis.
2020-07-11configure_cpu: Show/Hide debugging optionsMerryMage
2020-07-11configuration: Add settings to enable/disable specific CPU optimizationsMerryMage