Commit Graph

44 Commits

Author SHA1 Message Date
borntohonk
cd6a723acb
Update NORETURN to NX_NORETURN for libnx 4.6.0+ (#38) 2024-01-30 09:57:59 +00:00
fincs
f6c46269ef
Fix #37: regressions introduced by missed HBABI entry index updates 2022-10-16 00:06:07 +02:00
fincs
b1406d9eaa
Grant access to all SVCs (including the extended range) 2022-10-15 21:09:11 +02:00
fincs
e7ff5cba3b
Detect Atmosphère, and pass it down through HBABI 2021-04-11 12:24:09 +02:00
SciresM
723c09d7ab
hbl: grant read access to ktrace buffer (#36)
Also grant access to svcQueryIoMapping & hint it as available
2020-12-17 01:56:29 +01:00
fincs
e2b8f0c5b3
Minor cleanup/refactoring, memory usage optimization & UB removal 2020-12-08 14:40:21 +01:00
fincs
06b2d3bdfd
Use virtmemFindCodeMemory instead of virtmemFindAslr 2020-10-30 00:16:39 +01:00
fincs
e528d15d5a
Improve CodeMemory capability detection 2020-10-29 16:53:37 +01:00
fincs
18019db14a
Replace fatalThrow with diagAbortWithResult 2020-10-29 14:16:11 +01:00
fincs
c69c6a9e0d
Add debugger svcBreak pre/post NRO load/unload hooks 2020-10-29 14:16:11 +01:00
fincs
5ce1d33b7d
Use new virtmem API for NRO ASLR 2020-10-29 14:16:10 +01:00
fincs
a13d5e7af2
Remove workaround for very old homebrew (which is unusable anyway) 2020-10-29 14:16:10 +01:00
fincs
0ce48ebe22
Revoke access to CodeMemory syscalls if they are not usable 2020-10-29 14:16:10 +01:00
Michael Scire
7caa177353 support automatic recording games on 4.0.0-4.1.0 2020-09-22 23:49:57 +02:00
borntohonk
721fa9b525 Update nacp reference to reflect on libnx changes in libnx commit 20fd5bb9a21cd0c8bcea0cc7cc84640f8de714e6 2020-04-26 16:53:33 +02:00
masagrator
d9cb20c248
Add svcGetSystemInfo and update json to match libnx 3.1.0 svc.h (#26)
Also adds svcGetSystemInfo to SyscallAvailableHint
2020-04-12 01:49:30 +02:00
yellows8
24487fc496
Use InfoType_IsApplication to set g_isApplication when available. Updated for latest libnx. 2020-03-11 22:43:58 -04:00
fincs
7b085d86f4
Update for latest libnx changes (again) 2019-12-11 00:58:46 +01:00
octopuserectus
9b2a16c731 Reflect latest libnx changes 2019-11-27 19:33:53 +01:00
fincs
0d526f9aaa
fatalSimple -> fatalThrow 2019-10-25 00:02:36 +02:00
yellows8
4cd81dcc31
Updated pmshell code for latest libnx. 2019-10-24 16:52:26 -04:00
fincs
2ddb129338
Code size improvements & memory usage shrunk down:
- fsdev current-working-directory support disabled (saves memory)
- Heap shrunk down from 128kb to 16kb
- SDMC mounted during NRO loading and unmounted afterwards
- POSIX file i/o functions used instead of stdio (one less layer of abstraction)
- Default NRO path is now a define for easy maintenance
2019-10-21 21:50:42 +02:00
fincs
3510f74c77
Update for latest libnx (including new-ipc) 2019-10-20 03:18:51 +02:00
yellows8
b33c5df54b
Updated readSetting to handle the out_size param from setsysGetSettingsItemValue with latest libnx. The buffer is now cleared on failure. 2019-10-04 18:34:51 -04:00
yellows8
92a14f706e
Updated nacp code for latest libnx. 2019-08-21 23:10:31 -04:00
fincs
ededd72fbf Use 2MB alignment instead of page alignment in heap size calculations 2019-07-29 21:35:06 +02:00
fincs
2a0d4a7713 Add support for UserIdStorage & HosVersion homebrew ABI keys 2019-07-29 21:17:48 +02:00
fincs
7c1eb6235f Add version notice text 2019-07-29 18:12:18 +02:00
fincs
7f8fb00864 Add applet heap size configuration support, example usage is as follows:
[hbloader]
; Controls the size of the homebrew heap when running as applet.
; If set to zero, all available applet memory is used as heap.
; The default is zero.
applet_heap_size = u64!0x0
; Controls the amount of memory to reserve when running as applet
; for usage by other applets. This setting has no effect if
; applet_heap_size is non-zero. The default is zero.
applet_heap_reservation_size = u64!0x8000000
2019-07-29 18:12:00 +02:00
fincs
00942640a5 nroEntrypointTrampoline: Fix g_lastRet write size access bug 2019-07-29 17:11:38 +02:00
fincs
104e0fb0b3 Stub out unused exit logic, close SM handle once we don't need it anymore 2019-07-29 15:12:38 +02:00
fincs
549adde3ca Use svcGetInfo type enum and hosversionAtLeast 2019-07-29 15:09:33 +02:00
fincs
b45f3162a8 getOwnProcessHandle: use svcCreateSession directly instead of going through SM; replace MODULE_HBL with Module_HomebrewLoader 2019-07-29 14:42:37 +02:00
fincs
3af8c89024 Update for latest libnx 2019-03-26 14:03:41 +01:00
SciresM
8717f990ab Grant access to svcCallSecureMonitor 2019-01-24 17:46:29 +01:00
fincs
0556fbbd99 Only apply SM close bug workaround to very old apps (use absence of MOD0 as heuristic) 2018-12-06 02:18:50 +01:00
yellows8
96af83a70e Added support for exceptions. 2018-11-14 21:31:45 -05:00
SciresM
2d7e01f938 Fix crash when taking over some games on 5.0.0+ (#10)
* HBL: Fix crash when taking over some games on 5.0.0+ where the title supports automatic video-recording via the nacp.
2018-10-31 17:54:59 -04:00
fincs
8ab9e6d8da Added support for RandomSeed homebrew ABI key 2018-10-17 17:17:33 +02:00
yellows8
aedf312fa0 Automatically determine which AppletType/AppletFlags to use by checking pmshellGetApplicationPid output. 2018-10-04 18:46:20 -04:00
Rajko Stojadinovic
6a5013f656 Allow homebrew to use debug svcs (#3)
* Add debug/process inspection svcs to the npdm (the non-writing ones are useful even without debug mode enabled)

* Update the available svcs hint to match npdm
2018-07-30 17:51:20 -04:00
fincs
d6e56d487f Build NPDM from JSON configuration file (with enhancements), see details:
- Granted access to all FS permissions.
- Granted user/host access to all services.
- Kernel caps application type set to applet (2) in order to allow
  nx-hbloader to run while official apps are suspended.
  This fixes fatal error 2144-0001 during nx-hbloader startup.
  **CAVEAT**: This reduces maximum heap size to around 500MB. For this
  reason this change may be *reverted* or worked around in the future.
- Revise handle-duplication workaround to allow official apps to run
  after having used and closed nx-hbloader.
2018-05-09 18:18:18 +02:00
fincs
de49c86f27 Adapt hbl sources to compile with latest tools 2018-05-03 00:32:21 +02:00
plutooo
b9aa673624 Public release 2018-04-24 00:10:50 +02:00