2123 Commits

Author SHA1 Message Date
TheASVigilante ae1566a482 Fix accidental recursion with trap handling 2024-04-28 20:04:22 +02:00
lynxnb 83111c2ae7 Move memory trapping infrastructure outside of NCE 2024-04-27 16:15:29 +02:00
lynxnb d5d6e677ca Rework CI to only upload artifacts for PR builds
CI now performs build checks on pushes to the master branch only.
For pull requests, the dev variant of the app is built and artifacts are uploaded for ease of testing and side-by-side installation. PR builds use autogenerated debug signing keys, resulting in different keys being used for each build on purpose to ensure they cannot be installed over each other, avoiding any possible conflict between two PRs.
2024-02-27 23:11:15 +01:00
lynxnb 686a25120b Move SvcTable definition out of header files 2024-02-23 15:06:40 +01:00
lynxnb 18626a4251 Introduce a generic register context for SVCs
`SvcContext` represents a common interface for accessing registers from SVCs, decoupling them from a particular thread context.
2024-02-23 15:06:40 +01:00
lynxnb 80b3b223c8 KProcess: correctly handle empty optional chunk 2024-02-22 08:53:45 +01:00
lynxnb b51c31dc72 memory: update KMemory to use guest addresses 2024-02-21 15:40:23 +01:00
lynxnb 8addba3273 memory: use guest addresses everywhere
The memory manager has been reworked to handle addresses in the guest address space, and applying an offset to get the address on the host whenever memory needs to be mapped/unmapped/reprotected.
2024-02-21 15:40:05 +01:00
lynxnb d693cac5da memory: fix insertion at the beginning of the chunks map
The memory manager was incorrectly inserting chunks when the new chunk was being inserted at the beginning of the chunks map (no previous chunk available). The existing chunk was resized to an empty chunk (correctly), but the new chunk was never inserted because of `std::map::insert` skipping insertion on an already existing key.
This resulted in an empty chunk being left at the beginning of the map, causing infinite loops for code that worked by scanning the chunks map.

Usages of `std::map::operator[]` have also been replaced with the safer `insert_or_assign`.
2024-02-21 15:39:48 +01:00
lynxnb f9f9b6de71 Loader: skip patching non 64-bit executables 2024-02-21 15:17:51 +01:00
lynxnb bdb4e3fdd8 Loader: make dynsym handling more generic
dynsym is not hardcoded to handle Elf64_Sym only anymore, and a templated ResolveSymbol function has been introduced to easily support Elf32_Sym lookup in the future.
2024-02-21 15:04:44 +01:00
lynxnb 1102f42730 Move symbol hooking setup code out of loader 2024-02-21 15:04:35 +01:00
Pablo González c87f753893 Make navigation bar transparent (#203) 2024-01-29 17:31:08 +01:00
Niccolò Betto 0b0e48c647 Fix invalid switch-case syntax resulting from nvdrv macro expansion (#242) 2024-01-29 17:19:03 +01:00
Adrien Bouillon 6346c2693c Add basic support for Google Game Dashboard (#240) 2024-01-29 17:11:05 +01:00
Pablo González d2b2b0fabe Add toString to exceptions in Gradle (#241) 2024-01-29 17:10:06 +01:00
Pablo González f15d0ef22c Use string resources in ProfilePicturePreference (#198) 2024-01-29 17:09:43 +01:00
Pablo González b4e763202f Fix try-catch in save import (#197) 2024-01-29 17:09:29 +01:00
Dubrova Dzmitry 135b7f31c9 Implement info reading from Ro section (#173) 2024-01-13 19:32:38 +01:00
Pablo González 1323259155 Iterate through siblings without recursion in vfs::TraverseDirectory (#205)
Prevents a stack overflow because of recursion depth.
2024-01-05 15:50:14 +01:00
Ishan0981 3fb7f9b81a Fixed hide invalid files preference title not showing (#231) 2024-01-05 15:41:35 +01:00
lynxnb 2ee8d36b9e Misc Gradle build script cleanup 2024-01-05 02:19:03 +01:00
lynxnb 29d1717ce9 Update CI to use the latest dependencies 2024-01-05 02:19:03 +01:00
lynxnb 557f8ae9c8 Update JVM target to Java 17 2024-01-05 02:19:03 +01:00
lynxnb 91353a8dd8 Update Kotlin to 1.9.22 2024-01-05 02:19:03 +01:00