Commit Graph

41 Commits

Author SHA1 Message Date
Maschell
3cd1487252 Make sure the PayloadLoaderPayload doesn't get overwritten 2024-04-24 17:37:22 +02:00
Maschell
c031887028 We don't need to make sure the main function is in a certain memory region 2024-04-24 17:37:22 +02:00
Maschell
b1f8d29cee Avoid spamming the logs 2024-04-24 17:37:22 +02:00
Maschell
a0f49dab93 Add CustomRPXLoader to every OSFatal 2023-06-16 17:17:41 +02:00
Maschell
d950ea9432 Improve RPL loading 2023-06-16 17:05:45 +02:00
Maschell
cd73d30f7f OSFatal if the relocations fail 2023-06-16 17:05:45 +02:00
Maschell
49c4c267c8 Stop trying to free leaked memory 2023-06-16 17:05:45 +02:00
Maschell
039e177ff9 Update Dockerfile 2023-04-17 13:47:32 +02:00
Maschell
a4f7e16f13 Clean up imports 2023-04-17 13:47:32 +02:00
Maschell
ded5168cb8 Update ELFIO version and avoid streams to reduce binary size 2023-01-05 15:10:33 +01:00
Maschell
d5c54fed78 Use wut 1.1.1 2022-08-08 11:35:29 +02:00
Maschell
2409afa86a Update Dockerfile to use latest wut version 2022-08-01 05:13:09 -07:00
Maschell
9e96647469 Update .clang-format to update the comment, macro and assignment formatting 2022-02-03 13:55:24 +01:00
Maschell
e5ead1af44
Format the code via clang-format (#1) 2022-02-02 19:42:35 +01:00
Maschell
4e29e33931 Move logging into a separate file 2022-01-30 13:53:29 +01:00
Maschell
124b73a5fe Various small cleanups and logs 2022-01-21 18:52:58 +01:00
Maschell
00fe4bc284 Make sure _start is at the beginning of the .text section. 2022-01-21 18:51:56 +01:00
Maschell
fb32aec5b7 Only do logging when built with make DEBUG=1 2022-01-21 18:49:29 +01:00
Maschell
98e3c0882b Remove duplicated do_start, return the recturn code from payload.rpx 2021-12-30 16:01:06 +01:00
Maschell
9aa4f34190 Cleanup memory before calling the .rpx 2021-12-30 15:26:23 +01:00
Maschell
57163d6103 Formatting 2021-09-23 18:30:08 +02:00
Maschell
ba389535a9 Code cleanup 2021-09-18 12:10:58 +02:00
Maschell
033c9e52d1 Compile with latest wut version 2021-04-14 19:36:39 +02:00
Maschell
0e275257e5 Make sure to not leak any memory 2021-01-01 20:01:28 +01:00
Maschell
21a8f3f378 Fix doProcUi check when there are more than one arg 2021-01-01 20:00:50 +01:00
Maschell
6529ea36f4 Display user selection if no default user is set. 2020-11-26 21:14:37 +01:00
Maschell
4f208ba8a6 Save the current titleId when executing the payload.elf 2020-10-19 00:22:25 +02:00
Maschell
8498757a87 On error, show a splash screen 2020-10-19 00:21:59 +02:00
Maschell
e5b03975f1 Fix the maximum size check of the payload.rpx 2020-10-19 00:19:04 +02:00
Maschell
f93fc73ace Revert the mainhook on error 2020-10-19 00:16:45 +02:00
Maschell
8b01f5ca75 Don't run the ProcUI setup if payload.rpx failes and the payload.elf was loaded via H&S 2020-10-19 00:15:44 +02:00
Maschell
84e3764447 Fix module loading 2020-10-19 00:12:19 +02:00
Maschell
09d6b9f756 Allocate objects on stack instead of heap 2020-08-23 13:06:32 +02:00
Maschell
2a26482bdd Removed unused code 2020-08-23 13:01:42 +02:00
Maschell
6feeed4a53 Update or add license header 2020-08-23 12:59:52 +02:00
Maschell
a1267cc821 Formatting 2020-08-23 10:44:14 +02:00
Maschell
a941429f88 - Use the(de)-init functions from libwut to handle logging, sd access and memory.
- Adapt logging to WHBLogPrintf
2020-05-28 20:53:27 +02:00
Maschell
8c1c3e91e3 Move the loaded .rpx into the end of the memory area 2020-04-27 19:01:11 +02:00
Maschell
acc4c6cdbf Copy BAT hook to the end of our memory area 2020-04-27 18:35:24 +02:00
Maschell
3cd6ff16e7 Removed unused code 2020-04-27 18:35:01 +02:00
Maschell
7ed1cee873 first commit 2020-04-27 13:32:37 +02:00