summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | system_version: Correct sizes on VectorVfsFile constructionGravatar Zach Hilman2019-03-101-4/+4
| | | | | | |
| * | | | | | set_sys: Use correct error codes in GetFirmwareVersion*Gravatar Zach Hilman2019-03-101-21/+41
| | | | | | |
| * | | | | | set_sys: Implement GetFirmwareVersion(2) for libnx hosversionGravatar Zach Hilman2019-03-106-3/+128
| | | | | | | | | | | | | | | | | | | | | Uses the synthesized system archive 9 (SystemVersion) and reports v5.1.0-0.0
* | | | | | | Merge pull request #2280 from lioncash/nsoGravatar bunnei2019-03-233-73/+92
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | loader/nso: Minor refactoring
| * | | | | | | loader/nso: Place translation unit specific functions into an anonymous ↵Gravatar Lioncash2019-03-221-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | namespace Makes it impossible to indirectly violate the ODR in some other translation unit due to these existing.
| * | | | | | | loader/nso: Clean up use of magic constantsGravatar Lioncash2019-03-221-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the NSO header has the proper size, we can just use sizeof on it instead of having magic constants.
| * | | | | | | file_sys/patch_manager: Deduplicate NSO headerGravatar Lioncash2019-03-223-64/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This source file was utilizing its own version of the NSO header. Instead of keeping this around, we can have the patch manager also use the version of the header that we have defined in loader/nso.h
| * | | | | | | loader/nso: Fix definition of the NSO header structGravatar Lioncash2019-03-221-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The total struct itself is 0x100 (256) bytes in size, so we should be providing that amount of data. Without the data, this can result in omitted data from the final loaded NSO file.
| * | | | | | | file_sys/patch_manager: Remove two magic valuesGravatar Lioncash2019-03-221-2/+5
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | These correspond to the NSOBuildHeader.
* | | | | | | Merge pull request #2279 from lioncash/cheat-globalGravatar bunnei2019-03-226-48/+57
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | file_sys/cheat_engine: Remove use of global system accessors
| * | | | | | | file_sys/cheat_engine: Silence truncation and sign-conversion warningsGravatar Lioncash2019-03-222-5/+6
| | | | | | | |
| * | | | | | | file_sys/cheat_engine: Remove use of global system accessorsGravatar Lioncash2019-03-226-43/+51
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, pass in the core timing instance and make the dependency explicit in the interface.
* | | | | | | Merge pull request #2256 from bunnei/gpu-vmmGravatar bunnei2019-03-222-13/+5
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | gpu: Rewrite MemoryManager based on the VMManager implementation.
| * | | | | | memory: Check that core is powered on before attempting to use GPU.Gravatar bunnei2019-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - GPU will be released on shutdown, before pages are unmapped. - On subsequent runs, current_page_table will be not nullptr, but GPU might not be valid yet.
| * | | | | | gpu: Rewrite virtual memory manager using PageTable.Gravatar bunnei2019-03-201-10/+2
| | | | | | |
| * | | | | | gpu: Move GPUVAddr definition to common_types.Gravatar bunnei2019-03-201-2/+2
| | | | | | |
* | | | | | | Merge pull request #2234 from lioncash/mutexGravatar bunnei2019-03-215-29/+62
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | core/hle/kernel: Make Mutex a per-process class.
| * | | | | | | core/hle/kernel/mutex: Remove usages of global system accessorsGravatar Lioncash2019-03-141-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the use of global system accessors, and instead uses the explicit interface provided.
| * | | | | | | core/hle/kernel: Make Mutex a per-process class.Gravatar Lioncash2019-03-145-18/+47
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes it an instantiable class like it is in the actual kernel. This will also allow removing reliance on global accessors in a following change, now that we can encapsulate a reference to the system instance in the class.
* | | | | | | Merge pull request #2274 from lioncash/includeGravatar bunnei2019-03-211-3/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | core/memory: Remove unnecessary includes
| * | | | | | | core/memory: Remove unnecessary includesGravatar Lioncash2019-03-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 93da8e0abfcdcc6e3cb5488a0db12373429f1377, the page table construct was moved to the common library (which utilized these inclusions). Since the move, nothing requires these headers to be included within the memory header.
* | | | | | | | Merge pull request #2275 from lioncash/memflagsGravatar bunnei2019-03-214-22/+20
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | kernel/vm_manager: Amend flag value for code data
| * | | | | | | | kernel/vm_manager: Rename CodeStatic/CodeMutable to Code and CodeData ↵Gravatar Lioncash2019-03-214-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | respectively Makes it more evident that one is for actual code and one is for actual data. Mutable and static are less than ideal terms here, because read-only data is technically not mutable, but we were mapping it with that label.
| * | | | | | | | kernel/vm_manager: Amend flag values for CodeMutableGravatar Lioncash2019-03-211-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should actually be using the data flags, rather than the code flags.
* | | | | | | | Merge pull request #2276 from lioncash/amGravatar bunnei2019-03-211-1/+15
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | service/am: Add function table for IDebugFunctions
| * | | | | | | | service/am: Add function table for IDebugFunctionsGravatar Lioncash2019-03-211-1/+15
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have the service related stuff set up for this, however, it's missing the function table.
* | | | | | | | Merge pull request #1933 from DarkLordZach/cheat-engineGravatar bunnei2019-03-2110-0/+813
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | file_sys: Implement parser and interpreter for game memory cheats
| * | | | | | | vm_manager: Remove cheat-specific ranges from VMManagerGravatar Zach Hilman2019-03-0510-77/+56
| | | | | | | |
| * | | | | | | core: Add support for registering and controlling ownership of CheatEngineGravatar Zach Hilman2019-03-042-0/+13
| | | | | | | |
| * | | | | | | cheat_engine: Add parser and interpreter for game cheatsGravatar Zach Hilman2019-03-043-0/+715
| | | | | | | |
| * | | | | | | loader/nso: Set main code region in VMManagerGravatar Zach Hilman2019-03-043-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For rom directories (and by extension, XCI/NSP/NAX/NCA) this is for the NSO with name 'main', for regular NSOs, this is the NSO.
| * | | | | | | vm_manager: Add support for storing and getting main code regionGravatar Zach Hilman2019-03-042-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used as root for one region of cheats, set by loader
| * | | | | | | patch_manager: Display cheats in game list add-onsGravatar Zach Hilman2019-03-041-0/+2
| | | | | | | |
| * | | | | | | patch_manager: Add support for loading cheats listsGravatar Zach Hilman2019-03-042-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses load/<title_id>/<mod_name>/cheats as root dir, file name is all upper or lower hex first 8 bytes build ID.
| * | | | | | | controllers/npad: Add accessor for current press stateGravatar Zach Hilman2019-03-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows frontend/features to access pressed buttons conveniently as possible
* | | | | | | | Merge pull request #2090 from FearlessTobi/port-4599Gravatar bunnei2019-03-206-96/+96
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Port citra-emu/citra#4244 and citra-emu/citra#4599: Changes to BitField
| * | | | | | | | remove all occurance of specifying endianness inside BitFieldGravatar Weiyi Wang2019-02-066-96/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit it automatically generated by command in zsh: sed -i -- 's/BitField<\(.*\)_le>/BitField<\1>/g' **/*(D.) BitField is now aware to endianness and default to little endian. It expects a value representation type without storage specification for its template parameter.
* | | | | | | | | Merge pull request #2262 from lioncash/enumGravatar bunnei2019-03-202-2/+15
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | file_sys/content_archive: Amend name of Data_Unknown5 enum entry
| * | | | | | | | | file_sys/content_archive: Amend name of Data_Unknown5 enum entryGravatar Lioncash2019-03-192-2/+15
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | While we're at it, give each entry some documentation.
* | | | | | | | | Merge pull request #2268 from lioncash/codesetGravatar bunnei2019-03-208-45/+111
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | | core/kernel: Migrate CodeSet to its own source files
| * | | | | | | | kernel/process: Make MapSegment lambda reference parameter constGravatar Lioncash2019-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The segment itself isn't actually modified.
| * | | | | | | | kernel: Move CodeSet structure to its own source filesGravatar Lioncash2019-03-208-44/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given this is utilized by the loaders, this allows avoiding inclusion of the kernel process definitions where avoidable. This also keeps the loading format for all executable data separate from the kernel objects.
* | | | | | | | | Merge pull request #2267 from FernandoS27/fix-2238Gravatar bunnei2019-03-201-1/+2
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix crash caused by #2238.
| * | | | | | | | | Fix crash caused by 2238.Gravatar Fernando Sahmkow2019-03-191-1/+2
| | |/ / / / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #2224 from lioncash/opusGravatar bunnei2019-03-201-34/+48
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | hwopus: Leverage multistream API for decoding regular Opus packets
| * | | | | | | | hwopus: Leverage multistream API for decoding regular Opus packetsGravatar Lioncash2019-03-111-34/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After doing a little more reading up on the Opus codec, it turns out that the multistream API that is part of libopus can handle regular packets. Regular packets are just a degenerate case of multistream Opus packets, and all that's necessary is to pass the number of streams as 1 and provide a basic channel mapping, then everything works fine for that case. This allows us to get rid of the need to use both APIs in the future when implementing multistream variants in a follow-up PR, greatly simplifying the code that needs to be written.
* | | | | | | | | loader: Remove Linker classGravatar Lioncash2019-03-193-185/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given the class is now currently unused, it can be removed.
* | | | | | | | | loader: Remove Linker inheritance from NRO and NSO loadersGravatar Lioncash2019-03-192-4/+4
| |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Neither the NRO or NSO loaders actually make use of the functions or members provided by the Linker interface, so we can just remove the inheritance altogether.
* | | | | | | | Merge pull request #2258 from lioncash/amGravatar bunnei2019-03-182-13/+73
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | service/am: Supply remaining missing IAudioController functions
| * | | | | | | | service/am: Add basic implementation of ChangeMainAppletMasterVolumeGravatar Lioncash2019-03-182-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All this does is supply a new volume level and a fade time in nanoseconds for the volume transition to occur within.