-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdump_modules.gm9
47 lines (37 loc) · 1.31 KB
/
dump_modules.gm9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
if not ask "Dump SSL, Friends, ACT, and Miiverse modules?"
goto Exit
end
set OUT 0:/nimbusmodules
set OUTPATCHES $[OUT]/patches
if exist $[OUT]
rm $[OUT]
end
mkdir $[OUTPATCHES]/act # 0004013000003802
mkdir $[OUTPATCHES]/friends # 0004013000003202
mkdir $[OUTPATCHES]/http # 0004013000002902
mkdir $[OUTPATCHES]/socket # 0004013000002E02
mkdir $[OUTPATCHES]/ssl # 0004013000002F02
mkdir $[OUTPATCHES]/miiverse # 00040030(0000BC02/0000BD02/0000BE02)
if chk $[REGION] JPN
set MIIVERSEIDLOW "0000BC02"
elif chk $[REGION] USA
set MIIVERSEIDLOW "0000BD02"
elif chk $[REGION] EUR
set MIIVERSEIDLOW "0000BE02"
end
find 1:/title/00040130/00003802/content/*.app APP
extrcode $[APP] $[OUTPATCHES]/act/code.bin
find 1:/title/00040130/00003202/content/*.app APP
extrcode $[APP] $[OUTPATCHES]/friends/code.bin
find 1:/title/00040130/00002902/content/*.app APP
extrcode $[APP] $[OUTPATCHES]/http/code.bin
find 1:/title/00040130/00002e02/content/*.app APP
extrcode $[APP] $[OUTPATCHES]/socket/code.bin
find 1:/title/00040130/00002f02/content/*.app APP
extrcode $[APP] $[OUTPATCHES]/ssl/code.bin
if chk -u $[MIIVERSEIDLOW] ""
find 1:/title/00040030/$[MIIVERSEIDLOW]/content/*.app APP
extrcode $[APP] $[OUTPATCHES]/miiverse/code.bin
fdummy $[OUTPATCHES]/miiverse/$[REGION].region 0
end
@Exit