diff --git a/README.md b/README.md index bc24ae3..320ce8f 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/source/main.c b/source/main.c index fad3b92..d8d608d 100644 --- a/source/main.c +++ b/source/main.c @@ -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(); @@ -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()) @@ -112,7 +121,7 @@ int main() break; } - //gfxExit(); + gfxExit(); return 0; }