Skip to content

Commit

Permalink
v1.3 - autoexit normally, mode3 message, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Stary2001 committed Feb 17, 2017
1 parent 82c5a42 commit 13063d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Memory patching code taken from BootNTR
Shinyquagsire for inspiring me to start this with his writeup, then helping me along the way

## how do i use this
Install the input_proc cia on your 3ds, then run the injector.
Install InputRedirection.cia or InputRedirection_mode3.cia (for extended-memory games on o3ds), then run.

use one of these input programs to actually get input to the ds:
use one of these clients to actually get input to the 3ds:
* [SDL for Linux](https://github.com/Stary2001/InputClient-SDL)
* [XInput for Windows](https://github.com/Kazo/InputRedirectionClient)

Expand Down
13 changes: 11 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#define HID_TS_RD_LOC 0x10df04
#define HID_TS_WR_LOC 0x10df08

#define CONFIG_APPMEMTYPE ((u32*)0x1FF80030)

scenic_process *hid;

void read_input();
Expand Down Expand Up @@ -93,13 +95,20 @@ int main()

proc_close(hid);

bool is_mode3 = *CONFIG_APPMEMTYPE == 3;

if(err)
{
printf("An error occured! Press START to exit!\n");
}
else if(is_mode3)
{
printf("Press HOME, then launch an extended memory game!\n");
}
else
{
printf("Press HOME for use with NTR-Mode3, or START to exit!\n");
gfxExit();
return 0;
}

while (aptMainLoop())
Expand All @@ -112,7 +121,7 @@ int main()
break;
}

//gfxExit();
gfxExit();

return 0;
}

0 comments on commit 13063d3

Please sign in to comment.