Skip to content

Commit

Permalink
Move ovlloader's ProgramID out of the application range
Browse files Browse the repository at this point in the history
This is necessary as starting with 10.0.0, loader does  signature checking on loaded games. If a launched process's ProgramID is in the range between 0x0100000000010000 to 0x01FFFFFFFFFFFFFF, loader will do signature checks which obviously fail on any homebrew sysmodule
  • Loading branch information
WerWolv committed Apr 15, 2020
1 parent d5be752 commit ed00b96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ovll.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ovlloader",
"title_id": "0x010000000007E51A",
"title_id_range_min": "0x010000000007E51A",
"title_id_range_max": "0x010000000007E51A",
"title_id": "0x420000000007E51A",
"title_id_range_min": "0x420000000007E51A",
"title_id_range_max": "0x420000000007E51A",
"main_thread_stack_size": "0x10000",
"main_thread_priority": 49,
"default_cpu_id": 3,
Expand Down
7 changes: 1 addition & 6 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void __wrap_exit(void)
{
smInitialize();
pmshellInitialize();
pmshellTerminateProgram(0x010000000007E51A);
pmshellTerminateProgram(0x420000000007E51A);
pmshellExit();
smExit();

Expand Down Expand Up @@ -351,11 +351,6 @@ void loadNro(void)
int main(int argc, char **argv)
{
memcpy(g_savedTls, (u8*)armGetTls() + 0x100, 0x100);

// Tesla exhausts service sessions which crashes qlaunch when run on a firmware lower than 9.0.0
// Instead of crashing, gracefully kill nx-ovlloader before it causes issues
if (hosversionBefore(9,0,0))
exit(1);

setupHbHeap();
getOwnProcessHandle();
Expand Down
2 changes: 1 addition & 1 deletion toolbox.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name" : "Tesla",
"tid" : "010000000007E51A",
"tid" : "420000000007E51A",
"requires_reboot": false
}

0 comments on commit ed00b96

Please sign in to comment.