Skip to content

Commit

Permalink
Added Payloads Folder ad edited the Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohul1997 committed Mar 1, 2016
1 parent 6846c22 commit 621cd6c
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 8 deletions.
Binary file removed Cia_shortcut/Gateway_cia.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Payloads/JAP/New 3DS 9.1/Gateway_cia.bin
Binary file not shown.
Binary file added Payloads/JAP/Old 3DS 9.1/Gateway_cia.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
This is just a CIA shortcut that opens Gateway Launcher.
Run make and then put gate.3dsx onto the root of your SD card along with the Cia_shortcut folder.
Also put the Gateway_cia.cia file and install it on your sysNAND.
Run make and then put gate.3dsx onto the root of your SD card
Inside the Payloads folder copy the Gateway_CIA according to you 3DS type, region and firmware. Paste it inside the Cia_shotcut folder and then copy the Cia_shortcut folder onto your SD card.
Put the Gateway_cia.cia file and install it on your sysNAND.
7 changes: 1 addition & 6 deletions source/Gateway_cia.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ Result load_gateway()

memset(filebuffer, 0, filebuffer_maxsize);

printf("Loading payload on SD, with the following filepath: \n", payload_sdpath);
ret = loadsd_payload(payload_sdpath, &payloadsize);

if(ret==0)
Expand All @@ -155,8 +154,6 @@ Result load_gateway()
printf("Can't find \n");
}

printf("Initializing payload data etc...\n");

payloadsize_aligned = (payloadsize + 0xfff) & ~0xfff;
if(payloadsize_aligned > PAYLOAD_TEXTMAXSIZE)
{
Expand Down Expand Up @@ -190,8 +187,6 @@ Result load_gateway()
paramblk[0x48>>2] = 0x8d;//flags
paramblk[0x58>>2] = (u32)&gspGpuHandle;

printf("Jumping into the payload...\n");

funcptr = (void*)PAYLOAD_TEXTADDR;
funcptr(paramblk, (u32*)(0x10000000-0x1000));

Expand All @@ -212,7 +207,7 @@ int main(int argc, char **argv)

consoleInit(GFX_BOTTOM, NULL);

printf("Gateway Cia\n", VERSION);
printf("Gateway Cia Is Loading\n", VERSION);

ret = svcDuplicateHandle(&kproc_handledup, 0xffff8001);
if(ret!=0)printf("svcDuplicateHandle() with the current proc-handle failed: 0x%08x.\n", (unsigned int)ret);
Expand Down

0 comments on commit 621cd6c

Please sign in to comment.