-
Notifications
You must be signed in to change notification settings - Fork 21
/
launch_kaerusetup.bat
701 lines (660 loc) · 33.3 KB
/
launch_kaerusetup.bat
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
if "%~1" neq "" (call :%~1 & exit /b !current_version!)
@echo off
setlocal enabledelayedexpansion
Color 0A
cls
title PORTABLE KAERUSETUP LAUNCHER
set nag=Finally Getting Updates After 4 Years (Helper Update)
set new_version=OFFLINE
if exist replacer.bat del replacer.bat >nul
:FOLDERCHECK
cls
if not exist .\bin\ mkdir .\bin\
if not exist .\doc\ mkdir .\doc\
if not exist .\data\sd\ mkdir .\data\sd\
if not exist .\extra\ mkdir .\extra\
call :VERSION
goto CREDITS
:Version
echo 15 > .\doc\version.txt
set /p current_version=<.\doc\version.txt
if exist .\doc\version.txt del .\doc\version.txt >nul
exit /b
:CREDITS
cls
if exist .\doc\kaerusetup_license.txt goto FILECHECK
echo ================================================== > .\doc\kaerusetup_license.txt
echo = Script by MarioMasta64 = >> .\doc\kaerusetup_license.txt
echo = Most of the code by MikeModder007 = >> .\doc\kaerusetup_license.txt
echo = Script Version: v%current_version%- beta = >> .\doc\kaerusetup_license.txt
echo ================================================== >> .\doc\kaerusetup_license.txt
echo =You may Modify this WITH consent of the original= >> .\doc\kaerusetup_license.txt
echo = creator, as long as you include a copy of this = >> .\doc\kaerusetup_license.txt
echo = as you include a copy of the License = >> .\doc\kaerusetup_license.txt
echo ================================================== >> .\doc\kaerusetup_license.txt
echo = You may also modify this script without = >> .\doc\kaerusetup_license.txt
echo = consent for PERSONAL USE ONLY = >> .\doc\kaerusetup_license.txt
echo ================================================== >> .\doc\kaerusetup_license.txt
:CREDITSREAD
cls
title PORTABLE KAERUSETUP LAUNCHER - ABOUT
for /f "DELIMS=" %%i in (.\doc\kaerusetup_license.txt) do (echo %%i)
pause
:FILECHECK
cls
:WGETUPDATE
cls
title PORTABLE KAERU SETUP LAUNCHER - DOWNLOAD KAERU SETUP
wget https://eternallybored.org/misc/wget/current/wget.exe
move wget.exe .\bin\
goto MENU
:DOWNLOADWGET
cls
call :CHECKWGETDOWNLOADER
exit /b
:CHECKWGETDOWNLOADER
cls
if not exist .\bin\downloadwget.vbs call :CREATEWGETDOWNLOADER
if exist .\bin\downloadwget.vbs call :EXECUTEWGETDOWNLOADER
exit /b
:CREATEWGETDOWNLOADER
cls
echo ' Set your settings > .\bin\downloadwget.vbs
echo strFileURL = "https://eternallybored.org/misc/wget/current/wget.exe" >> .\bin\downloadwget.vbs
echo strHDLocation = "wget.exe" >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo ' Fetch the file >> .\bin\downloadwget.vbs
echo Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP") >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo objXMLHTTP.open "GET", strFileURL, false >> .\bin\downloadwget.vbs
echo objXMLHTTP.send() >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo If objXMLHTTP.Status = 200 Then >> .\bin\downloadwget.vbs
echo Set objADOStream = CreateObject("ADODB.Stream") >> .\bin\downloadwget.vbs
echo objADOStream.Open >> .\bin\downloadwget.vbs
echo objADOStream.Type = 1 'adTypeBinary >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo objADOStream.Write objXMLHTTP.ResponseBody >> .\bin\downloadwget.vbs
echo objADOStream.Position = 0 'Set the stream position to the start >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo Set objFSO = Createobject("Scripting.FileSystemObject") >> .\bin\downloadwget.vbs
echo If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile strHDLocation >> .\bin\downloadwget.vbs
echo Set objFSO = Nothing >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo objADOStream.SaveToFile strHDLocation >> .\bin\downloadwget.vbs
echo objADOStream.Close >> .\bin\downloadwget.vbs
echo Set objADOStream = Nothing >> .\bin\downloadwget.vbs
echo End if >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo Set objXMLHTTP = Nothing >> .\bin\downloadwget.vbs
exit /b
:EXECUTEWGETDOWNLOADER
cls
title PORTABLE KAERU SETUP LAUNCHER - DOWNLOAD WGET
cscript.exe .\bin\downloadwget.vbs
move wget.exe .\bin\
exit /b
:MENU
cls
set "nag=this project has been long since abandoned please visit https://kaeru.world/go/gallerysetup"
title PORTABLE KAERU SETUP - JOIN TYPE
echo !NAG!
set nag=SELECTION TIME!
echo 1. CIA (Not recommended anymore, use another method)
echo 2. HANS (Choose this if you dont have CFW or are unsure)
echo 3. NTR (Choose this if you have cfw but dont wish to modify the original)
echo 4. IPS (For Luma v7 users the better patch :^) )
echo 5. Exit
echo.
echo a. Write the original work and launch it
echo.
echo b. open https://kaeru.world/go/gallerysetup
echo.
set /p choice="Enter a number and press enter to confirm: "
if "%choice%"=="1" goto KAERUCIA
if "%choice%"=="2" goto KAERUHANS
if "%choice%"=="3" goto KAERUNTR
if "%choice%"=="4" goto KAERUIPS
if "%choice%"=="5" exit
if "%choice%"=="a" goto original
set nag="PLEASE SELECT A CHOICE 1-5"
goto MENU
:B
start "https://kaeru.world/go/gallerysetup"
exit /b
:NULL
cls
set nag="NOT A FEATURE YET!"
exit /b
:HOWEVEN
cls
set nag="I DONT KNOW HOW YOU GOT HERE... BUT WELL... YEA... HEY"
exit /b
:KAERUCIA
cls
set type=CIA
set nag="PLEASE CHOOSE YOUR REGION"
goto KAERUMENU
:KAERUHANS
cls
set type=HANS
set nag="PLEASE CHOOSE YOUR REGION"
goto KAERUMENU
:KAERUNTR
cls
set type=NTR
set nag="PLEASE CHOOSE YOUR REGION"
goto KAERUMENU
:KAERUIPS
cls
:: intercepted bitch :^)
goto KAERUIPSCHECK
:: end intercept
set type=IPS
set nag="PLEASE CHOOSE YOUR REGION"
goto KAERUMENU
:KAERUMENU
cls
title PORTABLE KAERU SETUP - %type% SETUP
echo !NAG!
set nag=SELECTION TIME!
echo USA (for all USA versions)
echo EUR (for all EURope versions)
echo JPN (for all JaPaNese versions)
echo type menu to return to the kaeru setup menu
set /p region="Type your region and press enter to confirm: "
if "%region%"=="USA" goto KAERU%type%CHECK
if "%region%"=="EUR" goto KAERU%type%CHECK
if "%region%"=="JPN" goto KAERU%type%CHECK
if "%region%"=="menu" goto MENU
set nag="PLEASE SELECT A CHOICE FROM THE LIST TYPE IN UPPERCASE"
goto KAERUMENU
:KAERUCIACHECK
cls
if not exist .\data\sd\cia\%region%.cia goto DOWNLOADKAERUCIA
:: this command crashes... what the actual fuck?
goto KAERUSDSET
:DOWNLOADKAERUCIA
cls
if "%region%"=="JPN" call :NULL & goto KAERUMENU
if exist %region%.cia goto MOVEKAERUCIA
if not exist .\bin\wget.exe call :DOWNLOADWGET
:: by putting .\bin\wget.exe -q --show-progress here
.\bin\wget.exe http://dl.projectkaeru.xyz/cia/%region%.cia
:MOVEKAERUCIA
cls
if not exist .\data\sd\cia\ mkdir .\data\sd\cia\
move %region%.cia .\data\sd\cia\%region%.cia
goto KAERUCIACHECK
:KAERUHANSREGIONCHECK
if "%region%"=="USA" set titleid="000c6600"
if "%region%"=="EUR" set titleid="000c6700"
exit /b
:KAERUHANSCHECK
call :KAERUHANSREGIONCHECK
if "%region%"=="JPN" call :NULL
if "%region%"=="JPN" goto KAERUMENU
cls
if not exist .\data\sd\hans\%titleid%.code goto DOWNLOADKAERUHANS
if not exist .\data\sd\hans\%titleid%.romfs goto DOWNLOADKAERUHANS
goto KAERUSDSET
:DOWNLOADKAERUHANS
cls
if exist %titleid%.code goto MOVEKAERUHANS
if not exist .\bin\wget.exe call :DOWNLOADWGET
:: YET THIS IS FLIPPING UNAFFECTED ;-;
.\bin\wget.exe -q --show-progress http://dl.projectkaeru.xyz/hans/hans/%titleid%.code
.\bin\wget.exe -q --show-progress http://dl.projectkaeru.xyz/hans/hans/%titleid%.romfs
:MOVEKAERUHANS
cls
if not exist .\data\sd\hans\ mkdir .\data\sd\hans\
move %titleid%.code .\data\sd\hans\%titleid%.code
move %titleid%.romfs .\data\sd\hans\%titleid%.romfs
goto KAERUHANSCHECK
:KAERUNTRREGIONCHECK
if "%region%"=="USA" set titleid="00040000000c6600"
if "%region%"=="USA" set shortcode=US
if "%region%"=="EUR" set titleid="00040000000c6700"
if "%region%"=="EUR" set shortcode=EU
exit /b
:KAERUNTRCHECK
call :KAERUNTRREGIONCHECK
if "%region%"=="JPN" call :NULL
if "%region%"=="JPN" goto KAERUMENU
cls
if not exist .\data\sd\plugin\%titleid%\ mkdir .\data\sd\plugin\%titleid%\
if not exist .\data\sd\%titleid%\messageData\%shortcode%_English\ mkdir .\data\sd\%titleid%\messageData\%shortcode%_English\
if not exist .\data\sd\%titleid%\messageData\%shortcode%_English\LayoutMessage.blz goto DOWNLOADKAERUNTR
if not exist .\data\sd\%titleid%\messageData\%shortcode%_English\SystemMessage.blz goto DOWNLOADKAERUNTR
if not exist .\data\sd\plugin\%titleid%\layeredfs.plg goto DOWNLOADKAERUNTR
goto KAERUSDSET
:DOWNLOADKAERUNTR
cls
if exist %titleid%.code goto MOVEKAERUNTR
if not exist .\bin\wget.exe call :DOWNLOADWGET
.\bin\wget.exe -q --show-progress http://dl.projectkaeru.xyz/ntr/%region%/%titleid%/messageData/%shortcode%_English/LayoutMessage.blz
.\bin\wget.exe -q --show-progress http://dl.projectkaeru.xyz/ntr/%region%/%titleid%/messageData/%shortcode%_English/SystemMessage.blz
.\bin\wget.exe -q --show-progress http://dl.projectkaeru.xyz/ntr/%region%/plugin/%titleid%/layeredfs.plg
:MOVEKAERUNTR
cls
move LayoutMessage.blz .\data\sd\%titleid%\messageData\%shortcode%_English\
move SystemMessage.blz .\data\sd\%titleid%\messageData\%shortcode%_English\
move layeredfs.plg .\data\sd\plugin\%titleid%\
goto KAERUNTRCHECK
:KAERUIPSCHECK
REM call :KAERUIPSREGION
REM if "%region%"=="JPN" call :NULL
REM if "%region%"=="JPN" goto KAERUMENU
cls
if not exist .\extra\ips.zip goto DOWNLOADKAERUIPS
goto EXTRACTKAERUIPS
:DOWNLOADKAERUIPS
cls
if exist ips.zip goto MOVEKAERUIPS
if not exist .\bin\wget.exe call :DOWNLOADWGET
.\bin\wget.exe -q --show-progress http://dl.projectkaeru.xyz/ips.zip
:MOVEKAERUIPS
cls
move ips.zip .\extra\ips.zip
goto KAERUIPSCHECK
:EXTRACTKAERUIPS
cls
set folder=%CD%
if %CD%==%~d0\ set folder=%CD:~0,2%
cls
echo. > .\bin\extractkaeruzip.vbs
echo 'The location of the zip file. >> .\bin\extractkaeruzip.vbs
echo ZipFile="%folder%\extra\ips.zip" >> .\bin\extractkaeruzip.vbs
echo 'The folder the contents should be extracted to. >> .\bin\extractkaeruzip.vbs
echo ExtractTo="%folder%\data\sd\" >> .\bin\extractkaeruzip.vbs
echo. >> .\bin\extractkaeruzip.vbs
echo 'If the extraction location does not exist create it. >> .\bin\extractkaeruzip.vbs
echo Set fso = CreateObject("Scripting.FileSystemObject") >> .\bin\extractkaeruzip.vbs
echo If NOT fso.FolderExists(ExtractTo) Then >> .\bin\extractkaeruzip.vbs
echo fso.CreateFolder(ExtractTo) >> .\bin\extractkaeruzip.vbs
echo End If >> .\bin\extractkaeruzip.vbs
echo. >> .\bin\extractkaeruzip.vbs
echo 'Extract the contants of the zip file. >> .\bin\extractkaeruzip.vbs
echo set objShell = CreateObject("Shell.Application") >> .\bin\extractkaeruzip.vbs
echo set FilesInZip=objShell.NameSpace(ZipFile).items >> .\bin\extractkaeruzip.vbs
echo objShell.NameSpace(ExtractTo).CopyHere(FilesInZip) >> .\bin\extractkaeruzip.vbs
echo Set fso = Nothing >> .\bin\extractkaeruzip.vbs
echo Set objShell = Nothing >> .\bin\extractkaeruzip.vbs
echo. >> .\bin\extractkaeruzip.vbs
title PORTABLE KAERU SETUP LAUNCHER - EXTRACT ZIP
cscript.exe .\bin\extractkaeruzip.vbs
goto KAERUSDSET
:KAERUSDSET
cls
title PORTABLE KAERU SETUP - %type% SETUP - MOVE2SD
echo ================================================
echo =Insert your 3DS SDCARD into the computer now =
echo ================================================
echo =Please insert your 3DS's SDCARD into your =
echo =computer now. When it has been mounted, type =
echo =the drive letter at the prompt, then press =
echo =enter. Ensure that the drive letter is in =
echo =UPPERCASE and thet you don't include the ":" =
echo ================================================
echo =Setup sd card for homebrew coming soon(tm) =
echo ================================================
echo.
set /P driveletter="What is the drive letter:"
echo Are you sure this is the right drive: %driveletter%:
echo.
set /P choice="Is this the right drive (y/n):"
if %choice%==y goto MOVEFILES
if %choice%==n goto KAERUSDSET
goto KAERUSDSET
:MOVEFILES
xcopy ".\data\sd\%type%\*" "%driveletter%:\%type%\" /e /i /y
:SETUPCOMPLETE
cls
title PORTABLE KAERU SETUP - %type% SETUP - ALMOST DONE!
echo Almost done!
echo Remove your SDCARD from the PC and re-insert it into your 3DS
echo.
if "%type%"=="CIA" echo For CIA:
if "%type%"=="CIA" echo Turn on your 3DS and open FBI
if "%type%"=="CIA" echo Click SD
if "%type%"=="CIA" echo Using the arrow keys and the A button navigate to the cia folder
if "%type%"=="CIA" echo When you are in this folder hit A while <current directory> is highlighted
if "%type%"=="CIA" echo Then hit Install all CIAs and say yes to any prompts.
if "%type%"=="CIA" echo Now exit FBI, and Flipnote Studio 3D should appear on your homemenu
if "%type%"=="CIA" echo.
if "%type%"=="HANS" echo For HANS:
if "%type%"=="HANS" echo Open the Homebrew Lsiuncher thriugh your desired entrypoing and select
if "%type%"=="HANS" echo HANS from the list. Using the left and right fpad buttons select Flipnote
if "%type%"=="HANS" echo Studio 3D from the list. Ensure both the ROMFS and CODE options are set
if "%type%"=="HANS" echo to yes.
if "%type%"=="HANS" echo.
if "%type%"=="NTR" echo For NTR:
if "%type%"=="NTR" echo Ensure you have NTR installed and setup. Launch the NTR app from the homebrew
if "%type%"=="NTR" echo menu and wait for it to load. Then open Flipnote Studio 3D from the homemenu.
if "%type%"=="NTR" echo.
if "%type%"=="IPS" echo For IPS:
if "%type%"=="IPS" echo Ensure you have the Luma3DS CFW installed. While booting the 3DS press and hold
if "%type%"=="IPS" echo Select until the configuration menu appears. Ensure you are running Luma v7.0 or
if "%type%"=="IPS" echo later. Using the up/down dpad buttons select Enable game patching. Press A untill
if "%type%"=="IPS" echo the "x" is in the parenthesis. It should look like this:
if "%type%"=="IPS" echo (x) Enable game patching.
if "%type%"=="IPS" echo Press Start to save the settings and boot the 3DS. Now launch Flipnote Studio 3DS
if "%type%"=="IPS" echo from the homemenu.
pause
exit
:ORIGINAL
echo @echo off > ProjectKaeruSetup.bat
echo del *.cia >> ProjectKaeruSetup.bat
echo :disclaimer >> ProjectKaeruSetup.bat
echo title Kaeru World Guided Setup >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo echo =Kaeru World is a free alternitave to the Japan Exclusive = >> ProjectKaeruSetup.bat
echo echo =Flipnote Gallery World. This service allows users of the = >> ProjectKaeruSetup.bat
echo echo =Flipnote Studio 3D application to upload their creations = >> ProjectKaeruSetup.bat
echo echo =for other users of Kaeru World to see. = >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo echo =The author of this program (MikeModder007) does not claim = >> ProjectKaeruSetup.bat
echo echo =any rights to the Kaeru World name or any of its assets. = >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo echo =This program is provided as-is. The author of this program = >> ProjectKaeruSetup.bat
echo echo =will not be held responsible for any damanges cause to any = >> ProjectKaeruSetup.bat
echo echo =system. Should something not work correctly, submit a = >> ProjectKaeruSetup.bat
echo echo =issue on GitHub. = >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo echo =Press any key to continue... = >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo echo =You are using a pre-release version of this software! = >> ProjectKaeruSetup.bat
echo echo =It's most likely buggy as all hell, and doesn't support = >> ProjectKaeruSetup.bat
echo echo =NTR yet. If you look at the sourcecode, you can = >> ProjectKaeruSetup.bat
echo echo =see the code for those options is commented out. = >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo echo =PRERELEASE VERSION 2 = >> ProjectKaeruSetup.bat
echo echo ============================================================= >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :jointype >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo ============================================================== >> ProjectKaeruSetup.bat
echo echo =How will you be accessing Kaeru World? = >> ProjectKaeruSetup.bat
echo echo ============================================================== >> ProjectKaeruSetup.bat
echo echo =1)CIA (Use only if you have a CFW) = >> ProjectKaeruSetup.bat
echo echo =2)HANS (Can be used without CFW via Homebrew) = >> ProjectKaeruSetup.bat
echo ::echo =3)NTR (CFW only, but leaves original install intact) = >> ProjectKaeruSetup.bat
echo echo ============================================================== >> ProjectKaeruSetup.bat
echo echo =Enter the number of your choice then press enter = >> ProjectKaeruSetup.bat
echo echo ============================================================== >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo set /P joinsel="Your Selection:" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo if %%joinsel%%==1 goto cia >> ProjectKaeruSetup.bat
echo if %%joinsel%%==2 goto hansregion >> ProjectKaeruSetup.bat
echo ::if %%joinsel%%==3 goto ntr >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo ERROR: Invalid choice! Press any key to retry... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto jointype >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :cia >> ProjectKaeruSetup.bat
echo if not exist wget.exe goto nowget >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo ================================== >> ProjectKaeruSetup.bat
echo echo =What region is your 3DS system? = >> ProjectKaeruSetup.bat
echo echo ================================== >> ProjectKaeruSetup.bat
echo echo =To check, open System settings = >> ProjectKaeruSetup.bat
echo echo =and look in the bottom right. = >> ProjectKaeruSetup.bat
echo echo =If you 3DS doesn't show any of = >> ProjectKaeruSetup.bat
echo echo =the listed below, go with the = >> ProjectKaeruSetup.bat
echo echo =one closest to your region. = >> ProjectKaeruSetup.bat
echo echo ================================== >> ProjectKaeruSetup.bat
echo echo =(U)SA - America and Canada = >> ProjectKaeruSetup.bat
echo echo =(E)urope - European Countries = >> ProjectKaeruSetup.bat
echo echo ================================== >> ProjectKaeruSetup.bat
echo echo =Type your choice then hit enter = >> ProjectKaeruSetup.bat
echo echo ================================== >> ProjectKaeruSetup.bat
echo set /P region="Your choice:" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo if %%region%%==U goto usacia >> ProjectKaeruSetup.bat
echo if %%region%%==u goto usacia >> ProjectKaeruSetup.bat
echo if %%region%%==E goto eurcia >> ProjectKaeruSetup.bat
echo if %%region%%==e goto eurcia >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Invalid selection! Press any key to retry... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto cia >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :usacia >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo Downlaoding USA cia... >> ProjectKaeruSetup.bat
echo wget http://dl.projectkaeru.xyz/cia/USA.cia >> ProjectKaeruSetup.bat
echo if not exist usa.cia goto ciadlfail >> ProjectKaeruSetup.bat
echo echo Downloaded USA cia! >> ProjectKaeruSetup.bat
echo rename usa.cia ProjectKaeru.cia >> ProjectKaeruSetup.bat
echo echo Press any key to move on to the next step... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto getsd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :eurcia >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo Downloading EUR cia... >> ProjectKaeruSetup.bat
echo wget http://dl.projectkaeru.xyz/cia/EUR.cia >> ProjectKaeruSetup.bat
echo if not exist eur.cia goto ciadlfail >> ProjectKaeruSetup.bat
echo echo Downloaded EUR CIA! >> ProjectKaeruSetup.bat
echo rename eur.cia ProjectKaeru.cia >> ProjectKaeruSetup.bat
echo echo Press any key to move on to the next step... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto getsd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :ciadlfail >> ProjectKaeruSetup.bat
echo echo ERROR: CIA Failed to download. >> ProjectKaeruSetup.bat
echo echo Press any key to return the the region selection menu... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto cia >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :getsd >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo ================================================ >> ProjectKaeruSetup.bat
echo echo =Instert your 3DS SDCARD into the computer now = >> ProjectKaeruSetup.bat
echo echo ================================================ >> ProjectKaeruSetup.bat
echo echo =Please instert you 3DS SDCARD into your = >> ProjectKaeruSetup.bat
echo echo =computer now. When it has been mounted, type = >> ProjectKaeruSetup.bat
echo echo =the drive letter at the prompt, them press = >> ProjectKaeruSetup.bat
echo echo =enter. Ensure that the drive letter is in = >> ProjectKaeruSetup.bat
echo echo =UPPERCASE and thet you don't include the colon= >> ProjectKaeruSetup.bat
echo echo ================================================ >> ProjectKaeruSetup.bat
echo set /P driveletter="What is the drive letter:" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Are you sure this is the right drive: %%driveletter%%: >> ProjectKaeruSetup.bat
echo set /P rightdrive="Is this the right drive (Y/N):" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==y goto movecia >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==Y goto movecia >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==n goto getsd >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==N goto getsd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Invalid choice. Press any key to return... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto getsd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :movecia >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo mkdir %%driveletter%%:\ProjectKaeru\ >> ProjectKaeruSetup.bat
echo del %%driveletter%%:\ProjectKaeru\*.cia >> ProjectKaeruSetup.bat
echo echo Moving ProjectKaeru.cia to %%driveletter%%:\ProjectKaeru\ >> ProjectKaeruSetup.bat
echo copy *.cia %%driveletter%%:\ProjectKaeru\ >> ProjectKaeruSetup.bat
echo if not exist %%driveletter%%:\ProjectKaeru\ProjectKaeru.cia goto ciamovefail >> ProjectKaeruSetup.bat
echo echo Press any key to continue... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto ciaon3ds >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :ciamovefail >> ProjectKaeruSetup.bat
echo echo ERROR: Failed to move files to SDCARD. Are you sure you entred the right driver letter? >> ProjectKaeruSetup.bat
echo echo Press any key to return to the SDCARD menu... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto getsd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :ciaon3ds >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo Almost done! >> ProjectKaeruSetup.bat
echo echo Remove your SDCARD from the PC and re-insert it in your 3DS >> ProjectKaeruSetup.bat
echo echo Turn on your 3DS and open FBI >> ProjectKaeruSetup.bat
echo echo Click SD >> ProjectKaeruSetup.bat
echo echo Using the arrow keys and the A button navigate to the ProjectKaeru folder >> ProjectKaeruSetup.bat
echo echo When you are in this folder hit A while ^<current directory^> is highlighted >> ProjectKaeruSetup.bat
echo echo Then hit Install all CIAs and say yes to any prompts. >> ProjectKaeruSetup.bat
echo echo Now exit FBI, and Flipnote Studio 3D should appear on your homemenu >> ProjectKaeruSetup.bat
echo echo To acess Kaeru World open Flipnote Studio 3D and hit the right arrow >> ProjectKaeruSetup.bat
echo echo Then click the box that says Kaeru World. >> ProjectKaeruSetup.bat
echo echo Congrats, you have now joined Kaeru World! >> ProjectKaeruSetup.bat
echo echo. >> ProjectKaeruSetup.bat
echo echo To exit, hit the X button on the window. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :inloop >> ProjectKaeruSetup.bat
echo goto inloop >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :hans >> ProjectKaeruSetup.bat
echo if not exist wget.exe goto nowget >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo =Do you already have HANS in your 3DS homebrew? = >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo =(Y)es - I already have HANS = >> ProjectKaeruSetup.bat
echo echo =(N)o - I Dont have HANS = >> ProjectKaeruSetup.bat
echo echo =(D)ont Know - I am unsure if I have HANS = >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo =Enter your selection then press enter... = >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo. >> ProjectKaeruSetup.bat
echo set /P hashans="Your choice:" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo if %%hashans%%==Y goto hansregion >> ProjectKaeruSetup.bat
echo if %%hashans%%==y goto hansregion >> ProjectKaeruSetup.bat
echo if %%hashans%%==N goto gethans >> ProjectKaeruSetup.bat
echo if %%hashans%%==n goto gethans >> ProjectKaeruSetup.bat
echo if %%hashans%%==D goto gethans >> ProjectKaeruSetup.bat
echo if %%hashans%%==d goto gethans >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Invalid choice. Press any key to retry... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto hans >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :hansregion >> ProjectKaeruSetup.bat
echo echo ================================================== >> ProjectKaeruSetup.bat
echo echo =What version of Flipnote Studio 3D do you have? = >> ProjectKaeruSetup.bat
echo echo ================================================== >> ProjectKaeruSetup.bat
echo echo =Is your copy of FS3D from: = >> ProjectKaeruSetup.bat
echo echo = = >> ProjectKaeruSetup.bat
echo echo =(U)SA - America and Canada = >> ProjectKaeruSetup.bat
echo echo =(E)urope - European Countries = >> ProjectKaeruSetup.bat
echo echo ================================================== >> ProjectKaeruSetup.bat
echo echo =Enter your selection then press enter... = >> ProjectKaeruSetup.bat
echo echo ================================================== >> ProjectKaeruSetup.bat
echo echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo set /P hregion="Your choice:" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo if %%hregion%%==U goto hansus >> ProjectKaeruSetup.bat
echo if %%hregion%%==u goto hansus >> ProjectKaeruSetup.bat
echo if %%hregion%%==E goto hanseur >> ProjectKaeruSetup.bat
echo if %%hregion%%==e goto hanseur >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Invalid selection. Press any key to retry... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto hans >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :hansus >> ProjectKaeruSetup.bat
echo wget https://dl.projectkaeru.xyz/hans/hans/000c6600.code >> ProjectKaeruSetup.bat
echo wget https://dl.projectkaeru.xyz/hans/hans/000c6600.romfs >> ProjectKaeruSetup.bat
echo if not exist 000c6600.code goto hansdlfail >> ProjectKaeruSetup.bat
echo if not exist 000c6600.romfs goto hansdlfail >> ProjectKaeruSetup.bat
echo goto hanstosd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :hanseur >> ProjectKaeruSetup.bat
echo wget https://dl.projectkaeru.xyz/hans/hans/000c6700.code >> ProjectKaeruSetup.bat
echo wget https://dl.projectkaeru.xyz/hans/hans/000c6700.romfs >> ProjectKaeruSetup.bat
echo if not exist 000c6700.code goto hansdlfail >> ProjectKaeruSetup.bat
echo if not exist 000c6700.romfs goto hansdlfail >> ProjectKaeruSetup.bat
echo goto hanstosd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :hanstosd >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo ================================================ >> ProjectKaeruSetup.bat
echo echo =Instert your 3DS SDCARD into the computer now = >> ProjectKaeruSetup.bat
echo echo ================================================ >> ProjectKaeruSetup.bat
echo echo =Please instert your 3DS SDCARD into your = >> ProjectKaeruSetup.bat
echo echo =computer now. When it has been mounted, type = >> ProjectKaeruSetup.bat
echo echo =the drive letter at the prompt, them press = >> ProjectKaeruSetup.bat
echo echo =enter. Ensure that the drive letter is in = >> ProjectKaeruSetup.bat
echo echo =UPPERCASE and thet you don't include the colon= >> ProjectKaeruSetup.bat
echo echo ================================================ >> ProjectKaeruSetup.bat
echo set /P driveletter="What is the drive letter:" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Are you sure this is the right drive: %%driveletter%%: >> ProjectKaeruSetup.bat
echo set /P rightdrive="Is this the right drive (Y/N):" >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==y goto movehans >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==Y goto movehans >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==n goto hanstosd >> ProjectKaeruSetup.bat
echo if %%rightdrive%%==N goto hanstosd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo echo Invalid choice. Press any key to return... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo goto hanstosd >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :movehans >> ProjectKaeruSetup.bat
echo if not exist %%driveletter%%:\hans mkdir %%driveletter%%:\hans >> ProjectKaeruSetup.bat
echo copy *.code %%driveletter%%:\hans >> ProjectKaeruSetup.bat
echo copy *.romfs %%driveletter%%:\hans >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :hansdlfail >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo The download of the HANS file(s) failed. >> ProjectKaeruSetup.bat
echo echo echo Press any key to return to the HANS menu... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo echo echo goto hans >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :gethans >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo =You can get HANS and the homebrew starter kit = >> ProjectKaeruSetup.bat
echo echo =by going to https://smealum.github.io/3ds/ = >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo =After you have HANS come back an re-run this = >> ProjectKaeruSetup.bat
echo echo =wizard. See you soon! = >> ProjectKaeruSetup.bat
echo echo ================================================= >> ProjectKaeruSetup.bat
echo echo. >> ProjectKaeruSetup.bat
echo echo Press any key to terminate this application... >> ProjectKaeruSetup.bat
echo pause ^> null >> ProjectKaeruSetup.bat
echo exit >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :ntr >> ProjectKaeruSetup.bat
echo if not exist wget.exe goto nowget >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo pause >> ProjectKaeruSetup.bat
echo exit >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :nowget >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo FATAL: wget binary not found! Try redownloading ProjectKaeruSetupWizard.exe or >> ProjectKaeruSetup.bat
echo echo manually placing wget.exe in the same directory as ProjectKaeruSetupWizard.exe! >> ProjectKaeruSetup.bat
echo pause >> ProjectKaeruSetup.bat
echo exit >> ProjectKaeruSetup.bat
echo. >> ProjectKaeruSetup.bat
echo :nounzip >> ProjectKaeruSetup.bat
echo cls >> ProjectKaeruSetup.bat
echo echo FATAL: unzip binary not found! Try redownloading ProjectKaeruSetup.exe or manually >> ProjectKaeruSetup.bat
echo echo placing unzip.exe in the same directory as ProjectKaeruSetup.exe! >> ProjectKaeruSetup.bat
cls
echo FEEL THE NOSTALGIA :D
pause
start ProjectKaeruSetup.bat
exit