-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwitchBros_NOOB-O-MAT.bat
692 lines (632 loc) · 35.2 KB
/
SwitchBros_NOOB-O-MAT.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
@ECHO OFF
mode con: cols=106 lines=32
SETLOCAL ENABLEDELAYEDEXPANSION
chcp 1252 >nul 2>&1
title SwitchBros. NOOB-O-MAT v120
REM Dieses Skript basiert auf der Batch-Datei von rashevskyv's Kefir Paket!
REM RIESEN DANK!!! an diesen tollen Entwickler!
REM Dieses Skript wurde um einiges erweitert, ergänzt und verbessert!
COLOR 0E
set wd=%temp%\sdfiles
set sd=%1
REM if not defined %sd% (GOTO hauptmenue)
REM ============================================================
:willkommen
type "%~dp0SwitchBros.txt"
pause>nul 2>&1
REM ============================================================
:neuekarte
COLOR 0C
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo _-== WARNUNG - WARNUNG - WARNUNG - WARNUNG - WARNUNG ==-_
echo.
echo Wenn du dieses Skript (NOOB-O-MAT.bat) von deiner SD-Karte aus gestartet hast, dann
echo SCHLIESSE es bitte SOFORT^^! NICHT von SD-Karte aus starten^^!
echo.
echo Bitte starte die NOOB-O-MAT.bat ^>NUR^< aus dem "BasisPaket" Ordner von deinem PC^^!
echo.
echo =====================================================================================================
echo.
echo Hast du dieses Skript aus dem "SwitchBros_BasisPaket" heraus gestartet, dann gib jetzt
echo bitte ^>NUR^< den Laufwerksbuchstaben deiner SD-Karte ein^^!
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
for /f "usebackq delims=" %%a in (`powershell -command "$ErrorActionPreference='Stop'; $sd = Get-WmiObject -Class Win32_Volume | Where-Object {$_.DriveType -eq 2}; foreach ($s in $sd) { 'Laufwerksbuchstabe: {0}' -f $s.DriveLetter; if ($s.Label) { 'Laufwerk: {0}' -f $s.Label }; 'Dateisystem: {0}' -f $s.FileSystem; $size = [math]::Round($s.Capacity / 1GB, 2); if ($size -ge 1) { 'Groesse: {0} GB' -f $size } else { 'Groesse: {0} MB' -f ($s.Capacity / 1MB) }; 'Belegt: {0} GB' -f ([math]::Round(($s.Capacity - $s.FreeSpace) / 1GB, 2)); 'Frei: {0} GB' -f ([math]::Round($s.FreeSpace / 1GB, 2)) }"`) do (
echo %%a
)
echo.
set /p "sd= Bitte gib den Laufwerksbuchstaben der SD-Karte an: "
if not exist "%sd%:\" (
set word= Es befindet sich keine SD-Karte im Laufwerk %sd%
GOTO falschesdkarte
) else (
if not exist "%sd%:\*" (
GOTO falschesdkarte
)
)
REM ============================================================
:modchip
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Wenn du einen Modchip in deiner Konsole hast, dann gib es bitte hier an^^!
echo.
echo 0 = Nein, ich habe keinen Modchip verbaut
echo 1 = Ja, ich habe einen Modchip verbaut (v2, lite, OLED)
echo 2 = Ja, ich habe einen trinketm0 in meiner v1
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
set /p modchip=" Ist ein Modchip verbaut: "
if "%modchip%"=="0" SET bootdat=0
if "%modchip%"=="1" SET bootdat=1
if "%modchip%"=="2" SET bootdat=2
REM ============================================================
:datensichern
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Backups einiger Dateien werden erstellt^^!
echo.
echo BITTE WARTEN...^^!
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
set "BackupFolder=%sd%:\Backup"
set "SBBAK=%BackupFolder%\SB"
if not exist "%SBBAK%" (
mkdir "%SBBAK%" >nul 2>&1
)
set "folders=bootloader Fizeau IconGrabber tinfoil bootlogo DBI"
for %%i in (%folders%) do (
if not exist "%SBBAK%\%%i" (
mkdir "%SBBAK%\%%i" >nul 2>&1
)
)
if exist "%sd%:\bootloader\hekate_ipl.ini" (
xcopy /I /Y "%sd%:\bootloader\hekate_ipl.ini" "%SBBAK%\bootloader\" >nul 2>&1
)
if exist "%sd%:\bootloader\nyx.ini" (
xcopy /I /Y "%sd%:\bootloader\nyx.ini" "%SBBAK%\bootloader\" >nul 2>&1
)
if exist "%sd%:\config\Fizeau\config.ini" (
xcopy /I /Y "%sd%:\config\Fizeau\config.ini" "%SBBAK%\Fizeau\" >nul 2>&1
)
if exist "%sd%:\config\IconGrabber\config.json" (
xcopy /I /Y "%sd%:\config\IconGrabber\config.json" "%SBBAK%\IconGrabber\" >nul 2>&1
)
if exist "%sd%:\switch\tinfoil\locations.conf" (
xcopy /I /Y "%sd%:\switch\tinfoil\locations.conf" "%SBBAK%\tinfoil\" >nul 2>&1
)
if exist "%sd%:\switch\tinfoil\options.json" (
xcopy /I /Y "%sd%:\switch\tinfoil\options.json" "%SBBAK%\tinfoil\" >nul 2>&1
)
if exist "%sd%:\atmosphere\exefs_patches\bootlogo\*" (
xcopy /I /Y "%sd%:\atmosphere\exefs_patches\bootlogo\*" "%SBBAK%\bootlogo\" >nul 2>&1
)
if exist "%sd%:\switch\DBI\dbi.config" (
xcopy /I /Y "%sd%:\switch\DBI\dbi.config" "%SBBAK%\DBI\" >nul 2>&1
)
REM ============================================================
:hauptmenue
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo 1 = SD-Karte einrichten, und SwitchBros. Paket installieren^^!
echo.
echo.
echo F = Unsicher, altes Paket behalten B = Dieses Skript Beenden
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
set /p neuistgut=" Bitte gib deine Auswahl ein: "
if "%neuistgut%"=="1" GOTO sbgibgas
if /i "%neuistgut%"=="F" GOTO endefeige
if /i "%neuistgut%"=="B" GOTO endemutig
REM ============================================================
:endefeige
ECHO OFF
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo JA GENAU, HAU DOCH AB DU LUTSCHA^^!^^!^^!
echo.
echo BLEIB BEI DEINEM BLOEDEN PAKET^^!
echo ZIEHE NICHT UEBER LOS^^! UND STREICHE KEINE 2000 EURO EIN^^!
echo.
echo.
echo.
echo Das Programm schliesst sich von selbst, falls du zu bloed bist die Eingabetaste zu druecken^^!^^!^^!
echo -----------------------------------------------------------------------------------------------------
echo.
powershell -Command "Start-Sleep -Seconds 10"
exit
REM ======= ATMOSPHERE ORDNER ==================================
:sbgibgas
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Deine SD-Karte wird jetzt vorbereitet und alle dafuer Notwendigen Daten geloescht^^!
echo.
echo.
echo.
echo BITTE WARTEN...
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
if exist "%sd%:\atmosphere\titles" (rename %sd%:\atmosphere\titles contents)
if exist "%sd%:\atmosphere\title" (rename %sd%:\atmosphere\title contents)
if exist "%sd%:\atmosphere\content" (rename %sd%:\atmosphere\content contents)
if exist "%sd%:/SB.ico" (
if exist "%sd%:\atmosphere\config" (RD /S /Q "%sd%:\atmosphere\config")
if exist "%sd%:\atmosphere\config_templates" (RD /S /Q "%sd%:\atmosphere\config_templates")
if exist "%sd%:\atmosphere\erpt_reports" (RD /S /Q "%sd%:\atmosphere\erpt_reports")
if exist "%sd%:\atmosphere\crash_reports" (RD /S /Q "%sd%:\atmosphere\crash_reports")
if exist "%sd%:\atmosphere\exefs_patches" (RD /S /Q "%sd%:\atmosphere\exefs_patches")
if exist "%sd%:\atmosphere\extras" (RD /S /Q "%sd%:\atmosphere\extras")
if exist "%sd%:\atmosphere\fatal_errors" (RD /S /Q "%sd%:\atmosphere\fatal_errors")
if exist "%sd%:\atmosphere\fatal_reports" (RD /S /Q "%sd%:\atmosphere\fatal_reports")
if exist "%sd%:\atmosphere\flags" (RD /S /Q "%sd%:\atmosphere\flags")
if exist "%sd%:\atmosphere\hosts" (RD /S /Q "%sd%:\atmosphere\hosts")
if exist "%sd%:\atmosphere\kips" (RD /S /Q "%sd%:\atmosphere\kips")
if exist "%sd%:\atmosphere\kip_patches" (RD /S /Q "%sd%:\atmosphere\kip_patches")
if exist "%sd%:\atmosphere\hekate_kips" (RD /S /Q "%sd%:\atmosphere\hekate_kips")
if exist "%sd%:\atmosphere\logs" (RD /S /Q "%sd%:\atmosphere\logs")
if exist "%sd%:\atmosphere\update" (RD /S /Q "%sd%:\atmosphere\update")
if exist "%sd%:\atmosphere\package3" (DEL /F "%sd%:\atmosphere\package3")
if exist "%sd%:\atmosphere\*.bin" (DEL /F "%sd%:\atmosphere\*.bin")
if exist "%sd%:\atmosphere\*.nsp" (DEL /F "%sd%:\atmosphere\*.nsp")
if exist "%sd%:\atmosphere\*.romfs" (DEL /F "%sd%:\atmosphere\*.romfs")
if exist "%sd%:\atmosphere\*.sig" (DEL /F "%sd%:\atmosphere\*.sig")
if exist "%sd%:\atmosphere\*.json" (DEL /F "%sd%:\atmosphere\*.json")
if exist "%sd%:\atmosphere\*.ini" (DEL /F "%sd%:\atmosphere\*.ini")
if exist "%sd%:\atmosphere\contents\0100000000001000" (RD /S /Q "%sd%:\atmosphere\contents\0100000000001000")
if exist "%sd%:\atmosphere\contents\0100000000001007" (RD /S /Q "%sd%:\atmosphere\contents\0100000000001007")
if exist "%sd%:\atmosphere\contents\0100000000001013" (RD /S /Q "%sd%:\atmosphere\contents\0100000000001013")
if exist "%sd%:\atmosphere\contents\010000000000000D" (RD /S /Q "%sd%:\atmosphere\contents\010000000000000D")
if exist "%sd%:\atmosphere\contents\0100000000000352" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000352")
if exist "%sd%:\atmosphere\contents\0000000000534C56" (RD /S /Q "%sd%:\atmosphere\contents\0000000000534C56")
if exist "%sd%:\atmosphere\contents\00FF0000000002AA" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000000002AA")
if exist "%sd%:\atmosphere\contents\00FF0000A53BB665" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000A53BB665")
if exist "%sd%:\atmosphere\contents\00FF0000636C6BFF" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000636C6BFF")
if exist "%sd%:\atmosphere\contents\00FF747765616BFF" (RD /S /Q "%sd%:\atmosphere\contents\00FF747765616BFF")
if exist "%sd%:\atmosphere\contents\0100000000000F12" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000F12")
if exist "%sd%:\atmosphere\contents\010000000000bd00" (RD /S /Q "%sd%:\atmosphere\contents\010000000000bd00")
if exist "%sd%:\atmosphere\contents\054e4f4558454000" (RD /S /Q "%sd%:\atmosphere\contents\054e4f4558454000")
if exist "%sd%:\atmosphere\contents\010000000007E51A" (RD /S /Q "%sd%:\atmosphere\contents\010000000007E51A")
if exist "%sd%:\atmosphere\contents\420000000007E51A" (RD /S /Q "%sd%:\atmosphere\contents\420000000007E51A")
if exist "%sd%:\atmosphere\contents\4200000000000000" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000000")
if exist "%sd%:\atmosphere\contents\4200000000000010" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000010")
if exist "%sd%:\atmosphere\contents\420000000000000E" (RD /S /Q "%sd%:\atmosphere\contents\420000000000000E")
if exist "%sd%:\atmosphere\contents\690000000000000D" (RD /S /Q "%sd%:\atmosphere\contents\690000000000000D")
if exist "%sd%:\bootloader\sys" (RD /S /Q "%sd%:\bootloader\sys")
if exist "%sd%:\bootloader\payloads" (RD /S /Q "%sd%:\bootloader\payloads")
if exist "%sd%:\bootloader\*.ini" (DEL /F "%sd%:\bootloader\*.ini")
if exist "%sd%:\bootloader\*.bin" (DEL /F "%sd%:\bootloader\*.bin")
if exist "%sd%:\bootloader\*.bmp" (DEL /F "%sd%:\bootloader\*.bmp")
if exist "%sd%:\config" (RD /S /Q "%sd%:\config")
if exist "%sd%:\switchbros" (RD /S /Q "%sd%:\switchbros")
if exist "%sd%:\tegraexplorer" (RD /S /Q "%sd%:\tegraexplorer")
if exist "%sd%:\firmware" (RD /S /Q "%sd%:\firmware")
if exist "%sd%:\switch\daybreak" (RD /S /Q "%sd%:\switch\daybreak")
if exist "%sd%:\switch\.overlays" (RD /S /Q "%sd%:\switch\.overlays")
if exist "%sd%:\switch\switchbros-updater\*.zip" (DEL /F "%sd%:\switch\switchbros-updater\*.zip")
if exist "%sd%:\switch\switchbros-updater\switchbros-updater.nro" (DEL /F "%sd%:\switch\switchbros-updater\switchbros-updater.nro")
if exist "%sd%:\switch\switchbros-updater\switchbros-updater.bin" (DEL /F "%sd%:\switch\switchbros-updater\switchbros-updater.bin")
if exist "%sd%:\switch\daybreak.nro" (DEL /F "%sd%:\switch\daybreak.nro")
if exist "%sd%:\switch\MicroMemBench" (RD /S /Q "%sd%:\switch\MicroMemBench")
if exist "%sd%:\switch\MicroMemTest" (RD /S /Q "%sd%:\switch\MicroMemTest")
if exist "%sd%:\switch\RaytracingNX" (RD /S /Q "%sd%:\switch\RaytracingNX")
if exist "%sd%:\switch\ReverseNX-Tool" (RD /S /Q "%sd%:\switch\ReverseNX-Tool")
if exist "%sd%:\switch\MicroMemBench.nro" (DEL /F "%sd%:\switch\MicroMemBench.nro")
if exist "%sd%:\switch\MicroMemTest.nro" (DEL /F "%sd%:\switch\MicroMemTest.nro")
if exist "%sd%:\switch\RaytracingNX.nro" (DEL /F "%sd%:\switch\RaytracingNX.nro")
if exist "%sd%:\switch\ReverseNX-Tool.nro" (DEL /F "%sd%:\switch\ReverseNX-Tool.nro")
if exist "%sd%:\*.nro" (DEL /F "%sd%:\*.nro")
if exist "%sd%:\*.ini" (DEL /F "%sd%:\*.ini")
if exist "%sd%:\*.txt" (DEL /F "%sd%:\*.txt")
if exist "%sd%:\*.bat" (DEL /F "%sd%:\*.bat")
if exist "%sd%:\*.bin" (DEL /F "%sd%:\*.bin")
) else (
if exist "%sd%:\backup\SB" (RD /S /Q "%sd%:\backup\SB")
if exist "%sd%:\atmosphere\config" (RD /S /Q "%sd%:\atmosphere\config")
if exist "%sd%:\atmosphere\config_templates" (RD /S /Q "%sd%:\atmosphere\config_templates")
if exist "%sd%:\atmosphere\erpt_reports" (RD /S /Q "%sd%:\atmosphere\erpt_reports")
if exist "%sd%:\atmosphere\crash_reports" (RD /S /Q "%sd%:\atmosphere\crash_reports")
if exist "%sd%:\atmosphere\exefs_patches" (RD /S /Q "%sd%:\atmosphere\exefs_patches")
if exist "%sd%:\atmosphere\extras" (RD /S /Q "%sd%:\atmosphere\extras")
if exist "%sd%:\atmosphere\fatal_errors" (RD /S /Q "%sd%:\atmosphere\fatal_errors")
if exist "%sd%:\atmosphere\fatal_reports" (RD /S /Q "%sd%:\atmosphere\fatal_reports")
if exist "%sd%:\atmosphere\flags" (RD /S /Q "%sd%:\atmosphere\flags")
if exist "%sd%:\atmosphere\hosts" (RD /S /Q "%sd%:\atmosphere\hosts")
if exist "%sd%:\atmosphere\kips" (RD /S /Q "%sd%:\atmosphere\kips")
if exist "%sd%:\atmosphere\kip_patches" (RD /S /Q "%sd%:\atmosphere\kip_patches")
if exist "%sd%:\atmosphere\hekate_kips" (RD /S /Q "%sd%:\atmosphere\hekate_kips")
if exist "%sd%:\atmosphere\logs" (RD /S /Q "%sd%:\atmosphere\logs")
if exist "%sd%:\atmosphere\update" (RD /S /Q "%sd%:\atmosphere\update")
if exist "%sd%:\atmosphere\package3" (DEL /F "%sd%:\atmosphere\package3")
if exist "%sd%:\atmosphere\*.bin" (DEL /F "%sd%:\atmosphere\*.bin")
if exist "%sd%:\atmosphere\*.nsp" (DEL /F "%sd%:\atmosphere\*.nsp")
if exist "%sd%:\atmosphere\*.romfs" (DEL /F "%sd%:\atmosphere\*.romfs")
if exist "%sd%:\atmosphere\*.sig" (DEL /F "%sd%:\atmosphere\*.sig")
if exist "%sd%:\atmosphere\*.json" (DEL /F "%sd%:\atmosphere\*.json")
if exist "%sd%:\atmosphere\*.ini" (DEL /F "%sd%:\atmosphere\*.ini")
REM ======= ATMOSPHERE CONTENTS ORDNER =========================
if exist "%sd%:\atmosphere\contents\0100000000000008" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000008")
if exist "%sd%:\atmosphere\contents\010000000000100B" (RD /S /Q "%sd%:\atmosphere\contents\010000000000100B")
if exist "%sd%:\atmosphere\contents\010000000000000D" (RD /S /Q "%sd%:\atmosphere\contents\010000000000000D")
if exist "%sd%:\atmosphere\contents\010000000000002b" (RD /S /Q "%sd%:\atmosphere\contents\010000000000002b")
if exist "%sd%:\atmosphere\contents\0100000000000032" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000032")
if exist "%sd%:\atmosphere\contents\0100000000000034" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000034")
if exist "%sd%:\atmosphere\contents\0100000000000036" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000036")
if exist "%sd%:\atmosphere\contents\0100000000000037" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000037")
if exist "%sd%:\atmosphere\contents\010000000000003C" (RD /S /Q "%sd%:\atmosphere\contents\010000000000003C")
if exist "%sd%:\atmosphere\contents\0100000000000042" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000042")
if exist "%sd%:\atmosphere\contents\010000000000100C" (RD /S /Q "%sd%:\atmosphere\contents\010000000000100C")
if exist "%sd%:\atmosphere\contents\010000000000100D" (RD /S /Q "%sd%:\atmosphere\contents\010000000000100D")
if exist "%sd%:\atmosphere\contents\0100000000001000" (RD /S /Q "%sd%:\atmosphere\contents\0100000000001000")
if exist "%sd%:\atmosphere\contents\0100000000001013" (RD /S /Q "%sd%:\atmosphere\contents\0100000000001013")
if exist "%sd%:\atmosphere\contents\0000000000534C56" (RD /S /Q "%sd%:\atmosphere\contents\0000000000534C56")
if exist "%sd%:\atmosphere\contents\00FF0000000002AA" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000000002AA")
if exist "%sd%:\atmosphere\contents\00FF0000636C6BF2" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000636C6BF2")
if exist "%sd%:\atmosphere\contents\00FF0000636C6BFF" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000636C6BFF")
if exist "%sd%:\atmosphere\contents\00FF00006D7470FF" (RD /S /Q "%sd%:\atmosphere\contents\00FF00006D7470FF")
if exist "%sd%:\atmosphere\contents\00FF0000A53BB665" (RD /S /Q "%sd%:\atmosphere\contents\00FF0000A53BB665")
if exist "%sd%:\atmosphere\contents\00FF0012656180FF" (RD /S /Q "%sd%:\atmosphere\contents\00FF0012656180FF")
if exist "%sd%:\atmosphere\contents\01FF415446660000" (RD /S /Q "%sd%:\atmosphere\contents\01FF415446660000")
if exist "%sd%:\atmosphere\contents\00FF747765616BFF" (RD /S /Q "%sd%:\atmosphere\contents\00FF747765616BFF")
if exist "%sd%:\atmosphere\contents\0100000000000052" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000052")
if exist "%sd%:\atmosphere\contents\0100000000000081" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000081")
if exist "%sd%:\atmosphere\contents\0100000000000352" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000352")
if exist "%sd%:\atmosphere\contents\0100000000000464" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000464")
if exist "%sd%:\atmosphere\contents\0100000000000523" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000523")
if exist "%sd%:\atmosphere\contents\0100000000000901" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000901")
if exist "%sd%:\atmosphere\contents\0100000000000BED" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000BED")
if exist "%sd%:\atmosphere\contents\0100000000000BEF" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000BEF")
if exist "%sd%:\atmosphere\contents\0100000000000DAD" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000DAD")
if exist "%sd%:\atmosphere\contents\0100000000000F12" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000F12")
if exist "%sd%:\atmosphere\contents\0100000000000FAF" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000FAF")
if exist "%sd%:\atmosphere\contents\0100000000006480" (RD /S /Q "%sd%:\atmosphere\contents\0100000000006480")
if exist "%sd%:\atmosphere\contents\0100000000007200" (RD /S /Q "%sd%:\atmosphere\contents\0100000000007200")
if exist "%sd%:\atmosphere\contents\010000000000bd00" (RD /S /Q "%sd%:\atmosphere\contents\010000000000bd00")
if exist "%sd%:\atmosphere\contents\010000000000C235" (RD /S /Q "%sd%:\atmosphere\contents\010000000000C235")
if exist "%sd%:\atmosphere\contents\010000000000f00f" (RD /S /Q "%sd%:\atmosphere\contents\010000000000f00f")
if exist "%sd%:\atmosphere\contents\010000000000FFAB" (RD /S /Q "%sd%:\atmosphere\contents\010000000000FFAB")
if exist "%sd%:\atmosphere\contents\01000000001ED1ED" (RD /S /Q "%sd%:\atmosphere\contents\01000000001ED1ED")
if exist "%sd%:\atmosphere\contents\0532232232232000" (RD /S /Q "%sd%:\atmosphere\contents\0532232232232000")
if exist "%sd%:\atmosphere\contents\054e4f4558454000" (RD /S /Q "%sd%:\atmosphere\contents\054e4f4558454000")
if exist "%sd%:\atmosphere\contents\2200000000000100" (RD /S /Q "%sd%:\atmosphere\contents\2200000000000100")
if exist "%sd%:\atmosphere\contents\4100000000000324" (RD /S /Q "%sd%:\atmosphere\contents\4100000000000324")
if exist "%sd%:\atmosphere\contents\4200000000000000" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000000")
if exist "%sd%:\atmosphere\contents\420000000000000E" (RD /S /Q "%sd%:\atmosphere\contents\420000000000000E")
if exist "%sd%:\atmosphere\contents\420000000000000F" (RD /S /Q "%sd%:\atmosphere\contents\420000000000000F")
if exist "%sd%:\atmosphere\contents\4200000000000010" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000010")
if exist "%sd%:\atmosphere\contents\4200000000000811" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000811")
if exist "%sd%:\atmosphere\contents\4200000000000BA6" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000BA6")
if exist "%sd%:\atmosphere\contents\4200000000000FFF" (RD /S /Q "%sd%:\atmosphere\contents\4200000000000FFF")
if exist "%sd%:\atmosphere\contents\010000000007E51A" (RD /S /Q "%sd%:\atmosphere\contents\010000000007E51A")
if exist "%sd%:\atmosphere\contents\420000000007E51A" (RD /S /Q "%sd%:\atmosphere\contents\420000000007E51A")
if exist "%sd%:\atmosphere\contents\4200000000474442" (RD /S /Q "%sd%:\atmosphere\contents\4200000000474442")
if exist "%sd%:\atmosphere\contents\4200000000696969" (RD /S /Q "%sd%:\atmosphere\contents\4200000000696969")
if exist "%sd%:\atmosphere\contents\4200000AF1E8DA89" (RD /S /Q "%sd%:\atmosphere\contents\4200000AF1E8DA89")
if exist "%sd%:\atmosphere\contents\42000062616B6101" (RD /S /Q "%sd%:\atmosphere\contents\42000062616B6101")
if exist "%sd%:\atmosphere\contents\4200736372697074" (RD /S /Q "%sd%:\atmosphere\contents\4200736372697074")
if exist "%sd%:\atmosphere\contents\4206900000000012" (RD /S /Q "%sd%:\atmosphere\contents\4206900000000012")
if exist "%sd%:\atmosphere\contents\430000000000000A" (RD /S /Q "%sd%:\atmosphere\contents\430000000000000A")
if exist "%sd%:\atmosphere\contents\430000000000000B" (RD /S /Q "%sd%:\atmosphere\contents\430000000000000B")
if exist "%sd%:\atmosphere\contents\430000000000000C" (RD /S /Q "%sd%:\atmosphere\contents\430000000000000C")
if exist "%sd%:\atmosphere\contents\43000000000000FF" (RD /S /Q "%sd%:\atmosphere\contents\43000000000000FF")
if exist "%sd%:\atmosphere\contents\4300000000000909" (RD /S /Q "%sd%:\atmosphere\contents\4300000000000909")
if exist "%sd%:\atmosphere\contents\5600000000000000" (RD /S /Q "%sd%:\atmosphere\contents\5600000000000000")
if exist "%sd%:\atmosphere\contents\690000000000000D" (RD /S /Q "%sd%:\atmosphere\contents\690000000000000D")
if exist "%sd%:\bootloader" (RD /S /Q "%sd%:\bootloader")
if exist "%sd%:\config" (RD /S /Q "%sd%:\config")
if exist "%sd%:\switch" (RD /S /Q "%sd%:\switch")
if exist "%sd%:\themes" (RD /S /Q "%sd%:\themes")
FOR /D /R "%sd%:\" %%X IN (amsPACK*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (kefir*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (ShallowSea*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (DeepSea*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (reinx*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (firmware*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (sxos*) DO RD /S /Q "%%X"
FOR /D /R "%sd%:\" %%X IN (custom*) DO RD /S /Q "%%X"
REM ======= SD-KARTEN ROOT =====================================
if exist "%sd%:\tegraexplorer" (RD /S /Q "%sd%:\tegraexplorer")
if exist "%sd%:\modules" (RD /S /Q "%sd%:\modules")
if exist "%sd%:\NSPs" (RD /S /Q "%sd%:\NSPs")
if exist "%sd%:\NSP" (RD /S /Q "%sd%:\NSP")
if exist "%sd%:\SaltySD" (RD /S /Q "%sd%:\SaltySD")
if exist "%sd%:\atmo" (RD /S /Q "%sd%:\atmo")
if exist "%sd%:\ams" (RD /S /Q "%sd%:\ams")
if exist "%sd%:\scripts" (RD /S /Q "%sd%:\scripts")
if exist "%sd%:\music" (RD /S /Q "%sd%:\music")
if exist "%sd%:\tools" (RD /S /Q "%sd%:\tools")
if exist "%sd%:\games" (RD /S /Q "%sd%:\games")
if exist "%sd%:\pegascape" (RD /S /Q "%sd%:\pegascape")
if exist "%sd%:\TinGen" (RD /S /Q "%sd%:\TinGen")
if exist "%sd%:\sept" (RD /S /Q "%sd%:\sept")
if exist "%sd%:\.git" (RD /S /Q "%sd%:\.git")
if exist "%sd%:\*.nro" (DEL /F "%sd%:\hbmenu.nro")
if exist "%sd%:\*.te" (DEL /F "%sd%:\startup.te")
if exist "%sd%:\*.ini" (DEL /F "%sd%:\*.ini")
if exist "%sd%:\*.bin" (DEL /F "%sd%:\*.bin")
if exist "%sd%:\*.txt" (DEL /F "%sd%:\*.txt")
if exist "%sd%:\*.dat" (DEL /F "%sd%:\*.dat")
if exist "%sd%:\*.log" (DEL /F "%sd%:\*.log")
if exist "%sd%:\roms\*.txt" (DEL /F "%sd%:\roms\*.txt")
)
REM ============================================================
:sblegtlos
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Jetzt wird das satanarchaeoluegenialkohoellische Switch Bros. Paket
echo direkt auf deine SD-Karte geballert^^!
echo.
echo Du verdienst halt nur das BESTE^^!
echo.
echo.
echo Gleich geht es weiter^^!
echo.
echo BITTE WARTEN...^^!
echo.
echo -----------------------------------------------------------------------------------------------------
xcopy "%~dp0*" "%sd%:\" /H /Y /C /R /S /E >nul 2>nul
powershell -Command "Start-Sleep -Seconds 2"
if exist "%SBBAK%\Fizeau\config.ini" (xcopy "%SBBAK%\Fizeau\config.ini" "%sd%:\config\Fizeau\*" /H /Y /C /R /S /E /I) >nul 2>nul
powershell -Command "Start-Sleep -Seconds 5"
REM ============================================================
:nurbasissystem
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Die Basisvariante der hekate_ipl.ini wird erstellt^^!
echo.
echo BITTE WARTEN...^^!
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
xcopy "%sd%:\switchbros\system\b\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
REM ============================================================
:tinfoila
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Tinfoil wird im hbmenu installiert^^!
echo.
echo BITTE WARTEN...^^!
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
xcopy "%sd%:\switchbros\kids\switch\*" "%sd%:\switch\*" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\kids\tinfoilhbmenu\*" "%sd%:\*" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\kids\NSPs\*" "%sd%:\NSPs\*" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%SBBAK%\Tinfoil\locations.conf" "%sd%:\switch\tinfoil\*" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%SBBAK%\Tinfoil\options.json" "%sd%:\switch\tinfoil\*" /H /Y /C /R /S /E /I >nul 2>nul
REM ============================================================
:themepaketinst
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo ThemeApps werden installiert (NXThemeInstaller, ThmezerNX, Icongrabber)^^!
echo.
echo BITTE WARTEN...^^!
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
xcopy "%sd%:\switchbros\theme\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
if exist "%SBBAK%\bootlogo\bootlogo" (
RD /S /Q "%sd%:\atmosphere\exefs_patches\bootlogo" >nul 2>nul
xcopy /y "%SBBAK%\bootlogo\bootlogo" "%sd%:\atmosphere\exefs_patches\bootlogo") >nul 2>nul
if exist "%SBBAK%\IconGrabber\config.json" (xcopy "%SBBAK%\IconGrabber\config.json" "%sd%:\config\IconGrabber\*" /H /Y /C /R /S /E /I) >nul 2>nul
REM ============================================================
:teslaminimal
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Das Tesla-Overlay Menue, mit einigen Standard Modulen, wird installiert^^!
echo.
echo Wir empfehlen dir unseren SwitchBros-Updater im hbmenu zu starten sobald die
echo SD-Karte in deiner Switch ist, und du die CFW gestartet hast^^!
echo.
echo BITTE WARTEN...^^!
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
powershell -Command "Start-Sleep -Seconds 7"
xcopy "%sd%:\switchbros\sys-modul\UltraHand\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\EdiZon\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\pancake\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\MissionControl\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\ovlSysmodule\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\sys-con\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\sys-patch\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
xcopy "%sd%:\switchbros\sys-modul\QuickNTP\*" "%sd%:\" /H /Y /C /R /S /E /I >nul 2>nul
REM ============================================================
:fixattrib
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Attribute werden korrigiert^^!
echo (Fix archive bit)
echo.
echo MacOS typische Dateien werden entfernt^^!
echo.
echo Schreibschutz wird entfernt^^!
echo.
echo BITTE WARTEN...
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
if exist "%sd%:\atmosphere" (
attrib -A -R /S /D %sd%:\atmosphere\*
attrib -A -R %sd%:\atmosphere)
if exist "%sd%:\atmosphere\contents" (
attrib -A -R /S /D %sd%:\atmosphere\contents\*
attrib -A -R %sd%:\atmosphere\contents)
if exist "%sd%:\bootloader" (
attrib -A -R /S /D %sd%:\bootloader\*
attrib -A -R %sd%:\bootloader)
if exist "%sd%:\config" (
attrib -A -R /S /D %sd%:\config\*
attrib -A -R %sd%:\config)
if exist "%sd%:\emuiibo" (
attrib -A -R /S /D %sd%:\emuiibo\*
attrib -A -R %sd%:\emuiibo)
if exist "%sd%:\NSPs" (
attrib -A -R /S /D %sd%:\NSPs\*
attrib -A -R %sd%:\NSPs)
if exist "%sd%:\SaltySD" (
attrib -A -R /S /D %sd%:\SaltySD\*
attrib -A -R %sd%:\SaltySD)
if exist "%sd%:\switch" (
attrib -A -R /S /D %sd%:\switch\*
attrib -A -R %sd%:\switch)
if exist "%sd%:\tegraexplorer" (
attrib -A -R /S /D %sd%:\tegraexplorer\*
attrib -A -R %sd%:\tegraexplorer)
if exist "%sd%:\themes" (
attrib -A -R /S /D %sd%:\themes\*
attrib -A -R %sd%:\themes)
if exist "%sd%:\warmboot" (
attrib -A -R /S /D %sd%:\warmboot\*
attrib -A -R %sd%:\warmboot)
if exist "%sd%:\BasisApps.txt" (attrib -A -R %sd%:\BasisApps.txt)
if exist "%sd%:\boot.dat" (attrib -A -R %sd%:\boot.dat)
if exist "%sd%:\boot.ini" (attrib -A -R %sd%:\boot.ini)
if exist "%sd%:\exosphere.ini" (attrib -A -R %sd%:\exosphere.ini)
if exist "%sd%:\hbmenu.nro" (attrib -A -R %sd%:\hbmenu.nro)
if exist "%sd%:\payload.bin" (attrib -A -R %sd%:\payload.bin)
if exist "%sd%:\SB.ico" (attrib -A -R %sd%:\SB.ico)
rem Entfernen typischer MacOS Dateien (die sind ueberall die Bruedaz)
if exist .DS_STORE del /s /q /f /a .DS_STORE
if exist ._.* del /s /q /f /a ._.*
REM ============================================================
:hekateusb
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Volle USB3 Geschwindigkeit mit hekate USM Modus^^!
echo.
echo Die Werte werden in deiner Windows registry eingetragen^^!
echo.
echo BITTE WARTEN...
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbstor\11ECA7E0 /v MaximumTransferLength /t REG_DWORD /d 00100000 /f >nul 2>&1
REM ============================================================
:aufraeumen
if exist "%sd%:\SwitchBros_BasisPaket" (RD /S /Q "%sd%:\SwitchBros_BasisPaket")
if exist "%sd%:\switchbros" (RD /S /Q "%sd%:\switchbros")
if exist "%sd%:\updatebak" (RD /S /Q "%sd%:\updatebak")
if exist "%sd%:\switch\switchbros-updater\update.te" (DEL /F "%sd%:\switch\switchbros-updater\update.te")
if exist "%sd%:\System Volume Information" (RD /S /Q "%sd%:\System Volume Information")
if exist "%sd%:\*.bat" (DEL /F "%sd%:\*.bat")
if exist "%sd%:\*.te" (DEL /F "%sd%:\*.te")
if exist "%sd%:\*.exe" (DEL /F "%sd%:\*.exe")
if exist "%sd%:\*.bak" (DEL /F "%sd%:\*.bak")
if exist "%sd%:\licence" (DEL /F "%sd%:\licence")
if exist "%sd%:\*.md" (DEL /F "%sd%:\*.md")
if exist "%sd%:\SwitchBros_BasisPaket.zip" (DEL /F "%sd%:\SwitchBros_BasisPaket.zip")
if exist "%sd%:\bootloader\ini\!switchbros_updater.ini" (DEL /F "%sd%:\bootloader\ini\!switchbros_updater.ini")
if exist "%sd%:\bootloader\ini\switchbros_updater.ini" (DEL /F "%sd%:\bootloader\ini/switchbros_updater.ini")
if exist "%sd%:\SwitchBros.txt" (DEL /F "%sd%:\SwitchBros.txt")
if exist "%sd%:\switch\switchbrosupdater" (RD /S /Q "%sd%:\switch\switchbrosupdater")
if %bootdat%==0 (
if exist "%sd%:\bootloader\memloader" (RD /S /Q "%sd%:\bootloader\memloader")
if exist "%sd%:\bootloader\payloads\hwfly_toolbox.bin" (DEL /F "%sd%:\bootloader\payloads\hwfly_toolbox.bin")
if exist "%sd%:\bootloader\res\icon_hwfly_toolbox_nobox.bmp" (DEL /F "%sd%:\bootloader\res\icon_hwfly_toolbox_nobox.bmp")
if exist "%sd%:\bootloader\ini\hwfly_toolbox.ini" (DEL /F "%sd%:\bootloader\ini\hwfly_toolbox.ini")
)
if %bootdat%==1 (
if exist "%sd%:\bootloader\memloader" (RD /S /Q "%sd%:\bootloader\memloader")
if exist "%sd%:\config\Fizeau" (RD /S /Q "%sd%:\config\Fizeau")
if exist "%sd%:\switch\Fizeau" (RD /S /Q "%sd%:\switch\Fizeau")
if exist "%sd%:\switch\.overlays\5_Fizeau.ovl" (DEL /F "%sd%:\switch\.overlays\*fizeau*.ovl")
if exist "%sd%:\atmosphere\contents\0100000000000F12" (RD /S /Q "%sd%:\atmosphere\contents\0100000000000F12")
)
if %bootdat%==2 (
if exist "%sd%:\bootloader\payloads\hwfly_toolbox.bin" (DEL /F "%sd%:\bootloader\payloads\hwfly_toolbox.bin")
if exist "%sd%:\bootloader\res\icon_hwfly_toolbox_nobox.bmp" (DEL /F "%sd%:\bootloader\res\icon_hwfly_toolbox_nobox.bmp")
if exist "%sd%:\bootloader\ini\hwfly_toolbox.ini" (DEL /F "%sd%:\bootloader\ini\hwfly_toolbox.ini")
)
cd %sd%:\
GOTO endemutig
REM ============================================================
:falschesdkarte
COLOR 0E
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Gewaehlter Laufwerksbuchstabe: %sd%:/
echo Keine SD-Karte in Laufwerk: %sd%:/
echo.
echo.
echo 1. Laufwerksbuchstabe ist korrekt^^!
echo 2. Anderen Laufwerksbuchstaben waehlen
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo B. Beenden
echo.
set /p st= Auswahl:
for %%A in ("J" "j" "1" "?" "?") do if "%st%"==%%A (GOTO hauptmenue)
for %%A in ("N" "n" "2" "?" "?") do if "%st%"==%%A (GOTO neuekarte)
for %%A in ("B" "b" "?" "?") do if "%st%"==%%A (GOTO endemutig)
REM ============================================================
:endemutig
COLOR 0A
cls
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
echo Alles abgeschlossen^^!^^!^^!
echo.
echo Viel Spass mit unserem Paket und Willkommen in der Switch Bros. Community
echo.
echo Besuche uns: https://discord.gg/switchbros
echo.
echo.
echo.
echo.
echo.
echo Das Programm wird automatisch beendet und geschlossen^^!
echo.
echo BITTE WARTEN...
echo.
echo -----------------------------------------------------------------------------------------------------
echo.
if exist "%wd%" (RD /s /q "%wd%\*") >nul 2>nul
powershell -Command "Start-Sleep -Seconds 7"
exit