
C:\Ulti>call tools\storage\functions\ini_scripts.bat 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set this_script_full_path=tools\Storage\menu.bat 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\tools\Storage\menu.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\menu.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\menu.bat" (
echo Language error. Please use the update manager to update the script. This script will now close.  
 pause 
 endlocal 
 goto:eof
) 

C:\Ulti>IF EXIST "tools\Storage\menu.bat.version" (set /p this_script_version= 0<"tools\Storage\menu.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>IF EXIST log.txt del /q log.txt 

C:\Ulti>set ushs_launch=Y 

C:\Ulti>set action_choice= 

C:\Ulti>cls

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\menu.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\tools\Storage\menu.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Main menu 4.3.214 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>echo ::::::::::::::::::::::::::::::::::::: 
:::::::::::::::::::::::::::::::::::::

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\menu.bat" "display_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_menu$"  0<"C:\Ulti\languages\EN_us\tools\Storage\menu.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_menu"  
 goto:eof
)  else (goto:display_menu) 

C:\Ulti>echo ::Shadow256 Ultimate Switch Hack Script 4.3.256:: 
::Shadow256 Ultimate Switch Hack Script 4.3.256::

C:\Ulti>echo ::::::::::::::::::::::::::::::::::::: 
:::::::::::::::::::::::::::::::::::::

C:\Ulti>echo.


C:\Ulti>echo Main menu 
Main menu

C:\Ulti>echo.


C:\Ulti>echo What do you want to do? 
What do you want to do?

C:\Ulti>echo.


C:\Ulti>echo 1: Basic functions (launch a payload, prepare the SD, verify infos, etc...)? 
1: Basic functions (launch a payload, prepare the SD, verify infos, etc...)?

C:\Ulti>echo.


C:\Ulti>echo 2: Updates or unbrick the Switch? 
2: Updates or unbrick the Switch?

C:\Ulti>echo.


C:\Ulti>echo 3: Nand toolbox? 
3: Nand toolbox?

C:\Ulti>echo.


C:\Ulti>echo 4: Launch NSC_Builder witch could display infos, to convert NSPs/XCIs, see the documentation for more infos? 
4: Launch NSC_Builder witch could display infos, to convert NSPs/XCIs, see the documentation for more infos?

C:\Ulti>echo.


C:\Ulti>echo 5: Launch or configure the software toolbox? 
5: Launch or configure the software toolbox?

C:\Ulti>echo.


C:\Ulti>echo 6: Other functions? 
6: Other functions?

C:\Ulti>echo.


C:\Ulti>echo 7: Ocasionnal functions? 
7: Ocasionnal functions?

C:\Ulti>echo.


C:\Ulti>echo 8: Save/restaure and script's settings? 
8: Save/restaure and script's settings?

C:\Ulti>echo.


C:\Ulti>echo 9: Launch or configure the network gaming client (Switch-Lan-Play client)? 
9: Launch or configure the network gaming client (Switch-Lan-Play client)?

C:\Ulti>echo.


C:\Ulti>echo 10: Launch a network gaming server (Switch-Lan-Play server)? 
10: Launch a network gaming server (Switch-Lan-Play server)?

C:\Ulti>echo.


C:\Ulti>echo 11: Allow the remote control of this computer via NVDA and Nvdaremote? 
11: Allow the remote control of this computer via NVDA and Nvdaremote?

C:\Ulti>echo.


C:\Ulti>echo 12: change language? 
12: change language?

C:\Ulti>echo.


C:\Ulti>echo 13: change theme? 
13: change theme?

C:\Ulti>echo.


C:\Ulti>echo 14: About the script? 
14: About the script?

C:\Ulti>echo.


C:\Ulti>echo 15: Donate to me? 
15: Donate to me?

C:\Ulti>echo.


C:\Ulti>echo 0: Launch the documentation (recommanded)? 
0: Launch the documentation (recommanded)?

C:\Ulti>echo.


C:\Ulti>echo All other choices: exit? 
All other choices: exit?

C:\Ulti>echo.


C:\Ulti>echo.


C:\Ulti>set /p action_choice=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>IF "6" == "0" goto:launch_doc

C:\Ulti>IF "6" == "1" goto:basic_functions

C:\Ulti>IF "6" == "2" goto:updates_or_unbrick

C:\Ulti>IF "6" == "3" goto:nand_toolbox

C:\Ulti>IF "6" == "4" goto:launch_NSC_Builder

C:\Ulti>IF "6" == "5" goto:launch_toolbox

C:\Ulti>IF "6" == "6" goto:others_functions

C:\Ulti>set action_choice= 

C:\Ulti>echo.


C:\Ulti>cls

C:\Ulti>call tools\Storage\others_functions_menu.bat 

C:\Ulti>call tools\storage\functions\ini_scripts.bat 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set this_script_full_path=tools\Storage\others_functions_menu.bat 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" (
echo Language error. Please use the update manager to update the script. This script will now close.  
 pause 
 endlocal 
 goto:eof
) 

C:\Ulti>IF EXIST "tools\Storage\others_functions_menu.bat.version" (set /p this_script_version= 0<"tools\Storage\others_functions_menu.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Other functions menu 4.3.222 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>set action_choice= 

C:\Ulti>cls

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" "display_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_menu$"  0<"C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_menu"  
 goto:eof
)  else (goto:display_menu) 

C:\Ulti>echo Other functions menu 
Other functions menu

C:\Ulti>echo.


C:\Ulti>echo What do you want to do? 
What do you want to do?

C:\Ulti>echo.


C:\Ulti>echo 1: Convert a XCI or NCA file in NSP? 
1: Convert a XCI or NCA file in NSP?

C:\Ulti>echo.


C:\Ulti>echo 2: Convert a NSP to try to make it compatible with the lowest possible firmware? 
2: Convert a NSP to try to make it compatible with the lowest possible firmware?

C:\Ulti>echo.


C:\Ulti>echo 3: Install NSPs via the network and Goldleaf? 
3: Install NSPs via the network and Goldleaf?

C:\Ulti>echo.


C:\Ulti>echo 4: Install NSPs via USB and Goldleaf (doesn't work with latest Goldleaf's version)? 
4: Install NSPs via USB and Goldleaf (doesn't work with latest Goldleaf's version)?

C:\Ulti>echo.


C:\Ulti>echo 5: Convert a Zelda Breath Of The Wild gamesave from Switch to Wii U or Wii U to Switch? 
5: Convert a Zelda Breath Of The Wild gamesave from Switch to Wii U or Wii U to Switch?

C:\Ulti>echo.


C:\Ulti>echo 6: Extract the certificat of a device? 
6: Extract the certificat of a device?

C:\Ulti>echo.


C:\Ulti>echo 7: Verify NSP files? 
7: Verify NSP files?

C:\Ulti>echo.


C:\Ulti>echo 8: Split NSPs/XCIs? 
8: Split NSPs/XCIs?

C:\Ulti>echo.


C:\Ulti>echo 9: Merge a XCI/NSP splited? 
9: Merge a XCI/NSP splited?

C:\Ulti>echo.


C:\Ulti>echo 10: Compress/uncompress a game with nsZip (obsolete function)? 
10: Compress/uncompress a game with nsZip (obsolete function)?

C:\Ulti>echo.


C:\Ulti>echo 11: Configure the emulator Nes Classic Edition? 
11: Configure the emulator Nes Classic Edition?

C:\Ulti>echo.


C:\Ulti>echo 12: Configure the emulator Snes Classic Edition? 
12: Configure the emulator Snes Classic Edition?

C:\Ulti>echo.


C:\Ulti>echo 13: Install Android APPS (USB debugging  MODE REQUIRED)? 
13: Install Android APPS (USB debugging  MODE REQUIRED)?

C:\Ulti>echo.


C:\Ulti>echo 14: Create a forwarder? 
14: Create a forwarder?

C:\Ulti>echo.


C:\Ulti>echo 15: Create a nsp for a GameMaker game? 
15: Create a nsp for a GameMaker game?

C:\Ulti>echo.


C:\Ulti>echo 16: Inject a Sega Saturn game (beta function)? 
16: Inject a Sega Saturn game (beta function)?

C:\Ulti>echo.


C:\Ulti>echo 17: Obtain the NCAs that identify the firmware? 
17: Obtain the NCAs that identify the firmware?

C:\Ulti>echo.


C:\Ulti>echo All other choices: Go back to main menu? 
All other choices: Go back to main menu?

C:\Ulti>echo.


C:\Ulti>echo.


C:\Ulti>set /p action_choice=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>IF "16" == "1" goto:convert_game

C:\Ulti>IF "16" == "2" goto:renxpack

C:\Ulti>IF "16" == "3" goto:install_nsp_network

C:\Ulti>IF "16" == "4" goto:install_nsp_usb

C:\Ulti>IF "16" == "5" goto:convert_BOTW

C:\Ulti>IF "16" == "6" goto:extract_cert

C:\Ulti>IF "16" == "7" goto:verify_nsp

C:\Ulti>IF "16" == "8" goto:split_games

C:\Ulti>IF "16" == "9" goto:merge_games

C:\Ulti>IF "16" == "10" goto:nsZip

C:\Ulti>IF "16" == "11" goto:config_nes_classic

C:\Ulti>IF "16" == "12" goto:config_snes_classic

C:\Ulti>IF "16" == "13" goto:install_android_apps

C:\Ulti>IF "16" == "14" goto:create_forwarder

C:\Ulti>IF "16" == "15" goto:create_gamemaker_game

C:\Ulti>IF "16" == "16" goto:inject_saturn_game

C:\Ulti>set action_choice= 

C:\Ulti>echo.


C:\Ulti>cls

C:\Ulti>IF EXIST "tools\Storage\saturn_emu_inject.bat" (call tools\Storage\update_manager.bat "update_saturn_emu_inject.bat" )  else (call tools\Storage\update_manager.bat "update_saturn_emu_inject.bat" "force" ) 

C:\Ulti>IF EXIST "tools\storage\functions\ini_scripts.bat" (call tools\storage\functions\ini_scripts.bat )  else (
 
 chcp 65001  1>nul 
) 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>IF EXIST "tools\Storage\update_manager.bat.version" (set /p this_script_version= 0<"tools\Storage\update_manager.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set base_script_path="C:\Ulti\tools\Storage\\..\.." 

C:\Ulti>set folders_url_project_base=https://github.com/shadow2560/Ultimate-Switch-Hack-Script/trunk 

C:\Ulti>set files_url_project_base=https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master 

C:\Ulti>set atmo_folders_sigpatches_url_project_base=https://github.com/THZoria/patches/trunk 

C:\Ulti>set atmo_files_sigpatches_url_project_base=https://raw.githubusercontent.com/THZoria/patches/master 

C:\Ulti>set what_to_update=update_saturn_emu_inject.bat 

C:\Ulti>IF NOT EXIST "tools\gnuwin32\bin\wc.exe" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 IF !errorlevel! NEQ 0 (
echo Dependancy error, you have to connect to internet, script will close.  
 pause 
 exit
)  else (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Updating Gnuwin32 dependancies...  
 "tools\gitget\SVN\svn.exe" export https://github.com/shadow2560/Ultimate-Switch-Hack-Script/trunk/tools/gnuwin32 tools\gnuwin32 --force  1>nul 
) 
) 

C:\Ulti>IF NOT EXIST "tools\aria2\aria2c.exe" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 IF !errorlevel! NEQ 0 (
echo Dependancy error, you have to connect to internet, script will close.  
 pause 
 exit
)  else (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Updating Aria2 dependancies...  
 "tools\gitget\SVN\svn.exe" export https://github.com/shadow2560/Ultimate-Switch-Hack-Script/trunk/tools/aria2 tools\aria2 --force  1>nul 
) 
) 

C:\Ulti>IF NOT EXIST "languages\FR_fr" (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Initializing french language...  
 set temp_language_path=languages\FR_fr  
 call :initialize_language 
) 

C:\Ulti>IF "languages\EN_us" == "" (
IF EXIST "languages\FR_fr\language_general_config.bat" call "languages\FR_fr\language_general_config.bat"  
 IF "!language_path!" == "" (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Initializing first language...  
 set temp_language_path=languages\FR_fr  
 rmdir /s /q "templogs"  2>nul  
 call :initialize_language 
) 
) 

C:\Ulti>IF EXIST "templogs" (
del /q "templogs"  2>nul  
 rmdir /s /q "templogs"  2>nul 
) 

C:\Ulti>mkdir "templogs" 

C:\Ulti>IF "" == "language_init" (
rmdir /s /q "templogs"  2>nul  
 call :initialize_language 
) 

C:\Ulti>echo é  1>nul 

C:\Ulti>set this_script_full_path=tools\Storage\update_manager.bat 

C:\Ulti>IF "C:\Ulti\" == "" (
cd  1>templogs\tempvar.txt  
 set /p ushs_base_path= 0<templogs\tempvar.txt  
 set ushs_base_path=!ushs_base_path!\ 
) 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" (
echo Language error, please use the update manager to update the script. The script will force the initialization of the language.  
 pause 
 rmdir /s /q "templogs"  2>nul  
 call :initialize_language 
) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "retroarch_update" (
call :retroarch_update  
 goto:end_script
) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "update_launch_nsusbloader.bat" (
call :update_launch_nsusbloader.bat  
 goto:end_script
) 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Update manager 4.3.251 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>IF "y" == "" (IF "0" == "0" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 IF !errorlevel! EQU 0 (
call :verif_file_version "languages\EN_us\language_general_config.bat"  
 IF "!update_finded!" == "Y" (
"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat" "languages\EN_us\language_general_config.bat"  1>nul  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat.version" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat.version"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat.version" "languages\EN_us\language_general_config.bat.version"  1>nul  
 rmdir /s /q templogs  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "language_config_update_info"  
 pause 
 start /i "" "C:\Windows\system32\cmd.exe" /c call "Ultimate-Switch-Hack-Script.bat"  
 IF /I "on" == "on" pause 
 exit
) 
) 
) 
)  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_error"  
 pause 
 goto:end_script
) 
) ) 

C:\Ulti>IF EXIST "continue_update.txt" (
set auto_update=O  
 set /p what_to_update= 0<continue_update.txt  
 goto:begin_update
) 

C:\Ulti>IF "" == "force" (
set auto_update=O  
 goto:begin_update
) 

C:\Ulti>IF EXIST "failed_updates\*.failed" (
set auto_update=O  
 set failed_updates_finded=Y  
 goto:begin_update
) 

C:\Ulti>IF EXIST "languages\EN_us\script_general_config.bat\*.*" (rmdir /s /q "languages\EN_us\script_general_config.bat" ) 

C:\Ulti>IF not EXIST "languages\EN_us\script_general_config.bat" copy nul "languages\EN_us\script_general_config.bat"  1>nul 

C:\Ulti>tools\gnuwin32\bin\grep.exe -n "set auto_update="  0<"languages\EN_us\script_general_config.bat" 1>templogs\tempvar.txt 

C:\Ulti>set /p temp_auto_update_line= 0<templogs\tempvar.txt 

C:\Ulti>IF NOT "" == "" (
echo   | "tools\gnuwin32\bin\cut.exe" -d : -f 1  1>templogs\tempvar.txt  
 set /p auto_update_file_param_line= 0<templogs\tempvar.txt  
 echo   | "tools\gnuwin32\bin\cut.exe" -d = -f 2  1>templogs\tempvar.txt  
 set /p ini_auto_update= 0<templogs\tempvar.txt 
) 

C:\Ulti>set temp_auto_update_line= 

C:\Ulti>IF "" == "" (call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_choice" )  else IF /I "" == "O" (set auto_update=O )  else IF /I "" == "N" (set auto_update=N )  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_bad_value_error"  
 "tools\gnuwin32\bin\sed.exe" d "languages\EN_us\script_general_config.bat" 1>"languages\EN_us\script_general_config2.bat"  
 del /q "languages\EN_us\script_general_config.bat"  
 ren "languages\EN_us\script_general_config2.bat" "script_general_config.bat"  
 set ini_auto_update=  
 goto:initialize_auto_update
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:autoupdate_choice$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "autoupdate_choice"  
 goto:eof
)  else (goto:autoupdate_choice) 

C:\Ulti>echo Set the auto-update setting: 
Set the auto-update setting:

C:\Ulti>echo.


C:\Ulti>echo The updates are verified when you launch a functionality or a group of functionnality. If you try to use a functionnality that is not yet installed, the update will be forced to install it even if you disable the updates verification. 
The updates are verified when you launch a functionality or a group of functionnality. If you try to use a functionnality that is not yet installed, the update will be forced to install it even if you disable the updates verification.

C:\Ulti>echo In the following choice, if you choose an not definitive option, this question will be asked often. 
In the following choice, if you choose an not definitive option, this question will be asked often.

C:\Ulti>echo If you choose to always verify updates, some functions will take time to load, for example the main menu or the SD preparation script or the Nand Toolbox but the functionnalities will always be up to date. 
If you choose to always verify updates, some functions will take time to load, for example the main menu or the SD preparation script or the Nand Toolbox but the functionnalities will always be up to date.

C:\Ulti>echo If you choose to never verify updates, you could only update the script via the "About" function but launching a functionnality will be more fast. 
If you choose to never verify updates, you could only update the script via the "About" function but launching a functionnality will be more fast.

C:\Ulti>echo Note that you always an reset this setting via the "settings menu" of the script. 
Note that you always an reset this setting via the "settings menu" of the script.

C:\Ulti>echo Not that even if you disable the updates verification and if a previous update has failed, the update will be done to prevent some bugs. 
Not that even if you disable the updates verification and if a previous update has failed, the update will be done to prevent some bugs.

C:\Ulti>echo.


C:\Ulti>echo What do you want to do? 
What do you want to do?

C:\Ulti>echo y: Verify updates this time. 
y: Verify updates this time.

C:\Ulti>echo n: Don't verify updates this time. 
n: Don't verify updates this time.

C:\Ulti>echo a: Always verify updates. 
a: Always verify updates.

C:\Ulti>echo j: Never verify updates. 
j: Never verify updates.

C:\Ulti>echo.


C:\Ulti>set /p auto_update=Do you want to activate the auto-update? (y/n/a/j):  
Do you want to activate the auto-update? (y/n/a/j): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" (set auto_update=y )  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_empty_value_error"  
 goto:initialize_auto_update
) 

C:\Ulti>call :o/n/t/j_choice "auto_update" 

C:\Ulti>IF /I "!auto_update!" == "y" (set auto_update=o )  else IF /I "!auto_update!" == "n" (set auto_update=n )  else IF /I "!auto_update!" == "a" (set auto_update=t )  else IF /I "!auto_update!" == "j" (set auto_update=j )  else (set auto_update=n ) 

C:\Ulti>exit /b 

C:\Ulti>IF /I "o" == "J" (
IF NOT "" == "" (
"tools\gnuwin32\bin\sed.exe" ' d' "languages\EN_us\script_general_config.bat" 1>"languages\EN_us\script_general_config2.bat"  
 del /q "languages\EN_us\script_general_config.bat"  
 ren "languages\EN_us\script_general_config2.bat" "script_general_config.bat" 
)  
 echo set auto_update=N 1>>"languages\EN_us\script_general_config.bat"  
 set auto_update=N 
) 

C:\Ulti>IF /I "o" == "T" (
IF NOT "" == "" (
"tools\gnuwin32\bin\sed.exe" ' d' "languages\EN_us\script_general_config.bat" 1>"languages\EN_us\script_general_config2.bat"  
 del /q "languages\EN_us\script_general_config.bat"  
 ren "languages\EN_us\script_general_config2.bat" "script_general_config.bat" 
)  
 echo set auto_update=O 1>>"languages\EN_us\script_general_config.bat"  
 set auto_update=O 
) 

C:\Ulti>IF /I "o" == "N" (goto:end_script)  else IF /I "o" == "O" (goto:begin_update)  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_choice_not_permited_error"  
 goto:initialize_auto_update
) 

C:\Ulti>echo ::::::::::::::::::::::::::::::::::::: 
:::::::::::::::::::::::::::::::::::::

C:\Ulti>echo ::Shadow256 Ultimate Switch Hack Script 4.3.256 updater:: 
::Shadow256 Ultimate Switch Hack Script 4.3.256 updater::

C:\Ulti>echo.


C:\Ulti>IF EXIST "failed_updates\*.failed" (set failed_updates_finded=Y ) 

C:\Ulti>IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q "failed_updates"  2>nul ) 

C:\Ulti>mkdir "failed_updates"  1>nul 2>&1 

C:\Ulti>set error_level=0 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "update_all" goto:skip_new_script_install

C:\Ulti>IF "update_saturn_emu_inject.bat" == "general_content_update" goto:skip_new_script_install

C:\Ulti>IF "" == "force" (
IF NOT "" == "Y" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 set error_level=!errorlevel! 
)  else (set error_level=0 )  
 IF !error_level! NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_error"  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_for_new_installation_error"  
 pause 
 goto:end_script
)  
 set verified_internet_connexion=Y  
 set new_install_choice=  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "new_installation_choice"  
 IF NOT "!new_install_choice!" == "" set new_install_choice=!new_install_choice:~0,1!  
 call :o/n_choice "new_install_choice"  
 IF /I NOT "!new_install_choice!" == "o" (
IF EXIST templogs (rmdir /s /q templogs )  
 IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q failed_updates )  
 exit
)  
 call :verif_file_version "tools\Storage\update_manager.bat"  
 IF "!update_finded!" == "Y" (
call :verif_file_version "tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 call :verif_file_version "languages\FR_fr\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 IF NOT "languages\EN_us" == "languages\FR_fr" (IF "0" == "0" (
call :verif_file_version "languages\EN_us\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file ) 
) )  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "update_manager_updater_update"  
 pause 
 call :update_manager_update_special_script 
) 
) 

C:\Ulti>IF NOT "" == "Y" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 set error_level=!errorlevel! 
)  else (set error_level=0 ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_error"  
 IF /I "" == "o" (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_for_new_installation_error"  
 pause 
 IF EXIST templogs (rmdir /s /q templogs )  
 IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q failed_updates )  
 exit
)  
 pause 
 goto:end_script
) 

C:\Ulti>set verified_internet_connexion=Y 

C:\Ulti>IF NOT EXIST "failed_updates\*.failed" goto:skip_failed_updates_verification

C:\Ulti>call :verif_file_version "tools\Storage\update_manager.bat" 

C:\Ulti>set temp_file_path=tools\Storage\update_manager.bat 

C:\Ulti>set temp_file_slash_path=tools/Storage/update_manager.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\Storage\\test" )  else (mkdir "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\Storage\update_manager.bat" == "tools\sd_switch\version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "tools\general_update_version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "tools\version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else (
IF EXIST "tools\Storage\update_manager.bat.version" set /p script_version= 0<"tools\Storage\update_manager.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Storage\update_manager.bat : va=4.3.251, vm=4.3.251 

C:\Ulti>rem echo tools/Storage/update_manager.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.251" == "" goto:end_compare_version

C:\Ulti>IF "4.3.251" == "" (IF NOT "4.3.251" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.251 GTR 4.3.251 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (
call :verif_file_version "tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 call :verif_file_version "languages\FR_fr\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 IF NOT "languages\EN_us" == "languages\FR_fr" (IF "0" == "0" (
call :verif_file_version "languages\EN_us\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file ) 
) )  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "update_manager_updater_update"  
 pause 
 call :update_manager_update_special_script 
) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "" (
IF EXIST "continue_update.txt" del /q "continue_update.txt"  
 goto:end_script
)  else (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "begin_update"  
 call :verif_file_version "tools\version.txt"  
 IF "!update_finded!" == "Y" (
call :update_file  
 IF "4.3.256" == "1.00.00" (
set restart_needed=Y  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "script_version_not_initialized_info" 
) 
)  
 call :verif_file_version "tools\general_update_version.txt"  
 IF "!update_finded!" == "Y" (
set restart_needed=Y  
 call :general_content_update 
)  else (
call :verif_file_version "languages\EN_us\tools\general_update_version.txt"  
 IF "!update_finded!" == "Y" (
set restart_needed=Y  
 call :general_content_update 
) 
)  
 IF "0" == "0" (
call :verif_folder_version "languages\EN_us\doc"  
 IF "!update_finded!" == "Y" (call :update_folder )  
 call :verif_file_version "languages\EN_us\language_general_config.bat"  
 IF "!update_finded!" == "Y" (
"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat" "languages\EN_us\language_general_config.bat"  1>nul  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat.version" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat.version"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat.version" "languages\EN_us\language_general_config.bat.version"  1>nul  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "language_config_update_info"  
 set restart_needed=Y 
) 
) 
) 
)  
 IF "update_saturn_emu_inject.bat" == "general_content_update" (
IF EXIST "continue_update.txt" del /q "continue_update.txt"  
 goto:clean_files
)  
 call :update_saturn_emu_inject.bat  
 IF EXIST "continue_update.txt" del /q "continue_update.txt" 
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:begin_update$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "begin_update"  
 goto:eof
)  else (goto:begin_update) 

C:\Ulti>echo Verifying and updating... 
Verifying and updating...

C:\Ulti>goto:eof

C:\Ulti>set temp_file_path=tools\version.txt 

C:\Ulti>set temp_file_slash_path=tools/version.txt 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\version.txt" == "tools\sd_switch\version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "tools\general_update_version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "tools\version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else (
IF EXIST "tools\version.txt.version" set /p script_version= 0<"tools\version.txt.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\version.txt : va=4.3.256, vm=4.3.256 

C:\Ulti>rem echo tools/version.txt 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.256" == "" goto:end_compare_version

C:\Ulti>IF "4.3.256" == "" (IF NOT "4.3.256" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.256 GTR 4.3.256 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>set temp_file_path=tools\general_update_version.txt 

C:\Ulti>set temp_file_slash_path=tools/general_update_version.txt 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\general_update_version.txt" == "tools\sd_switch\version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "tools\general_update_version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "tools\version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else (
IF EXIST "tools\general_update_version.txt.version" set /p script_version= 0<"tools\general_update_version.txt.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\general_update_version.txt : va=242, vm=242 

C:\Ulti>rem echo tools/general_update_version.txt 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "242" == "" goto:end_compare_version

C:\Ulti>IF "242" == "" (IF NOT "242" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 242  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 242  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 242 GTR 242 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>set temp_file_path=languages\EN_us\tools\general_update_version.txt 

C:\Ulti>set temp_file_slash_path=languages/EN_us/tools/general_update_version.txt 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\EN_us\tools\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\EN_us\tools\\test" )  else (mkdir "C:\Ulti\languages\EN_us\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\EN_us\tools\\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\EN_us\tools\general_update_version.txt" == "tools\sd_switch\version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "tools\version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else (
IF EXIST "languages\EN_us\tools\general_update_version.txt.version" set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\tools\general_update_version.txt : va=129, vm=129 

C:\Ulti>rem echo languages/EN_us/tools/general_update_version.txt 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "129" == "" goto:end_compare_version

C:\Ulti>IF "129" == "" (IF NOT "129" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 129  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 129  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 129 GTR 129 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>set temp_folder_path=languages\EN_us\doc 

C:\Ulti>set temp_folder_slash_path=languages/EN_us/doc 

C:\Ulti>call :test_write_access folder "languages\EN_us\doc" 

C:\Ulti>IF "folder" == "folder" (mkdir "languages\EN_us\doc\test" )  else (mkdir "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "languages\EN_us\doc\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "languages\EN_us\doc\folder_version.txt" set /p script_version= 0<"languages\EN_us\doc\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/doc/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\doc : va=619, vm=619 

C:\Ulti>rem echo languages/EN_us/doc 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "619" == "" goto:end_compare_version

C:\Ulti>IF "619" == "" (IF NOT "619" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 619  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 619  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 619 GTR 619 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>set temp_file_path=languages\EN_us\language_general_config.bat 

C:\Ulti>set temp_file_slash_path=languages/EN_us/language_general_config.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\EN_us\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\EN_us\\test" )  else (mkdir "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\EN_us\\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\EN_us\language_general_config.bat" == "tools\sd_switch\version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "tools\general_update_version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "tools\version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else (
IF EXIST "languages\EN_us\language_general_config.bat.version" set /p script_version= 0<"languages\EN_us\language_general_config.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\language_general_config.bat : va=102, vm=102 

C:\Ulti>rem echo languages/EN_us/language_general_config.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "102" == "" goto:end_compare_version

C:\Ulti>IF "102" == "" (IF NOT "102" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 102  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 102  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 102 GTR 102 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>call :verif_file_version "tools\Storage\saturn_emu_inject.bat" 

C:\Ulti>set temp_file_path=tools\Storage\saturn_emu_inject.bat 

C:\Ulti>set temp_file_slash_path=tools/Storage/saturn_emu_inject.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\Storage\\test" )  else (mkdir "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\Storage\saturn_emu_inject.bat" == "tools\sd_switch\version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "tools\general_update_version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "tools\version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else (
IF EXIST "tools\Storage\saturn_emu_inject.bat.version" set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Storage\saturn_emu_inject.bat : va=4.3.237, vm=4.3.237 

C:\Ulti>rem echo tools/Storage/saturn_emu_inject.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.237" == "" goto:end_compare_version

C:\Ulti>IF "4.3.237" == "" (IF NOT "4.3.237" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.237 GTR 4.3.237 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_file ) 

C:\Ulti>call :verif_file_version "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" 

C:\Ulti>set temp_file_path=languages\FR_fr\tools\Storage\saturn_emu_inject.bat 

C:\Ulti>set temp_file_slash_path=languages/FR_fr/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\FR_fr\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\FR_fr\tools\Storage\\test" )  else (mkdir "C:\Ulti\languages\FR_fr\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\FR_fr\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\languages\FR_fr\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "tools\sd_switch\version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "tools\general_update_version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "tools\version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat.version" set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\FR_fr\tools\Storage\saturn_emu_inject.bat : va=112, vm=112 

C:\Ulti>rem echo languages/FR_fr/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "112" == "" goto:end_compare_version

C:\Ulti>IF "112" == "" (IF NOT "112" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 112  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 112  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 112 GTR 112 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_file ) 

C:\Ulti>IF NOT "languages\EN_us" == "languages\FR_fr" (IF "0" == "0" (
call :verif_file_version "languages\EN_us\tools\Storage\saturn_emu_inject.bat"  
 IF "!update_finded!" == "Y" (call :update_file ) 
) ) 

C:\Ulti>set temp_file_path=languages\EN_us\tools\Storage\saturn_emu_inject.bat 

C:\Ulti>set temp_file_slash_path=languages/EN_us/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\EN_us\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\EN_us\tools\Storage\\test" )  else (mkdir "C:\Ulti\languages\EN_us\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\EN_us\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "tools\sd_switch\version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "tools\version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat.version" set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\tools\Storage\saturn_emu_inject.bat : va=113, vm=113 

C:\Ulti>rem echo languages/EN_us/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "113" == "" goto:end_compare_version

C:\Ulti>IF "113" == "" (IF NOT "113" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 113  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 113  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 113 GTR 113 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>call :verif_folder_version "tools\ImageMagick" 

C:\Ulti>set temp_folder_path=tools\ImageMagick 

C:\Ulti>set temp_folder_slash_path=tools/ImageMagick 

C:\Ulti>call :test_write_access folder "tools\ImageMagick" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\ImageMagick\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\ImageMagick\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\ImageMagick\folder_version.txt" set /p script_version= 0<"tools\ImageMagick\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/ImageMagick/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\ImageMagick : va=4.3.135, vm=4.3.135 

C:\Ulti>rem echo tools/ImageMagick 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.135" == "" goto:end_compare_version

C:\Ulti>IF "4.3.135" == "" (IF NOT "4.3.135" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.135 GTR 4.3.135 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\Hactool_based_programs" 

C:\Ulti>set temp_folder_path=tools\Hactool_based_programs 

C:\Ulti>set temp_folder_slash_path=tools/Hactool_based_programs 

C:\Ulti>call :test_write_access folder "tools\Hactool_based_programs" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\Hactool_based_programs\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\Hactool_based_programs\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\Hactool_based_programs\folder_version.txt" set /p script_version= 0<"tools\Hactool_based_programs\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Hactool_based_programs/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Hactool_based_programs : va=4.3.252, vm=4.3.252 

C:\Ulti>rem echo tools/Hactool_based_programs 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.252" == "" goto:end_compare_version

C:\Ulti>IF "4.3.252" == "" (IF NOT "4.3.252" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.252 GTR 4.3.252 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\python3_scripts\npdm_and_nacp_rewrite" 

C:\Ulti>set temp_folder_path=tools\python3_scripts\npdm_and_nacp_rewrite 

C:\Ulti>set temp_folder_slash_path=tools/python3_scripts/npdm_and_nacp_rewrite 

C:\Ulti>call :test_write_access folder "tools\python3_scripts\npdm_and_nacp_rewrite" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\python3_scripts\npdm_and_nacp_rewrite\test" )  else (mkdir "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\python3_scripts\npdm_and_nacp_rewrite\test" )  else (rmdir /s /q "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\python3_scripts\npdm_and_nacp_rewrite\folder_version.txt" set /p script_version= 0<"tools\python3_scripts\npdm_and_nacp_rewrite\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/python3_scripts/npdm_and_nacp_rewrite/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\python3_scripts\npdm_and_nacp_rewrite : va=4.3.204, vm=4.3.204 

C:\Ulti>rem echo tools/python3_scripts/npdm_and_nacp_rewrite 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.204" == "" goto:end_compare_version

C:\Ulti>IF "4.3.204" == "" (IF NOT "4.3.204" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.204 GTR 4.3.204 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\python3_scripts\squirrel_rewrite" 

C:\Ulti>set temp_folder_path=tools\python3_scripts\squirrel_rewrite 

C:\Ulti>set temp_folder_slash_path=tools/python3_scripts/squirrel_rewrite 

C:\Ulti>call :test_write_access folder "tools\python3_scripts\squirrel_rewrite" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\python3_scripts\squirrel_rewrite\test" )  else (mkdir "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\python3_scripts\squirrel_rewrite\test" )  else (rmdir /s /q "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\python3_scripts\squirrel_rewrite\folder_version.txt" set /p script_version= 0<"tools\python3_scripts\squirrel_rewrite\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/python3_scripts/squirrel_rewrite/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\python3_scripts\squirrel_rewrite : va=4.3.237, vm=4.3.237 

C:\Ulti>rem echo tools/python3_scripts/squirrel_rewrite 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.237" == "" goto:end_compare_version

C:\Ulti>IF "4.3.237" == "" (IF NOT "4.3.237" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.237 GTR 4.3.237 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\Saturn_emu_inject" 

C:\Ulti>set temp_folder_path=tools\Saturn_emu_inject 

C:\Ulti>set temp_folder_slash_path=tools/Saturn_emu_inject 

C:\Ulti>call :test_write_access folder "tools\Saturn_emu_inject" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\Saturn_emu_inject\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\Saturn_emu_inject\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\Saturn_emu_inject\folder_version.txt" set /p script_version= 0<"tools\Saturn_emu_inject\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Saturn_emu_inject/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Saturn_emu_inject : va=4.3.237, vm=4.3.237 

C:\Ulti>rem echo tools/Saturn_emu_inject 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.237" == "" goto:end_compare_version

C:\Ulti>IF "4.3.237" == "" (IF NOT "4.3.237" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.237 GTR 4.3.237 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>exit /b 

C:\Ulti>call :del_old_or_unused_files 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "del_hold_files_begin" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:del_hold_files_begin$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "del_hold_files_begin"  
 goto:eof
)  else (goto:del_hold_files_begin) 

C:\Ulti>echo Verifying and removing old files... 
Verifying and removing old files...

C:\Ulti>goto:eof

C:\Ulti>IF EXIST "tools\Storage\verif_update.ini" del /q "tools\Storage\verif_update.ini" 

C:\Ulti>IF EXIST "DOC\*.*" rmdir /s /q "DOC" 

C:\Ulti>IF EXIST "tools\sd_switch\mixed\modular\DZ" rmdir /s /q "tools\sd_switch\mixed\modular\DZ" 

C:\Ulti>IF EXIST "tools\sd_switch\mixed\modular\Zerotwoxci" rmdir /s /q "tools\sd_switch\mixed\modular\Zerotwoxci" 

C:\Ulti>IF EXIST "tools\sd_switch\modules\pack\Sys-Netcheat" rmdir /s /q "tools\sd_switch\modules\pack\Sys-Netcheat" 

C:\Ulti>IF EXIST "tools\sd_switch\modules\pack\Sys-audioplayer" rmdir /s /q "tools\sd_switch\modules\pack\Sys-audioplayer" 

C:\Ulti>IF EXIST "tools\sd_switch\atmosphere_mariko_special_files" rmdir /s /q "tools\sd_switch\atmosphere_mariko_special_files" 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "del_hold_files_end" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:del_hold_files_end$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "del_hold_files_end"  
 goto:eof
)  else (goto:del_hold_files_end) 

C:\Ulti>echo End of old files removing. 
End of old files removing.

C:\Ulti>goto:eof

C:\Ulti>exit /b 

C:\Ulti>IF "" == "Y" (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "end_update_restart_needed"  
 pause 
 rmdir /s /q templogs  
 start /i "" "C:\Windows\system32\cmd.exe" /c call "Ultimate-Switch-Hack-Script.bat"  
 IF /I "on" == "on" pause 
 exit
)  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "end_update"  
 pause
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:end_update$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "end_update"  
 goto:eof
)  else (goto:end_update) 

C:\Ulti>echo End of verifications and updates. 
End of verifications and updates.

C:\Ulti>goto:eof
Press any key to continue . . . 

C:\Ulti>goto:end_script

C:\Ulti>IF EXIST templogs (rmdir /s /q templogs ) 

C:\Ulti>IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q failed_updates ) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "retroarch_update" goto:skip_ending_cls

C:\Ulti>cls

C:\Ulti>endlocal

C:\Ulti>call TOOLS\Storage\saturn_emu_inject.bat 

C:\Ulti>call tools\storage\functions\ini_scripts.bat 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set this_script_full_path=TOOLS\Storage\saturn_emu_inject.bat 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" (
echo Language error. Please use the update manager to update the script. This script will now close.  
 pause 
 endlocal 
 goto:eof
) 

C:\Ulti>IF EXIST "TOOLS\Storage\saturn_emu_inject.bat.version" (set /p this_script_version= 0<"TOOLS\Storage\saturn_emu_inject.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>IF EXIST templogs (
del /q templogs  2>nul  
 rmdir /s /q templogs  2>nul 
) 

C:\Ulti>mkdir templogs 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\*.*" mkdir "Saturn_emu_inject_datas" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\credits\*.*" mkdir "Saturn_emu_inject_datas\Credit" 
A subdirectory or file Saturn_emu_inject_datas\Credit already exists.

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\games\*.*" mkdir "Saturn_emu_inject_datas\games" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\ini\*.*" mkdir "Saturn_emu_inject_datas\ini" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\no_data\*.*" mkdir "Saturn_emu_inject_datas\no_data" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\playingguides\*.*" mkdir "Saturn_emu_inject_datas\PlayingGuide" 
A subdirectory or file Saturn_emu_inject_datas\PlayingGuide already exists.

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\profiles\*.*" mkdir "Saturn_emu_inject_datas\profiles" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\textures\*.*" mkdir "Saturn_emu_inject_datas\textures" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\wallpapers\*.*" mkdir "Saturn_emu_inject_datas\wallpapers" 

C:\Ulti>set filename0=Cotton2 

C:\Ulti>set filename1=GuardianForce 

C:\Ulti>set filename2=CottonBoomerang 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Sega Saturn game inject 4.3.237 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>if "2" == "1" (
cls 
 call :Howtouse  
 goto:Menu
)  else if "2" == "2" (
cls 
 goto:Start
)  else if "2" == "3" (
start "" /d "Tools\Saturn_emu_inject\Tools\CDmage" "Tools\Saturn_emu_inject\Tools\CDmage\CDmage.exe"  
 goto:Menu
)  else if "2" == "4" (
cls 
 call :save_prod.keys_file  
 goto:Menu
)  else if "2" == "5" (
cls 
 call :convert_png_to_tex_folder  
 goto:Menu
)  else (goto:end_script2) 

C:\Ulti>set display_good_saved_games=n 

C:\Ulti>for /L %i in (0 1 2) do (IF EXIST "Saturn_emu_inject_datas\games\!filename%i!\*.*" (
set filename%i_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename%i!  
 set display_good_saved_games=Y 
)  else (set filename%i_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename0!\*.*" (
set filename0_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename0!  
 set display_good_saved_games=Y 
)  else (set filename0_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename1!\*.*" (
set filename1_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename1!  
 set display_good_saved_games=Y 
)  else (set filename1_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename2!\*.*" (
set filename2_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename2!  
 set display_good_saved_games=Y 
)  else (set filename2_path= ) ) 

C:\Ulti>set br= 

C:\Ulti>set br_choice= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "nsp_source_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:nsp_source_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "nsp_source_choice"  
 goto:eof
)  else (goto:nsp_source_choice) 

C:\Ulti>IF /I "Y" == "Y" (
echo Which games do you want to use as a base source:  
 IF NOT "C:\Ulti\Saturn_emu_inject_datas\games\Cotton2" == "" echo 1: Cotton2  
 IF NOT "" == "" echo 2: GuardianForce  
 IF NOT "" == "" echo 3: CottonBoomerang  
 echo 0: Select a NSP  
 echo All other choices: Go back tou previous menu.  
 echo. 
 set /p br=Make your choice:   
 IF "!br!" == "0" C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Nintendo Switch nsp files^(*.nsp^)|*.nsp|" "Select the Saturn nsp source file" "C:\Ulti\templogs\tempvar.txt" 
)  else (
echo Please choose the Saturn nsp source file in the following window.  
 echo If you close the window you will return to the menu.  
 pause 
 C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Nintendo Switch nsp files^(*.nsp^)|*.nsp|" "Select the Saturn nsp source file" "C:\Ulti\templogs\tempvar.txt" 
) 
Which games do you want to use as a base source:
1: Cotton2
0: Select a NSP
All other choices: Go back tou previous menu.

Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>IF /I "Y" == "Y" (IF "0" == "1" (
set br_choice=0  
 set game_files=Cotton2 
)  else IF "0" == "2" (
set br_choice=1  
 set game_files=GuardianForce 
)  else IF "0" == "3" (
set br_choice=2  
 set game_files=CottonBoomerang 
)  else IF "0" == "0" (set /p br= 0<"C:\Ulti\templogs\tempvar.txt" )  else (goto:menu) )  else (set /p br= 0<"C:\Ulti\templogs\tempvar.txt" ) 

C:\Ulti>IF "0" == "0" set br= 

C:\Ulti>IF "" == "" (goto:menu) 

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>if "n" == "1" (
cls 
 call :Howtouse  
 goto:Menu
)  else if "n" == "2" (
cls 
 goto:Start
)  else if "n" == "3" (
start "" /d "Tools\Saturn_emu_inject\Tools\CDmage" "Tools\Saturn_emu_inject\Tools\CDmage\CDmage.exe"  
 goto:Menu
)  else if "n" == "4" (
cls 
 call :save_prod.keys_file  
 goto:Menu
)  else if "n" == "5" (
cls 
 call :convert_png_to_tex_folder  
 goto:Menu
)  else (goto:end_script2) 

C:\Ulti>IF EXIST templogs (rmdir /s /q templogs ) 

C:\Ulti>endlocal
Other functions menu

What do you want to do?

1: Convert a XCI or NCA file in NSP?

2: Convert a NSP to try to make it compatible with the lowest possible firmware?

3: Install NSPs via the network and Goldleaf?

4: Install NSPs via USB and Goldleaf (doesn't work with latest Goldleaf's version)?

5: Convert a Zelda Breath Of The Wild gamesave from Switch to Wii U or Wii U to Switch?

6: Extract the certificat of a device?

7: Verify NSP files?

8: Split NSPs/XCIs?

9: Merge a XCI/NSP splited?

10: Compress/uncompress a game with nsZip (obsolete function)?

11: Configure the emulator Nes Classic Edition?

12: Configure the emulator Snes Classic Edition?

13: Install Android APPS (USB debugging  MODE REQUIRED)?

14: Create a forwarder?

15: Create a nsp for a GameMaker game?

16: Inject a Sega Saturn game (beta function)?

17: Obtain the NCAs that identify the firmware?

All other choices: Go back to main menu?


Make your choice: :::::::::::::::::::::::::::::::::::::
::Shadow256 Ultimate Switch Hack Script 4.3.256::
:::::::::::::::::::::::::::::::::::::

Main menu

What do you want to do?

1: Basic functions (launch a payload, prepare the SD, verify infos, etc...)?

2: Updates or unbrick the Switch?

3: Nand toolbox?

4: Launch NSC_Builder witch could display infos, to convert NSPs/XCIs, see the documentation for more infos?

5: Launch or configure the software toolbox?

6: Other functions?

7: Ocasionnal functions?

8: Save/restaure and script's settings?

9: Launch or configure the network gaming client (Switch-Lan-Play client)?

10: Launch a network gaming server (Switch-Lan-Play server)?

11: Allow the remote control of this computer via NVDA and Nvdaremote?

12: change language?

13: change theme?

14: About the script?

15: Donate to me?

0: Launch the documentation (recommanded)?

All other choices: exit?


Make your choice: 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set this_script_full_path=tools\Storage\others_functions_menu.bat 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" (
echo Language error. Please use the update manager to update the script. This script will now close.  
 pause 
 endlocal 
 goto:eof
) 

C:\Ulti>IF EXIST "tools\Storage\others_functions_menu.bat.version" (set /p this_script_version= 0<"tools\Storage\others_functions_menu.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Other functions menu 4.3.222 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>set action_choice= 

C:\Ulti>cls

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" "display_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_menu$"  0<"C:\Ulti\languages\EN_us\tools\Storage\others_functions_menu.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_menu"  
 goto:eof
)  else (goto:display_menu) 

C:\Ulti>echo Other functions menu 
Other functions menu

C:\Ulti>echo.


C:\Ulti>echo What do you want to do? 
What do you want to do?

C:\Ulti>echo.


C:\Ulti>echo 1: Convert a XCI or NCA file in NSP? 
1: Convert a XCI or NCA file in NSP?

C:\Ulti>echo.


C:\Ulti>echo 2: Convert a NSP to try to make it compatible with the lowest possible firmware? 
2: Convert a NSP to try to make it compatible with the lowest possible firmware?

C:\Ulti>echo.


C:\Ulti>echo 3: Install NSPs via the network and Goldleaf? 
3: Install NSPs via the network and Goldleaf?

C:\Ulti>echo.


C:\Ulti>echo 4: Install NSPs via USB and Goldleaf (doesn't work with latest Goldleaf's version)? 
4: Install NSPs via USB and Goldleaf (doesn't work with latest Goldleaf's version)?

C:\Ulti>echo.


C:\Ulti>echo 5: Convert a Zelda Breath Of The Wild gamesave from Switch to Wii U or Wii U to Switch? 
5: Convert a Zelda Breath Of The Wild gamesave from Switch to Wii U or Wii U to Switch?

C:\Ulti>echo.


C:\Ulti>echo 6: Extract the certificat of a device? 
6: Extract the certificat of a device?

C:\Ulti>echo.


C:\Ulti>echo 7: Verify NSP files? 
7: Verify NSP files?

C:\Ulti>echo.


C:\Ulti>echo 8: Split NSPs/XCIs? 
8: Split NSPs/XCIs?

C:\Ulti>echo.


C:\Ulti>echo 9: Merge a XCI/NSP splited? 
9: Merge a XCI/NSP splited?

C:\Ulti>echo.


C:\Ulti>echo 10: Compress/uncompress a game with nsZip (obsolete function)? 
10: Compress/uncompress a game with nsZip (obsolete function)?

C:\Ulti>echo.


C:\Ulti>echo 11: Configure the emulator Nes Classic Edition? 
11: Configure the emulator Nes Classic Edition?

C:\Ulti>echo.


C:\Ulti>echo 12: Configure the emulator Snes Classic Edition? 
12: Configure the emulator Snes Classic Edition?

C:\Ulti>echo.


C:\Ulti>echo 13: Install Android APPS (USB debugging  MODE REQUIRED)? 
13: Install Android APPS (USB debugging  MODE REQUIRED)?

C:\Ulti>echo.


C:\Ulti>echo 14: Create a forwarder? 
14: Create a forwarder?

C:\Ulti>echo.


C:\Ulti>echo 15: Create a nsp for a GameMaker game? 
15: Create a nsp for a GameMaker game?

C:\Ulti>echo.


C:\Ulti>echo 16: Inject a Sega Saturn game (beta function)? 
16: Inject a Sega Saturn game (beta function)?

C:\Ulti>echo.


C:\Ulti>echo 17: Obtain the NCAs that identify the firmware? 
17: Obtain the NCAs that identify the firmware?

C:\Ulti>echo.


C:\Ulti>echo All other choices: Go back to main menu? 
All other choices: Go back to main menu?

C:\Ulti>echo.


C:\Ulti>echo.


C:\Ulti>set /p action_choice=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>IF "16" == "1" goto:convert_game

C:\Ulti>IF "16" == "2" goto:renxpack

C:\Ulti>IF "16" == "3" goto:install_nsp_network

C:\Ulti>IF "16" == "4" goto:install_nsp_usb

C:\Ulti>IF "16" == "5" goto:convert_BOTW

C:\Ulti>IF "16" == "6" goto:extract_cert

C:\Ulti>IF "16" == "7" goto:verify_nsp

C:\Ulti>IF "16" == "8" goto:split_games

C:\Ulti>IF "16" == "9" goto:merge_games

C:\Ulti>IF "16" == "10" goto:nsZip

C:\Ulti>IF "16" == "11" goto:config_nes_classic

C:\Ulti>IF "16" == "12" goto:config_snes_classic

C:\Ulti>IF "16" == "13" goto:install_android_apps

C:\Ulti>IF "16" == "14" goto:create_forwarder

C:\Ulti>IF "16" == "15" goto:create_gamemaker_game

C:\Ulti>IF "16" == "16" goto:inject_saturn_game

C:\Ulti>set action_choice= 

C:\Ulti>echo.


C:\Ulti>cls

C:\Ulti>IF EXIST "tools\Storage\saturn_emu_inject.bat" (call tools\Storage\update_manager.bat "update_saturn_emu_inject.bat" )  else (call tools\Storage\update_manager.bat "update_saturn_emu_inject.bat" "force" ) 

C:\Ulti>IF EXIST "tools\storage\functions\ini_scripts.bat" (call tools\storage\functions\ini_scripts.bat )  else (
 
 chcp 65001  1>nul 
) 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>IF EXIST "tools\Storage\update_manager.bat.version" (set /p this_script_version= 0<"tools\Storage\update_manager.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set base_script_path="C:\Ulti\tools\Storage\\..\.." 

C:\Ulti>set folders_url_project_base=https://github.com/shadow2560/Ultimate-Switch-Hack-Script/trunk 

C:\Ulti>set files_url_project_base=https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master 

C:\Ulti>set atmo_folders_sigpatches_url_project_base=https://github.com/THZoria/patches/trunk 

C:\Ulti>set atmo_files_sigpatches_url_project_base=https://raw.githubusercontent.com/THZoria/patches/master 

C:\Ulti>set what_to_update=update_saturn_emu_inject.bat 

C:\Ulti>IF NOT EXIST "tools\gnuwin32\bin\wc.exe" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 IF !errorlevel! NEQ 0 (
echo Dependancy error, you have to connect to internet, script will close.  
 pause 
 exit
)  else (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Updating Gnuwin32 dependancies...  
 "tools\gitget\SVN\svn.exe" export https://github.com/shadow2560/Ultimate-Switch-Hack-Script/trunk/tools/gnuwin32 tools\gnuwin32 --force  1>nul 
) 
) 

C:\Ulti>IF NOT EXIST "tools\aria2\aria2c.exe" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 IF !errorlevel! NEQ 0 (
echo Dependancy error, you have to connect to internet, script will close.  
 pause 
 exit
)  else (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Updating Aria2 dependancies...  
 "tools\gitget\SVN\svn.exe" export https://github.com/shadow2560/Ultimate-Switch-Hack-Script/trunk/tools/aria2 tools\aria2 --force  1>nul 
) 
) 

C:\Ulti>IF NOT EXIST "languages\FR_fr" (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Initializing french language...  
 set temp_language_path=languages\FR_fr  
 call :initialize_language 
) 

C:\Ulti>IF "languages\EN_us" == "" (
IF EXIST "languages\FR_fr\language_general_config.bat" call "languages\FR_fr\language_general_config.bat"  
 IF "!language_path!" == "" (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 echo Initializing first language...  
 set temp_language_path=languages\FR_fr  
 rmdir /s /q "templogs"  2>nul  
 call :initialize_language 
) 
) 

C:\Ulti>IF EXIST "templogs" (
del /q "templogs"  2>nul  
 rmdir /s /q "templogs"  2>nul 
) 

C:\Ulti>mkdir "templogs" 

C:\Ulti>IF "" == "language_init" (
rmdir /s /q "templogs"  2>nul  
 call :initialize_language 
) 

C:\Ulti>echo é  1>nul 

C:\Ulti>set this_script_full_path=tools\Storage\update_manager.bat 

C:\Ulti>IF "C:\Ulti\" == "" (
cd  1>templogs\tempvar.txt  
 set /p ushs_base_path= 0<templogs\tempvar.txt  
 set ushs_base_path=!ushs_base_path!\ 
) 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" (
echo Language error, please use the update manager to update the script. The script will force the initialization of the language.  
 pause 
 rmdir /s /q "templogs"  2>nul  
 call :initialize_language 
) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "retroarch_update" (
call :retroarch_update  
 goto:end_script
) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "update_launch_nsusbloader.bat" (
call :update_launch_nsusbloader.bat  
 goto:end_script
) 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Update manager 4.3.251 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>IF "y" == "" (IF "0" == "0" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 IF !errorlevel! EQU 0 (
call :verif_file_version "languages\EN_us\language_general_config.bat"  
 IF "!update_finded!" == "Y" (
"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat" "languages\EN_us\language_general_config.bat"  1>nul  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat.version" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat.version"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat.version" "languages\EN_us\language_general_config.bat.version"  1>nul  
 rmdir /s /q templogs  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "language_config_update_info"  
 pause 
 start /i "" "C:\Windows\system32\cmd.exe" /c call "Ultimate-Switch-Hack-Script.bat"  
 IF /I "on" == "on" pause 
 exit
) 
) 
) 
)  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_error"  
 pause 
 goto:end_script
) 
) ) 

C:\Ulti>IF EXIST "continue_update.txt" (
set auto_update=O  
 set /p what_to_update= 0<continue_update.txt  
 goto:begin_update
) 

C:\Ulti>IF "" == "force" (
set auto_update=O  
 goto:begin_update
) 

C:\Ulti>IF EXIST "failed_updates\*.failed" (
set auto_update=O  
 set failed_updates_finded=Y  
 goto:begin_update
) 

C:\Ulti>IF EXIST "languages\EN_us\script_general_config.bat\*.*" (rmdir /s /q "languages\EN_us\script_general_config.bat" ) 

C:\Ulti>IF not EXIST "languages\EN_us\script_general_config.bat" copy nul "languages\EN_us\script_general_config.bat"  1>nul 

C:\Ulti>tools\gnuwin32\bin\grep.exe -n "set auto_update="  0<"languages\EN_us\script_general_config.bat" 1>templogs\tempvar.txt 

C:\Ulti>set /p temp_auto_update_line= 0<templogs\tempvar.txt 

C:\Ulti>IF NOT "" == "" (
echo   | "tools\gnuwin32\bin\cut.exe" -d : -f 1  1>templogs\tempvar.txt  
 set /p auto_update_file_param_line= 0<templogs\tempvar.txt  
 echo   | "tools\gnuwin32\bin\cut.exe" -d = -f 2  1>templogs\tempvar.txt  
 set /p ini_auto_update= 0<templogs\tempvar.txt 
) 

C:\Ulti>set temp_auto_update_line= 

C:\Ulti>IF "" == "" (call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_choice" )  else IF /I "" == "O" (set auto_update=O )  else IF /I "" == "N" (set auto_update=N )  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_bad_value_error"  
 "tools\gnuwin32\bin\sed.exe" d "languages\EN_us\script_general_config.bat" 1>"languages\EN_us\script_general_config2.bat"  
 del /q "languages\EN_us\script_general_config.bat"  
 ren "languages\EN_us\script_general_config2.bat" "script_general_config.bat"  
 set ini_auto_update=  
 goto:initialize_auto_update
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:autoupdate_choice$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "autoupdate_choice"  
 goto:eof
)  else (goto:autoupdate_choice) 

C:\Ulti>echo Set the auto-update setting: 
Set the auto-update setting:

C:\Ulti>echo.


C:\Ulti>echo The updates are verified when you launch a functionality or a group of functionnality. If you try to use a functionnality that is not yet installed, the update will be forced to install it even if you disable the updates verification. 
The updates are verified when you launch a functionality or a group of functionnality. If you try to use a functionnality that is not yet installed, the update will be forced to install it even if you disable the updates verification.

C:\Ulti>echo In the following choice, if you choose an not definitive option, this question will be asked often. 
In the following choice, if you choose an not definitive option, this question will be asked often.

C:\Ulti>echo If you choose to always verify updates, some functions will take time to load, for example the main menu or the SD preparation script or the Nand Toolbox but the functionnalities will always be up to date. 
If you choose to always verify updates, some functions will take time to load, for example the main menu or the SD preparation script or the Nand Toolbox but the functionnalities will always be up to date.

C:\Ulti>echo If you choose to never verify updates, you could only update the script via the "About" function but launching a functionnality will be more fast. 
If you choose to never verify updates, you could only update the script via the "About" function but launching a functionnality will be more fast.

C:\Ulti>echo Note that you always an reset this setting via the "settings menu" of the script. 
Note that you always an reset this setting via the "settings menu" of the script.

C:\Ulti>echo Not that even if you disable the updates verification and if a previous update has failed, the update will be done to prevent some bugs. 
Not that even if you disable the updates verification and if a previous update has failed, the update will be done to prevent some bugs.

C:\Ulti>echo.


C:\Ulti>echo What do you want to do? 
What do you want to do?

C:\Ulti>echo y: Verify updates this time. 
y: Verify updates this time.

C:\Ulti>echo n: Don't verify updates this time. 
n: Don't verify updates this time.

C:\Ulti>echo a: Always verify updates. 
a: Always verify updates.

C:\Ulti>echo j: Never verify updates. 
j: Never verify updates.

C:\Ulti>echo.


C:\Ulti>set /p auto_update=Do you want to activate the auto-update? (y/n/a/j):  
Do you want to activate the auto-update? (y/n/a/j): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" (set auto_update=y )  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_empty_value_error"  
 goto:initialize_auto_update
) 

C:\Ulti>call :o/n/t/j_choice "auto_update" 

C:\Ulti>IF /I "!auto_update!" == "y" (set auto_update=o )  else IF /I "!auto_update!" == "n" (set auto_update=n )  else IF /I "!auto_update!" == "a" (set auto_update=t )  else IF /I "!auto_update!" == "j" (set auto_update=j )  else (set auto_update=n ) 

C:\Ulti>exit /b 

C:\Ulti>IF /I "o" == "J" (
IF NOT "" == "" (
"tools\gnuwin32\bin\sed.exe" ' d' "languages\EN_us\script_general_config.bat" 1>"languages\EN_us\script_general_config2.bat"  
 del /q "languages\EN_us\script_general_config.bat"  
 ren "languages\EN_us\script_general_config2.bat" "script_general_config.bat" 
)  
 echo set auto_update=N 1>>"languages\EN_us\script_general_config.bat"  
 set auto_update=N 
) 

C:\Ulti>IF /I "o" == "T" (
IF NOT "" == "" (
"tools\gnuwin32\bin\sed.exe" ' d' "languages\EN_us\script_general_config.bat" 1>"languages\EN_us\script_general_config2.bat"  
 del /q "languages\EN_us\script_general_config.bat"  
 ren "languages\EN_us\script_general_config2.bat" "script_general_config.bat" 
)  
 echo set auto_update=O 1>>"languages\EN_us\script_general_config.bat"  
 set auto_update=O 
) 

C:\Ulti>IF /I "o" == "N" (goto:end_script)  else IF /I "o" == "O" (goto:begin_update)  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "autoupdate_choice_not_permited_error"  
 goto:initialize_auto_update
) 

C:\Ulti>echo ::::::::::::::::::::::::::::::::::::: 
:::::::::::::::::::::::::::::::::::::

C:\Ulti>echo ::Shadow256 Ultimate Switch Hack Script 4.3.256 updater:: 
::Shadow256 Ultimate Switch Hack Script 4.3.256 updater::

C:\Ulti>echo.


C:\Ulti>IF EXIST "failed_updates\*.failed" (set failed_updates_finded=Y ) 

C:\Ulti>IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q "failed_updates"  2>nul ) 

C:\Ulti>mkdir "failed_updates"  1>nul 2>&1 

C:\Ulti>set error_level=0 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "update_all" goto:skip_new_script_install

C:\Ulti>IF "update_saturn_emu_inject.bat" == "general_content_update" goto:skip_new_script_install

C:\Ulti>IF "" == "force" (
IF NOT "" == "Y" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 set error_level=!errorlevel! 
)  else (set error_level=0 )  
 IF !error_level! NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_error"  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_for_new_installation_error"  
 pause 
 goto:end_script
)  
 set verified_internet_connexion=Y  
 set new_install_choice=  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "new_installation_choice"  
 IF NOT "!new_install_choice!" == "" set new_install_choice=!new_install_choice:~0,1!  
 call :o/n_choice "new_install_choice"  
 IF /I NOT "!new_install_choice!" == "o" (
IF EXIST templogs (rmdir /s /q templogs )  
 IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q failed_updates )  
 exit
)  
 call :verif_file_version "tools\Storage\update_manager.bat"  
 IF "!update_finded!" == "Y" (
call :verif_file_version "tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 call :verif_file_version "languages\FR_fr\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 IF NOT "languages\EN_us" == "languages\FR_fr" (IF "0" == "0" (
call :verif_file_version "languages\EN_us\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file ) 
) )  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "update_manager_updater_update"  
 pause 
 call :update_manager_update_special_script 
) 
) 

C:\Ulti>IF NOT "" == "Y" (
"C:\Windows\system32\ping.exe" /n 2 www.github.com  1>nul 2>&1  
 set error_level=!errorlevel! 
)  else (set error_level=0 ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_error"  
 IF /I "" == "o" (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "no_internet_connection_for_new_installation_error"  
 pause 
 IF EXIST templogs (rmdir /s /q templogs )  
 IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q failed_updates )  
 exit
)  
 pause 
 goto:end_script
) 

C:\Ulti>set verified_internet_connexion=Y 

C:\Ulti>IF NOT EXIST "failed_updates\*.failed" goto:skip_failed_updates_verification

C:\Ulti>call :verif_file_version "tools\Storage\update_manager.bat" 

C:\Ulti>set temp_file_path=tools\Storage\update_manager.bat 

C:\Ulti>set temp_file_slash_path=tools/Storage/update_manager.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\Storage\\test" )  else (mkdir "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\Storage\update_manager.bat" == "tools\sd_switch\version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "tools\general_update_version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else IF "tools\Storage\update_manager.bat" == "tools\version.txt" (
IF EXIST "tools\Storage\update_manager.bat" (set /p script_version= 0<"tools\Storage\update_manager.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat" 
)  else (
IF EXIST "tools\Storage\update_manager.bat.version" set /p script_version= 0<"tools\Storage\update_manager.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/update_manager.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Storage\update_manager.bat : va=4.3.251, vm=4.3.251 

C:\Ulti>rem echo tools/Storage/update_manager.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.251" == "" goto:end_compare_version

C:\Ulti>IF "4.3.251" == "" (IF NOT "4.3.251" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.251 GTR 4.3.251 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.251  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (
call :verif_file_version "tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 call :verif_file_version "languages\FR_fr\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file )  
 IF NOT "languages\EN_us" == "languages\FR_fr" (IF "0" == "0" (
call :verif_file_version "languages\EN_us\tools\Storage\update_manager_updater.bat"  
 IF "!update_finded!" == "Y" (call :update_file ) 
) )  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "update_manager_updater_update"  
 pause 
 call :update_manager_update_special_script 
) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "" (
IF EXIST "continue_update.txt" del /q "continue_update.txt"  
 goto:end_script
)  else (
echo update_saturn_emu_inject.bat 1>"continue_update.txt"  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "begin_update"  
 call :verif_file_version "tools\version.txt"  
 IF "!update_finded!" == "Y" (
call :update_file  
 IF "4.3.256" == "1.00.00" (
set restart_needed=Y  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "script_version_not_initialized_info" 
) 
)  
 call :verif_file_version "tools\general_update_version.txt"  
 IF "!update_finded!" == "Y" (
set restart_needed=Y  
 call :general_content_update 
)  else (
call :verif_file_version "languages\EN_us\tools\general_update_version.txt"  
 IF "!update_finded!" == "Y" (
set restart_needed=Y  
 call :general_content_update 
) 
)  
 IF "0" == "0" (
call :verif_folder_version "languages\EN_us\doc"  
 IF "!update_finded!" == "Y" (call :update_folder )  
 call :verif_file_version "languages\EN_us\language_general_config.bat"  
 IF "!update_finded!" == "Y" (
"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat" "languages\EN_us\language_general_config.bat"  1>nul  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "language_general_config.bat.version" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat.version"  
 IF !errorlevel! EQU 0 (
move "templogs\language_general_config.bat.version" "languages\EN_us\language_general_config.bat.version"  1>nul  
 call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "language_config_update_info"  
 set restart_needed=Y 
) 
) 
) 
)  
 IF "update_saturn_emu_inject.bat" == "general_content_update" (
IF EXIST "continue_update.txt" del /q "continue_update.txt"  
 goto:clean_files
)  
 call :update_saturn_emu_inject.bat  
 IF EXIST "continue_update.txt" del /q "continue_update.txt" 
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:begin_update$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "begin_update"  
 goto:eof
)  else (goto:begin_update) 

C:\Ulti>echo Verifying and updating... 
Verifying and updating...

C:\Ulti>goto:eof

C:\Ulti>set temp_file_path=tools\version.txt 

C:\Ulti>set temp_file_slash_path=tools/version.txt 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\version.txt" == "tools\sd_switch\version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "tools\general_update_version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else IF "tools\version.txt" == "tools\version.txt" (
IF EXIST "tools\version.txt" (set /p script_version= 0<"tools\version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt" 
)  else (
IF EXIST "tools\version.txt.version" set /p script_version= 0<"tools\version.txt.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/version.txt.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\version.txt : va=4.3.256, vm=4.3.256 

C:\Ulti>rem echo tools/version.txt 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.256" == "" goto:end_compare_version

C:\Ulti>IF "4.3.256" == "" (IF NOT "4.3.256" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.256 GTR 4.3.256 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.256  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>set temp_file_path=tools\general_update_version.txt 

C:\Ulti>set temp_file_slash_path=tools/general_update_version.txt 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\general_update_version.txt" == "tools\sd_switch\version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "tools\general_update_version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else IF "tools\general_update_version.txt" == "tools\version.txt" (
IF EXIST "tools\general_update_version.txt" (set /p script_version= 0<"tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt" 
)  else (
IF EXIST "tools\general_update_version.txt.version" set /p script_version= 0<"tools\general_update_version.txt.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/general_update_version.txt.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\general_update_version.txt : va=242, vm=242 

C:\Ulti>rem echo tools/general_update_version.txt 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "242" == "" goto:end_compare_version

C:\Ulti>IF "242" == "" (IF NOT "242" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 242  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 242  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 242 GTR 242 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>set temp_file_path=languages\EN_us\tools\general_update_version.txt 

C:\Ulti>set temp_file_slash_path=languages/EN_us/tools/general_update_version.txt 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\EN_us\tools\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\EN_us\tools\\test" )  else (mkdir "C:\Ulti\languages\EN_us\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\EN_us\tools\\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\EN_us\tools\general_update_version.txt" == "tools\sd_switch\version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else IF "languages\EN_us\tools\general_update_version.txt" == "tools\version.txt" (
IF EXIST "languages\EN_us\tools\general_update_version.txt" (set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt" 
)  else (
IF EXIST "languages\EN_us\tools\general_update_version.txt.version" set /p script_version= 0<"languages\EN_us\tools\general_update_version.txt.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/general_update_version.txt.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\tools\general_update_version.txt : va=129, vm=129 

C:\Ulti>rem echo languages/EN_us/tools/general_update_version.txt 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "129" == "" goto:end_compare_version

C:\Ulti>IF "129" == "" (IF NOT "129" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 129  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 129  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 129 GTR 129 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>set temp_folder_path=languages\EN_us\doc 

C:\Ulti>set temp_folder_slash_path=languages/EN_us/doc 

C:\Ulti>call :test_write_access folder "languages\EN_us\doc" 

C:\Ulti>IF "folder" == "folder" (mkdir "languages\EN_us\doc\test" )  else (mkdir "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "languages\EN_us\doc\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "languages\EN_us\doc\folder_version.txt" set /p script_version= 0<"languages\EN_us\doc\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/doc/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\doc : va=619, vm=619 

C:\Ulti>rem echo languages/EN_us/doc 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "619" == "" goto:end_compare_version

C:\Ulti>IF "619" == "" (IF NOT "619" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 619  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 619  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 619 GTR 619 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>set temp_file_path=languages\EN_us\language_general_config.bat 

C:\Ulti>set temp_file_slash_path=languages/EN_us/language_general_config.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\EN_us\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\EN_us\\test" )  else (mkdir "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\EN_us\\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\EN_us\language_general_config.bat" == "tools\sd_switch\version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "tools\general_update_version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else IF "languages\EN_us\language_general_config.bat" == "tools\version.txt" (
IF EXIST "languages\EN_us\language_general_config.bat" (set /p script_version= 0<"languages\EN_us\language_general_config.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat" 
)  else (
IF EXIST "languages\EN_us\language_general_config.bat.version" set /p script_version= 0<"languages\EN_us\language_general_config.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/language_general_config.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\language_general_config.bat : va=102, vm=102 

C:\Ulti>rem echo languages/EN_us/language_general_config.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "102" == "" goto:end_compare_version

C:\Ulti>IF "102" == "" (IF NOT "102" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 102  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 102  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 102 GTR 102 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>call :verif_file_version "tools\Storage\saturn_emu_inject.bat" 

C:\Ulti>set temp_file_path=tools\Storage\saturn_emu_inject.bat 

C:\Ulti>set temp_file_slash_path=tools/Storage/saturn_emu_inject.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\tools\Storage\\test" )  else (mkdir "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "tools\Storage\saturn_emu_inject.bat" == "tools\sd_switch\version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "tools\general_update_version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else IF "tools\Storage\saturn_emu_inject.bat" == "tools\version.txt" (
IF EXIST "tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat" 
)  else (
IF EXIST "tools\Storage\saturn_emu_inject.bat.version" set /p script_version= 0<"tools\Storage\saturn_emu_inject.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Storage/saturn_emu_inject.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Storage\saturn_emu_inject.bat : va=4.3.237, vm=4.3.237 

C:\Ulti>rem echo tools/Storage/saturn_emu_inject.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.237" == "" goto:end_compare_version

C:\Ulti>IF "4.3.237" == "" (IF NOT "4.3.237" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.237 GTR 4.3.237 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_file ) 

C:\Ulti>call :verif_file_version "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" 

C:\Ulti>set temp_file_path=languages\FR_fr\tools\Storage\saturn_emu_inject.bat 

C:\Ulti>set temp_file_slash_path=languages/FR_fr/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\FR_fr\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\FR_fr\tools\Storage\\test" )  else (mkdir "C:\Ulti\languages\FR_fr\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\FR_fr\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\languages\FR_fr\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "tools\sd_switch\version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "tools\general_update_version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" == "tools\version.txt" (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat" 
)  else (
IF EXIST "languages\FR_fr\tools\Storage\saturn_emu_inject.bat.version" set /p script_version= 0<"languages\FR_fr\tools\Storage\saturn_emu_inject.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/FR_fr/tools/Storage/saturn_emu_inject.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\FR_fr\tools\Storage\saturn_emu_inject.bat : va=112, vm=112 

C:\Ulti>rem echo languages/FR_fr/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "112" == "" goto:end_compare_version

C:\Ulti>IF "112" == "" (IF NOT "112" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 112  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 112  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 112 GTR 112 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_file ) 

C:\Ulti>IF NOT "languages\EN_us" == "languages\FR_fr" (IF "0" == "0" (
call :verif_file_version "languages\EN_us\tools\Storage\saturn_emu_inject.bat"  
 IF "!update_finded!" == "Y" (call :update_file ) 
) ) 

C:\Ulti>set temp_file_path=languages\EN_us\tools\Storage\saturn_emu_inject.bat 

C:\Ulti>set temp_file_slash_path=languages/EN_us/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>call :test_write_access file "C:\Ulti\languages\EN_us\tools\Storage\" 

C:\Ulti>IF "file" == "folder" (mkdir "C:\Ulti\languages\EN_us\tools\Storage\\test" )  else (mkdir "C:\Ulti\languages\EN_us\tools\Storage\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "file" == "folder" (rmdir /s /q "C:\Ulti\languages\EN_us\tools\Storage\\test" )  else (rmdir /s /q "C:\Ulti\languages\EN_us\tools\Storage\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "tools\sd_switch\version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "languages\FR_fr\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "languages\EN_us\tools\general_update_version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else IF "languages\EN_us\tools\Storage\saturn_emu_inject.bat" == "tools\version.txt" (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat" (set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat" )  else (set script_version=0 )  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat" 
)  else (
IF EXIST "languages\EN_us\tools\Storage\saturn_emu_inject.bat.version" set /p script_version= 0<"languages\EN_us\tools\Storage\saturn_emu_inject.bat.version"  
 "tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/languages/EN_us/tools/Storage/saturn_emu_inject.bat.version" 
) 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo languages\EN_us\tools\Storage\saturn_emu_inject.bat : va=113, vm=113 

C:\Ulti>rem echo languages/EN_us/tools/Storage/saturn_emu_inject.bat 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "113" == "" goto:end_compare_version

C:\Ulti>IF "113" == "" (IF NOT "113" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 113  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 113  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 1 EQU 1 (IF 1 EQU 1 (IF 113 GTR 113 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>exit /b 

C:\Ulti>call :verif_folder_version "tools\ImageMagick" 

C:\Ulti>set temp_folder_path=tools\ImageMagick 

C:\Ulti>set temp_folder_slash_path=tools/ImageMagick 

C:\Ulti>call :test_write_access folder "tools\ImageMagick" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\ImageMagick\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\ImageMagick\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\ImageMagick\folder_version.txt" set /p script_version= 0<"tools\ImageMagick\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/ImageMagick/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\ImageMagick : va=4.3.135, vm=4.3.135 

C:\Ulti>rem echo tools/ImageMagick 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.135" == "" goto:end_compare_version

C:\Ulti>IF "4.3.135" == "" (IF NOT "4.3.135" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.135 GTR 4.3.135 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.135  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\Hactool_based_programs" 

C:\Ulti>set temp_folder_path=tools\Hactool_based_programs 

C:\Ulti>set temp_folder_slash_path=tools/Hactool_based_programs 

C:\Ulti>call :test_write_access folder "tools\Hactool_based_programs" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\Hactool_based_programs\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\Hactool_based_programs\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\Hactool_based_programs\folder_version.txt" set /p script_version= 0<"tools\Hactool_based_programs\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Hactool_based_programs/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Hactool_based_programs : va=4.3.252, vm=4.3.252 

C:\Ulti>rem echo tools/Hactool_based_programs 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.252" == "" goto:end_compare_version

C:\Ulti>IF "4.3.252" == "" (IF NOT "4.3.252" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.252 GTR 4.3.252 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.252  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\python3_scripts\npdm_and_nacp_rewrite" 

C:\Ulti>set temp_folder_path=tools\python3_scripts\npdm_and_nacp_rewrite 

C:\Ulti>set temp_folder_slash_path=tools/python3_scripts/npdm_and_nacp_rewrite 

C:\Ulti>call :test_write_access folder "tools\python3_scripts\npdm_and_nacp_rewrite" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\python3_scripts\npdm_and_nacp_rewrite\test" )  else (mkdir "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\python3_scripts\npdm_and_nacp_rewrite\test" )  else (rmdir /s /q "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\python3_scripts\npdm_and_nacp_rewrite\folder_version.txt" set /p script_version= 0<"tools\python3_scripts\npdm_and_nacp_rewrite\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/python3_scripts/npdm_and_nacp_rewrite/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\python3_scripts\npdm_and_nacp_rewrite : va=4.3.204, vm=4.3.204 

C:\Ulti>rem echo tools/python3_scripts/npdm_and_nacp_rewrite 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.204" == "" goto:end_compare_version

C:\Ulti>IF "4.3.204" == "" (IF NOT "4.3.204" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.204 GTR 4.3.204 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.204  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\python3_scripts\squirrel_rewrite" 

C:\Ulti>set temp_folder_path=tools\python3_scripts\squirrel_rewrite 

C:\Ulti>set temp_folder_slash_path=tools/python3_scripts/squirrel_rewrite 

C:\Ulti>call :test_write_access folder "tools\python3_scripts\squirrel_rewrite" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\python3_scripts\squirrel_rewrite\test" )  else (mkdir "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\python3_scripts\squirrel_rewrite\test" )  else (rmdir /s /q "C:\Ulti\tools\python3_scripts\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\python3_scripts\squirrel_rewrite\folder_version.txt" set /p script_version= 0<"tools\python3_scripts\squirrel_rewrite\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/python3_scripts/squirrel_rewrite/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\python3_scripts\squirrel_rewrite : va=4.3.237, vm=4.3.237 

C:\Ulti>rem echo tools/python3_scripts/squirrel_rewrite 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.237" == "" goto:end_compare_version

C:\Ulti>IF "4.3.237" == "" (IF NOT "4.3.237" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.237 GTR 4.3.237 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>call :verif_folder_version "tools\Saturn_emu_inject" 

C:\Ulti>set temp_folder_path=tools\Saturn_emu_inject 

C:\Ulti>set temp_folder_slash_path=tools/Saturn_emu_inject 

C:\Ulti>call :test_write_access folder "tools\Saturn_emu_inject" 

C:\Ulti>IF "folder" == "folder" (mkdir "tools\Saturn_emu_inject\test" )  else (mkdir "C:\Ulti\tools\\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "folder" == "folder" (rmdir /s /q "tools\Saturn_emu_inject\test" )  else (rmdir /s /q "C:\Ulti\tools\\test" ) 

C:\Ulti>exit /b 

C:\Ulti>set script_version=0 

C:\Ulti>IF EXIST "tools\Saturn_emu_inject\folder_version.txt" set /p script_version= 0<"tools\Saturn_emu_inject\folder_version.txt" 

C:\Ulti>"tools\aria2\aria2c.exe" -m 0 --auto-save-interval=0 --file-allocation=none --allow-overwrite=true --continue=false --auto-file-renaming=false --quiet=true --summary-interval=0 --remove-control-file=true --always-resume=false --save-not-found=false --keep-unfinished-download-result=false -d "templogs" -o "version.txt" "https://raw.githubusercontent.com/shadow2560/Ultimate-Switch-Hack-Script/master/tools/Saturn_emu_inject/folder_version.txt" 

C:\Ulti>set /p script_version_verif= 0<"templogs\version.txt" 

C:\Ulti>rem echo tools\Saturn_emu_inject : va=4.3.237, vm=4.3.237 

C:\Ulti>rem echo tools/Saturn_emu_inject 

C:\Ulti>rem pause 

C:\Ulti>call :compare_version 

C:\Ulti>set update_finded= 

C:\Ulti>IF "4.3.237" == "" goto:end_compare_version

C:\Ulti>IF "4.3.237" == "" (IF NOT "4.3.237" == "" (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_verif_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_verif_cols+=1 

C:\Ulti>echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" -o "\."  | "tools\gnuwin32\bin\wc.exe" -l  1>templogs\tempvar.txt 

C:\Ulti>set /p count_script_version_cols= 0<templogs\tempvar.txt 

C:\Ulti>set /a count_script_version_cols+=1 

C:\Ulti>IF 3 EQU 1 (IF 3 EQU 1 (IF 4.3.237 GTR 4.3.237 (
set update_finded=Y  
 exit /b 
)  else (exit /b ) ) ) 

C:\Ulti>for /L %i in (1 1 3) do (
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f %i  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 1  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 2  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>(
echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version_verif= 0<templogs\tempvar.txt  
 echo 4.3.237  | "tools\gnuwin32\bin\grep.exe" ""  | "tools\gnuwin32\bin\cut.exe" -d . -f 3  1>templogs\tempvar.txt  
 set /p temp_script_version= 0<templogs\tempvar.txt  
 IF !temp_script_version_verif! GTR !temp_script_version! (
set update_finded=Y  
 exit /b 
) 
) 

C:\Ulti>IF "" == "folder" (mkdir "\test" )  else (mkdir "\test" ) 

C:\Ulti>IF 0 NEQ 0 (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "write_access_test_error"  
 goto:end_script
) 

C:\Ulti>IF "" == "folder" (rmdir /s /q "\test" )  else (rmdir /s /q "\test" ) 

C:\Ulti>exit /b 

C:\Ulti>exit /b 

C:\Ulti>IF "!update_finded!" == "Y" (call :update_folder ) 

C:\Ulti>exit /b 

C:\Ulti>call :del_old_or_unused_files 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "del_hold_files_begin" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:del_hold_files_begin$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "del_hold_files_begin"  
 goto:eof
)  else (goto:del_hold_files_begin) 

C:\Ulti>echo Verifying and removing old files... 
Verifying and removing old files...

C:\Ulti>goto:eof

C:\Ulti>IF EXIST "tools\Storage\verif_update.ini" del /q "tools\Storage\verif_update.ini" 

C:\Ulti>IF EXIST "DOC\*.*" rmdir /s /q "DOC" 

C:\Ulti>IF EXIST "tools\sd_switch\mixed\modular\DZ" rmdir /s /q "tools\sd_switch\mixed\modular\DZ" 

C:\Ulti>IF EXIST "tools\sd_switch\mixed\modular\Zerotwoxci" rmdir /s /q "tools\sd_switch\mixed\modular\Zerotwoxci" 

C:\Ulti>IF EXIST "tools\sd_switch\modules\pack\Sys-Netcheat" rmdir /s /q "tools\sd_switch\modules\pack\Sys-Netcheat" 

C:\Ulti>IF EXIST "tools\sd_switch\modules\pack\Sys-audioplayer" rmdir /s /q "tools\sd_switch\modules\pack\Sys-audioplayer" 

C:\Ulti>IF EXIST "tools\sd_switch\atmosphere_mariko_special_files" rmdir /s /q "tools\sd_switch\atmosphere_mariko_special_files" 

C:\Ulti>call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "del_hold_files_end" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:del_hold_files_end$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "del_hold_files_end"  
 goto:eof
)  else (goto:del_hold_files_end) 

C:\Ulti>echo End of old files removing. 
End of old files removing.

C:\Ulti>goto:eof

C:\Ulti>exit /b 

C:\Ulti>IF "" == "Y" (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "end_update_restart_needed"  
 pause 
 rmdir /s /q templogs  
 start /i "" "C:\Windows\system32\cmd.exe" /c call "Ultimate-Switch-Hack-Script.bat"  
 IF /I "on" == "on" pause 
 exit
)  else (
call "C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" "end_update"  
 pause
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:end_update$"  0<"C:\Ulti\languages\EN_us\tools\Storage\update_manager.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "end_update"  
 goto:eof
)  else (goto:end_update) 

C:\Ulti>echo End of verifications and updates. 
End of verifications and updates.

C:\Ulti>goto:eof
Press any key to continue . . . 

C:\Ulti>goto:end_script

C:\Ulti>IF EXIST templogs (rmdir /s /q templogs ) 

C:\Ulti>IF NOT EXIST "failed_updates\*.failed" (rmdir /s /q failed_updates ) 

C:\Ulti>IF "update_saturn_emu_inject.bat" == "retroarch_update" goto:skip_ending_cls

C:\Ulti>cls

C:\Ulti>endlocal

C:\Ulti>call TOOLS\Storage\saturn_emu_inject.bat 

C:\Ulti>call tools\storage\functions\ini_scripts.bat 

C:\Ulti>chcp 65001  1>nul 

C:\Ulti>Setlocal enabledelayedexpansion 

C:\Ulti>set this_script_full_path=TOOLS\Storage\saturn_emu_inject.bat 

C:\Ulti>set associed_language_script=languages\EN_us\!this_script_full_path:C:\Ulti\=! 

C:\Ulti>set associed_language_script=C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" (
set associed_language_script=languages\FR_fr\!this_script_full_path:C:\Ulti\=!  
 set associed_language_script=C:\Ulti\!associed_language_script!  
 echo The associated language file cannot be found, please run the updater to download it. French will be set as default.  
 pause
) 

C:\Ulti>IF NOT EXIST "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" (
echo Language error. Please use the update manager to update the script. This script will now close.  
 pause 
 endlocal 
 goto:eof
) 

C:\Ulti>IF EXIST "TOOLS\Storage\saturn_emu_inject.bat.version" (set /p this_script_version= 0<"TOOLS\Storage\saturn_emu_inject.bat.version" )  else (set this_script_version=1.00.00 ) 

C:\Ulti>IF EXIST templogs (
del /q templogs  2>nul  
 rmdir /s /q templogs  2>nul 
) 

C:\Ulti>mkdir templogs 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\*.*" mkdir "Saturn_emu_inject_datas" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\credits\*.*" mkdir "Saturn_emu_inject_datas\Credit" 
A subdirectory or file Saturn_emu_inject_datas\Credit already exists.

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\games\*.*" mkdir "Saturn_emu_inject_datas\games" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\ini\*.*" mkdir "Saturn_emu_inject_datas\ini" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\no_data\*.*" mkdir "Saturn_emu_inject_datas\no_data" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\playingguides\*.*" mkdir "Saturn_emu_inject_datas\PlayingGuide" 
A subdirectory or file Saturn_emu_inject_datas\PlayingGuide already exists.

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\profiles\*.*" mkdir "Saturn_emu_inject_datas\profiles" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\textures\*.*" mkdir "Saturn_emu_inject_datas\textures" 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\wallpapers\*.*" mkdir "Saturn_emu_inject_datas\wallpapers" 

C:\Ulti>set filename0=Cotton2 

C:\Ulti>set filename1=GuardianForce 

C:\Ulti>set filename2=CottonBoomerang 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "display_title" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:display_title$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "display_title"  
 goto:eof
)  else (goto:display_title) 

C:\Ulti>title Sega Saturn game inject 4.3.237 - Shadow256 Ultimate Switch Hack Script 4.3.256 

C:\Ulti>goto:eof

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>if "4" == "1" (
cls 
 call :Howtouse  
 goto:Menu
)  else if "4" == "2" (
cls 
 goto:Start
)  else if "4" == "3" (
start "" /d "Tools\Saturn_emu_inject\Tools\CDmage" "Tools\Saturn_emu_inject\Tools\CDmage\CDmage.exe"  
 goto:Menu
)  else if "4" == "4" (
cls 
 call :save_prod.keys_file  
 goto:Menu
)  else if "4" == "5" (
cls 
 call :convert_png_to_tex_folder  
 goto:Menu
)  else (goto:end_script2) 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_keys_path" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_keys_path$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_keys_path"  
 goto:eof
)  else (goto:set_keys_path) 

C:\Ulti>echo Please choose the prod.keys file in the following window. 
Please choose the prod.keys file in the following window.

C:\Ulti>echo If you close the window you will return to the menu. 
If you close the window you will return to the menu.

C:\Ulti>pause
Press any key to continue . . . 

C:\Ulti>C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Switch keys list files^(*.*^)|*.*|" "Select the prod.keys file" "C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>goto:eof

C:\Ulti>set /p temp_keys_file_path= 0<templogs\tempvar.txt 

C:\Ulti>IF "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\prod.keys" == "" (exit /b ) 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\*.*" mkdir "Saturn_emu_inject_datas"  1>nul 

C:\Ulti>copy "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\prod.keys" "Saturn_emu_inject_datas\prod.keys"  1>nul 

C:\Ulti>IF 0 EQU 0 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "keys_file_save_successful"  
 pause
)  else (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "keys_file_save_error"  
 pause
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:keys_file_save_successful$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "keys_file_save_successful"  
 goto:eof
)  else (goto:keys_file_save_successful) 

C:\Ulti>echo Keys file successfuly saved. 
Keys file successfuly saved.

C:\Ulti>goto:eof
Press any key to continue . . . 

C:\Ulti>exit /b 

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>if "2" == "1" (
cls 
 call :Howtouse  
 goto:Menu
)  else if "2" == "2" (
cls 
 goto:Start
)  else if "2" == "3" (
start "" /d "Tools\Saturn_emu_inject\Tools\CDmage" "Tools\Saturn_emu_inject\Tools\CDmage\CDmage.exe"  
 goto:Menu
)  else if "2" == "4" (
cls 
 call :save_prod.keys_file  
 goto:Menu
)  else if "2" == "5" (
cls 
 call :convert_png_to_tex_folder  
 goto:Menu
)  else (goto:end_script2) 

C:\Ulti>set display_good_saved_games=n 

C:\Ulti>for /L %i in (0 1 2) do (IF EXIST "Saturn_emu_inject_datas\games\!filename%i!\*.*" (
set filename%i_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename%i!  
 set display_good_saved_games=Y 
)  else (set filename%i_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename0!\*.*" (
set filename0_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename0!  
 set display_good_saved_games=Y 
)  else (set filename0_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename1!\*.*" (
set filename1_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename1!  
 set display_good_saved_games=Y 
)  else (set filename1_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename2!\*.*" (
set filename2_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename2!  
 set display_good_saved_games=Y 
)  else (set filename2_path= ) ) 

C:\Ulti>set br= 

C:\Ulti>set br_choice= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "nsp_source_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:nsp_source_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "nsp_source_choice"  
 goto:eof
)  else (goto:nsp_source_choice) 

C:\Ulti>IF /I "Y" == "Y" (
echo Which games do you want to use as a base source:  
 IF NOT "C:\Ulti\Saturn_emu_inject_datas\games\Cotton2" == "" echo 1: Cotton2  
 IF NOT "" == "" echo 2: GuardianForce  
 IF NOT "" == "" echo 3: CottonBoomerang  
 echo 0: Select a NSP  
 echo All other choices: Go back tou previous menu.  
 echo. 
 set /p br=Make your choice:   
 IF "!br!" == "0" C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Nintendo Switch nsp files^(*.nsp^)|*.nsp|" "Select the Saturn nsp source file" "C:\Ulti\templogs\tempvar.txt" 
)  else (
echo Please choose the Saturn nsp source file in the following window.  
 echo If you close the window you will return to the menu.  
 pause 
 C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Nintendo Switch nsp files^(*.nsp^)|*.nsp|" "Select the Saturn nsp source file" "C:\Ulti\templogs\tempvar.txt" 
) 
Which games do you want to use as a base source:
1: Cotton2
0: Select a NSP
All other choices: Go back tou previous menu.

Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>IF /I "Y" == "Y" (IF "0" == "1" (
set br_choice=0  
 set game_files=Cotton2 
)  else IF "0" == "2" (
set br_choice=1  
 set game_files=GuardianForce 
)  else IF "0" == "3" (
set br_choice=2  
 set game_files=CottonBoomerang 
)  else IF "0" == "0" (set /p br= 0<"C:\Ulti\templogs\tempvar.txt" )  else (goto:menu) )  else (set /p br= 0<"C:\Ulti\templogs\tempvar.txt" ) 

C:\Ulti>IF "C:\Ulti\Guardian.nsp" == "0" set br= 

C:\Ulti>IF "C:\Ulti\Guardian.nsp" == "" (goto:menu) 

C:\Ulti>echo.


C:\Ulti>set saturn_game_source= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_saturn_game_source" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_saturn_game_source$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "0" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_saturn_game_source"  
 goto:eof
)  else (goto:set_saturn_game_source) 

C:\Ulti>goto:set_saturn_game_source

C:\Ulti>echo Choisissez le fichier cue du jeu Saturn à injecter dans la fenêtre suivante. 
Choisissez le fichier cue du jeu Saturn à injecter dans la fenêtre suivante.

C:\Ulti>echo Si vous refermez la fenêtre vous retournerez au menu. 
Si vous refermez la fenêtre vous retournerez au menu.

C:\Ulti>pause
Press any key to continue . . . 

C:\Ulti>C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Fichiers cue ^(*.cue^)|*.cue|" "Sélection du fichier cue du jeu Saturn à injecter" "C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>goto:eof

C:\Ulti>set /p saturn_game_source= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>IF "C:\Ulti\Baku Baku Animal.cue" == "" (goto:menu) 

C:\Ulti>set saturn_game_source_folder= 

C:\Ulti>call :get_saturn_game_source_folder "C:\Ulti\Baku Baku Animal.cue" 

C:\Ulti>set saturn_game_source_folder=C:\Ulti\ 

C:\Ulti>exit /b 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -i -e "^FILE " "C:\Ulti\Baku Baku Animal.cue"   | "C:\Ulti\tools\gnuwin32\bin\cut.exe" -d\" -f 2  1>"C:\Ulti\templogs\bin_list.txt" 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c "" "C:\Ulti\templogs\bin_list.txt"  1>"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set /p count_saturn_game_files= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set /a count_saturn_game_files=1 

C:\Ulti>IF 1 EQU 0 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "cue_file_error"  
 pause 
 goto:menu
) 

C:\Ulti>set /a templine=1 

C:\Ulti>copy nul "C:\Ulti\templogs\bin_list2.txt"  1>nul 

C:\Ulti>IF 1 GTR 1 goto:pass_start_cue_analyse

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\sed.exe" -n !templine!p "C:\Ulti\templogs\bin_list.txt"  1>"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set /p tempinfo= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set tempinfo=C:\Ulti\\Baku Baku Animal.BIN 

C:\Ulti>IF NOT EXIST "C:\Ulti\\Baku Baku Animal.BIN" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "cue_file_error"  
 pause 
 goto:menu
) 

C:\Ulti>echo !tempinfo!  1>>"C:\Ulti\templogs\bin_list2.txt" 

C:\Ulti>set /a templine=1+1 

C:\Ulti>goto:start_cue_analyse

C:\Ulti>IF 2 GTR 1 goto:pass_start_cue_analyse

C:\Ulti>echo.


C:\Ulti>IF EXIST "Saturn_emu_inject_datas\prod.keys" set "keys_path=C:\Ulti\Saturn_emu_inject_datas\prod.keys 

C:\Ulti>IF EXIST "Saturn_emu_inject_datas\prod.keys" goto:icon_change_choice

C:\Ulti>set bs= 

C:\Ulti>set bz= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_icon_type_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_icon_type_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_icon_type_choice"  
 goto:eof
)  else (goto:set_icon_type_choice) 

C:\Ulti>set /p bs=Do you want to choose your own icon file for the game? (y/n):  
Do you want to choose your own icon file for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set bs=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "bs" "o/n_choice" 

C:\Ulti>call :o/n_choice "bs" 

C:\Ulti>IF /I "!bs!" == "y" (set bs=o )  else IF /I "!bs!" == "n" (set bs=n )  else (set bs=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF /I "n" == "o" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_icon_path"  
 set /p bz= 0<"C:\Ulti\templogs\tempvar.txt"  
 IF "!bz!" == "" (goto:icon_change_choice) 
) 

C:\Ulti>set custom_ini_choice= 

C:\Ulti>set custom_ini_path= 

C:\Ulti>set default_ini_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_ini_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_ini_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_ini_choice"  
 goto:eof
)  else (goto:set_default_ini_choice) 

C:\Ulti>set /p default_ini_choice=Do you want to use a generic ini   config file for the emulator for the game? (y/n):  
Do you want to use a generic ini   config file for the emulator for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_ini_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_ini_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_ini_choice" 

C:\Ulti>IF /I "!default_ini_choice!" == "y" (set default_ini_choice=o )  else IF /I "!default_ini_choice!" == "n" (set default_ini_choice=n )  else (set default_ini_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_ini_choice=o  
 call :generic_ini_select  
 goto:custom_wallpaper_change_choice
) 

C:\Ulti>set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config 

C:\Ulti>set cartridge_4mb_ram_choice= 

C:\Ulti>set widescreen_choice= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_cartridge_4mb_ram_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_cartridge_4mb_ram_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_cartridge_4mb_ram_choice"  
 goto:eof
)  else (goto:set_cartridge_4mb_ram_choice) 

C:\Ulti>set /p cartridge_4mb_ram_choice=Do you want to use the 4MB ram extension (savestates will not work anymore)? (y/n):  
Do you want to use the 4MB ram extension (savestates will not work anymore)? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set cartridge_4mb_ram_choice=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "cartridge_4mb_ram_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "cartridge_4mb_ram_choice" 

C:\Ulti>IF /I "!cartridge_4mb_ram_choice!" == "y" (set cartridge_4mb_ram_choice=o )  else IF /I "!cartridge_4mb_ram_choice!" == "n" (set cartridge_4mb_ram_choice=n )  else (set cartridge_4mb_ram_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_widescreen_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_widescreen_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_widescreen_choice"  
 goto:eof
)  else (goto:set_widescreen_choice) 

C:\Ulti>set /p widescreen_choice=Do you want to enable widescreen (be careful, the game must be set up for this otherwise the display will not be beautiful)? (y/n):  
Do you want to enable widescreen (be careful, the game must be set up for this otherwise the display will not be beautiful)? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set widescreen_choice=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "widescreen_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "widescreen_choice" 

C:\Ulti>IF /I "!widescreen_choice!" == "y" (set widescreen_choice=o )  else IF /I "!widescreen_choice!" == "n" (set widescreen_choice=n )  else (set widescreen_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF /I "n" == "o" set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config_4mb 

C:\Ulti>IF /I "n" == "o" set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config_widescreen 

C:\Ulti>set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini 

C:\Ulti>exit /b 

C:\Ulti>set custom_wallpaper_choice= 

C:\Ulti>set custom_wallpaper_folder_path= 

C:\Ulti>set default_wallpaper_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_wallpaper_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_wallpaper_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_wallpaper_choice"  
 goto:eof
)  else (goto:set_default_wallpaper_choice) 

C:\Ulti>set /p default_wallpaper_choice=Do you want to use generic wallpapers for the game? (y/n):  
Do you want to use generic wallpapers for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_wallpaper_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_wallpaper_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_wallpaper_choice" 

C:\Ulti>IF /I "!default_wallpaper_choice!" == "y" (set default_wallpaper_choice=o )  else IF /I "!default_wallpaper_choice!" == "n" (set default_wallpaper_choice=n )  else (set default_wallpaper_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_wallpaper_choice=o  
 set custom_wallpaper_folder_path=C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper  
 goto:custom_credit_change_choice
) 

C:\Ulti>set custom_credit_choice= 

C:\Ulti>set custom_credit_folder_path= 

C:\Ulti>set default_credit_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_credit_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_credit_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_credit_choice"  
 goto:eof
)  else (goto:set_default_credit_choice) 

C:\Ulti>set /p default_credit_choice=Do you want to use generic credits for the game? (y/n):  
Do you want to use generic credits for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_credit_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_credit_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_credit_choice" 

C:\Ulti>IF /I "!default_credit_choice!" == "y" (set default_credit_choice=o )  else IF /I "!default_credit_choice!" == "n" (set default_credit_choice=n )  else (set default_credit_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_credit_choice=o  
 set custom_credit_folder_path=C:\Ulti\tools\Saturn_emu_inject\Tools\Credit  
 goto:custom_playingguide_change_choice
) 

C:\Ulti>set custom_playingguide_choice= 

C:\Ulti>set custom_playingguide_folder_path= 

C:\Ulti>set default_playingguide_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_playingguide_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_playingguide_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_playingguide_choice"  
 goto:eof
)  else (goto:set_default_playingguide_choice) 

C:\Ulti>set /p default_playingguide_choice=Do you want to use a generic playing guide for the game? (y/n):  
Do you want to use a generic playing guide for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_playingguide_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_playingguide_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_playingguide_choice" 

C:\Ulti>IF /I "!default_playingguide_choice!" == "y" (set default_playingguide_choice=o )  else IF /I "!default_playingguide_choice!" == "n" (set default_playingguide_choice=n )  else (set default_playingguide_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_playingguide_choice=o  
 set custom_playingguide_folder_path=C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide  
 goto:custom_texture_change_choice
) 

C:\Ulti>set custom_texture_choice= 

C:\Ulti>set custom_texture_path= 

C:\Ulti>set default_texture_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_texture_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_texture_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_texture_choice"  
 goto:eof
)  else (goto:set_default_texture_choice) 

C:\Ulti>set /p default_texture_choice=Do you want to use a generic texture file for the game? (y/n):  
Do you want to use a generic texture file for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_texture_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_texture_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_texture_choice" 

C:\Ulti>IF /I "!default_texture_choice!" == "y" (set default_texture_choice=o )  else IF /I "!default_texture_choice!" == "n" (set default_texture_choice=n )  else (set default_texture_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_texture_choice=o  
 set custom_texture_path=C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex  
 goto:custom_nodata_change_choice
) 

C:\Ulti>set custom_nodata_choice= 

C:\Ulti>set custom_nodata_path= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_custom_nodata_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_custom_nodata_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_custom_nodata_choice"  
 goto:eof
)  else (goto:set_custom_nodata_choice) 

C:\Ulti>set /p custom_nodata_choice=Do you want to choose your own "no_data.tex" file for the game? (y/n):  
Do you want to choose your own "no_data.tex" file for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set custom_nodata_choice=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "custom_nodata_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "custom_nodata_choice" 

C:\Ulti>IF /I "!custom_nodata_choice!" == "y" (set custom_nodata_choice=o )  else IF /I "!custom_nodata_choice!" == "n" (set custom_nodata_choice=n )  else (set custom_nodata_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF /I "n" == "o" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_custom_nodata_path"  
 set /p custom_nodata_path= 0<"C:\Ulti\templogs\tempvar.txt"  
 IF "!custom_nodata_path!" == "" (goto:custom_nodata_change_choice) 
) 

C:\Ulti>echo.


C:\Ulti>set id= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_id" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_id$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_id"  
 goto:eof
)  else (goto:set_id) 

C:\Ulti>echo Enter the content ID (must be unique on the console it is installed on and must be 16 hexadecimal characters long (0-9, A-F)), leave blank to generate a random ID. 
Enter the content ID (must be unique on the console it is installed on and must be 16 hexadecimal characters long (0-9, A-F)), leave blank to generate a random ID.

C:\Ulti>set /p id=ID:  
ID: 
C:\Ulti>goto:eof

C:\Ulti>IF "" == "" (
call :randomize_id  
 goto:pass_id_set
) 

C:\Ulti>for /L %n in (1 1 12) do (
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand%n=a  
 if !rand! == 2 set rand%n=b  
 if !rand! == 3 set rand%n=c  
 if !rand! == 4 set rand%n=d  
 if !rand! == 5 set rand%n=e  
 if !rand! == 6 set rand%n=f  
 if !rand! == 7 set rand%n=1  
 if !rand! == 8 set rand%n=2  
 if !rand! == 9 set rand%n=3  
 if !rand! == 10 set rand%n=4  
 if !rand! == 11 set rand%n=5  
 if !rand! == 12 set rand%n=6  
 if !rand! == 13 set rand%n=7  
 if !rand! == 14 set rand%n=8  
 if !rand! == 15 set rand%n=9  
 if !rand! == 16 set rand%n=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand1=a  
 if !rand! == 2 set rand1=b  
 if !rand! == 3 set rand1=c  
 if !rand! == 4 set rand1=d  
 if !rand! == 5 set rand1=e  
 if !rand! == 6 set rand1=f  
 if !rand! == 7 set rand1=1  
 if !rand! == 8 set rand1=2  
 if !rand! == 9 set rand1=3  
 if !rand! == 10 set rand1=4  
 if !rand! == 11 set rand1=5  
 if !rand! == 12 set rand1=6  
 if !rand! == 13 set rand1=7  
 if !rand! == 14 set rand1=8  
 if !rand! == 15 set rand1=9  
 if !rand! == 16 set rand1=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand2=a  
 if !rand! == 2 set rand2=b  
 if !rand! == 3 set rand2=c  
 if !rand! == 4 set rand2=d  
 if !rand! == 5 set rand2=e  
 if !rand! == 6 set rand2=f  
 if !rand! == 7 set rand2=1  
 if !rand! == 8 set rand2=2  
 if !rand! == 9 set rand2=3  
 if !rand! == 10 set rand2=4  
 if !rand! == 11 set rand2=5  
 if !rand! == 12 set rand2=6  
 if !rand! == 13 set rand2=7  
 if !rand! == 14 set rand2=8  
 if !rand! == 15 set rand2=9  
 if !rand! == 16 set rand2=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand3=a  
 if !rand! == 2 set rand3=b  
 if !rand! == 3 set rand3=c  
 if !rand! == 4 set rand3=d  
 if !rand! == 5 set rand3=e  
 if !rand! == 6 set rand3=f  
 if !rand! == 7 set rand3=1  
 if !rand! == 8 set rand3=2  
 if !rand! == 9 set rand3=3  
 if !rand! == 10 set rand3=4  
 if !rand! == 11 set rand3=5  
 if !rand! == 12 set rand3=6  
 if !rand! == 13 set rand3=7  
 if !rand! == 14 set rand3=8  
 if !rand! == 15 set rand3=9  
 if !rand! == 16 set rand3=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand4=a  
 if !rand! == 2 set rand4=b  
 if !rand! == 3 set rand4=c  
 if !rand! == 4 set rand4=d  
 if !rand! == 5 set rand4=e  
 if !rand! == 6 set rand4=f  
 if !rand! == 7 set rand4=1  
 if !rand! == 8 set rand4=2  
 if !rand! == 9 set rand4=3  
 if !rand! == 10 set rand4=4  
 if !rand! == 11 set rand4=5  
 if !rand! == 12 set rand4=6  
 if !rand! == 13 set rand4=7  
 if !rand! == 14 set rand4=8  
 if !rand! == 15 set rand4=9  
 if !rand! == 16 set rand4=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand5=a  
 if !rand! == 2 set rand5=b  
 if !rand! == 3 set rand5=c  
 if !rand! == 4 set rand5=d  
 if !rand! == 5 set rand5=e  
 if !rand! == 6 set rand5=f  
 if !rand! == 7 set rand5=1  
 if !rand! == 8 set rand5=2  
 if !rand! == 9 set rand5=3  
 if !rand! == 10 set rand5=4  
 if !rand! == 11 set rand5=5  
 if !rand! == 12 set rand5=6  
 if !rand! == 13 set rand5=7  
 if !rand! == 14 set rand5=8  
 if !rand! == 15 set rand5=9  
 if !rand! == 16 set rand5=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand6=a  
 if !rand! == 2 set rand6=b  
 if !rand! == 3 set rand6=c  
 if !rand! == 4 set rand6=d  
 if !rand! == 5 set rand6=e  
 if !rand! == 6 set rand6=f  
 if !rand! == 7 set rand6=1  
 if !rand! == 8 set rand6=2  
 if !rand! == 9 set rand6=3  
 if !rand! == 10 set rand6=4  
 if !rand! == 11 set rand6=5  
 if !rand! == 12 set rand6=6  
 if !rand! == 13 set rand6=7  
 if !rand! == 14 set rand6=8  
 if !rand! == 15 set rand6=9  
 if !rand! == 16 set rand6=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand7=a  
 if !rand! == 2 set rand7=b  
 if !rand! == 3 set rand7=c  
 if !rand! == 4 set rand7=d  
 if !rand! == 5 set rand7=e  
 if !rand! == 6 set rand7=f  
 if !rand! == 7 set rand7=1  
 if !rand! == 8 set rand7=2  
 if !rand! == 9 set rand7=3  
 if !rand! == 10 set rand7=4  
 if !rand! == 11 set rand7=5  
 if !rand! == 12 set rand7=6  
 if !rand! == 13 set rand7=7  
 if !rand! == 14 set rand7=8  
 if !rand! == 15 set rand7=9  
 if !rand! == 16 set rand7=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand8=a  
 if !rand! == 2 set rand8=b  
 if !rand! == 3 set rand8=c  
 if !rand! == 4 set rand8=d  
 if !rand! == 5 set rand8=e  
 if !rand! == 6 set rand8=f  
 if !rand! == 7 set rand8=1  
 if !rand! == 8 set rand8=2  
 if !rand! == 9 set rand8=3  
 if !rand! == 10 set rand8=4  
 if !rand! == 11 set rand8=5  
 if !rand! == 12 set rand8=6  
 if !rand! == 13 set rand8=7  
 if !rand! == 14 set rand8=8  
 if !rand! == 15 set rand8=9  
 if !rand! == 16 set rand8=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand9=a  
 if !rand! == 2 set rand9=b  
 if !rand! == 3 set rand9=c  
 if !rand! == 4 set rand9=d  
 if !rand! == 5 set rand9=e  
 if !rand! == 6 set rand9=f  
 if !rand! == 7 set rand9=1  
 if !rand! == 8 set rand9=2  
 if !rand! == 9 set rand9=3  
 if !rand! == 10 set rand9=4  
 if !rand! == 11 set rand9=5  
 if !rand! == 12 set rand9=6  
 if !rand! == 13 set rand9=7  
 if !rand! == 14 set rand9=8  
 if !rand! == 15 set rand9=9  
 if !rand! == 16 set rand9=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand10=a  
 if !rand! == 2 set rand10=b  
 if !rand! == 3 set rand10=c  
 if !rand! == 4 set rand10=d  
 if !rand! == 5 set rand10=e  
 if !rand! == 6 set rand10=f  
 if !rand! == 7 set rand10=1  
 if !rand! == 8 set rand10=2  
 if !rand! == 9 set rand10=3  
 if !rand! == 10 set rand10=4  
 if !rand! == 11 set rand10=5  
 if !rand! == 12 set rand10=6  
 if !rand! == 13 set rand10=7  
 if !rand! == 14 set rand10=8  
 if !rand! == 15 set rand10=9  
 if !rand! == 16 set rand10=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand11=a  
 if !rand! == 2 set rand11=b  
 if !rand! == 3 set rand11=c  
 if !rand! == 4 set rand11=d  
 if !rand! == 5 set rand11=e  
 if !rand! == 6 set rand11=f  
 if !rand! == 7 set rand11=1  
 if !rand! == 8 set rand11=2  
 if !rand! == 9 set rand11=3  
 if !rand! == 10 set rand11=4  
 if !rand! == 11 set rand11=5  
 if !rand! == 12 set rand11=6  
 if !rand! == 13 set rand11=7  
 if !rand! == 14 set rand11=8  
 if !rand! == 15 set rand11=9  
 if !rand! == 16 set rand11=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand12=a  
 if !rand! == 2 set rand12=b  
 if !rand! == 3 set rand12=c  
 if !rand! == 4 set rand12=d  
 if !rand! == 5 set rand12=e  
 if !rand! == 6 set rand12=f  
 if !rand! == 7 set rand12=1  
 if !rand! == 8 set rand12=2  
 if !rand! == 9 set rand12=3  
 if !rand! == 10 set rand12=4  
 if !rand! == 11 set rand12=5  
 if !rand! == 12 set rand12=6  
 if !rand! == 13 set rand12=7  
 if !rand! == 14 set rand12=8  
 if !rand! == 15 set rand12=9  
 if !rand! == 16 set rand12=0 
) 

C:\Ulti>set id=01052b0935ed9000 

C:\Ulti>exit /b 

C:\Ulti>echo.


C:\Ulti>set name= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_name" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_name$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_name"  
 goto:eof
)  else (goto:set_name) 

C:\Ulti>set /p name=Enter the game name to display (128 chars max):  
Enter the game name to display (128 chars max): 
C:\Ulti>goto:eof

C:\Ulti>IF "sd" == "" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "could_not_be_empty_error"  
 goto:name_set
) 

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "sd" 

C:\Ulti>set "string=sd" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "sd" == "" goto:end_lengthLoop

C:\Ulti>set "string=d" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=2 

C:\Ulti>IF 2 GTR 128 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_length_error"  
 goto:name_set
) 

C:\Ulti>set i=0 

C:\Ulti>IF 0 LSS 2 (
FOR %z in (& < > / * ? : ^ | \) do (IF "!name:~0,1!" == "%z" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) )  
 set /a i+=1  
 goto:check_chars_name
) 

C:\Ulti>(IF "!name:~0,1!" == "&" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "<" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == ">" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "/" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Baku Baku Animal.bin" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Baku Baku Animal.cue" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Cotton2.nsp" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Guardian Force Saturn Tribute [0100C67015270000][v0]_source_extracted.zip" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Guardian.nsp" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "LICENSE" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "prod.keys" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "title.keys" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat.lng" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat.theme" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat.version" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.log" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == ":" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "^" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "|" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "\" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>IF 1 LSS 2 (
FOR %z in (& < > / * ? : ^ | \) do (IF "!name:~1,1!" == "%z" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) )  
 set /a i+=1  
 goto:check_chars_name
) 

C:\Ulti>(IF "!name:~1,1!" == "&" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "<" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == ">" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "/" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Baku Baku Animal.bin" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Baku Baku Animal.cue" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Cotton2.nsp" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Guardian Force Saturn Tribute [0100C67015270000][v0]_source_extracted.zip" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Guardian.nsp" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "LICENSE" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "prod.keys" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "title.keys" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Ultimate-Switch-Hack-Script.bat" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Ultimate-Switch-Hack-Script.bat.lng" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Ultimate-Switch-Hack-Script.bat.theme" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Ultimate-Switch-Hack-Script.bat.version" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "Ultimate-Switch-Hack-Script.log" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == ":" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "^" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "|" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~1,1!" == "\" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>IF 2 LSS 2 (
FOR %z in (& < > / * ? : ^ | \) do (IF "!name:~2,1!" == "%z" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) )  
 set /a i+=1  
 goto:check_chars_name
) 

C:\Ulti>echo.


C:\Ulti>set author=No specified 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_author" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_author$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_author"  
 goto:eof
)  else (goto:set_author) 

C:\Ulti>set /p author=Enter the author name to display (64 chars max):  
Enter the author name to display (64 chars max): 
C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "s" 

C:\Ulti>set "string=s" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "s" == "" goto:end_lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=1 

C:\Ulti>IF 1 GTR 64 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "author_length_error"  
 goto:author_set
) 

C:\Ulti>echo.


C:\Ulti>set version=1.0 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_version" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_version$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_version"  
 goto:eof
)  else (goto:set_version) 

C:\Ulti>set /p version=Enter the version to display (4 chars max):  
Enter the version to display (4 chars max): 
C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "1" 

C:\Ulti>set "string=1" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "1" == "" goto:end_lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=1 

C:\Ulti>IF 1 GTR 4 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "version_length_error"  
 goto:version_set
) 

C:\Ulti>echo.


C:\Ulti>set /a save_size=-1 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_save_size" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_save_size$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_save_size"  
 goto:eof
)  else (goto:set_save_size) 

C:\Ulti>set /p save_size=Enter the save size in octets (leave empty to keep the default size):  
Enter the save size in octets (leave empty to keep the default size): 
C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "-1" 

C:\Ulti>set "string=-1" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "-1" == "" goto:end_lengthLoop

C:\Ulti>set "string=1" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=2 

C:\Ulti>set i=0 

C:\Ulti>IF 0 NEQ 2 (
set check_chars=0  
 FOR %z in (0 1 2 3 4 5 6 7 8 9 -) do (IF "!save_size:~0,1!" == "%z" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) )  
 IF "!check_chars!" == "0" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "bad_char_error"  
 goto:save_size_set
) 
) 

C:\Ulti>(IF "!save_size:~0,1!" == "0" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "1" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "2" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "3" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "4" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "5" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "6" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "7" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "8" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "9" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "-" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>IF 1 NEQ 2 (
set check_chars=0  
 FOR %z in (0 1 2 3 4 5 6 7 8 9 -) do (IF "!save_size:~1,1!" == "%z" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) )  
 IF "!check_chars!" == "0" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "bad_char_error"  
 goto:save_size_set
) 
) 

C:\Ulti>(IF "!save_size:~1,1!" == "0" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~1,1!" == "1" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>IF 2 NEQ 2 (
set check_chars=0  
 FOR %z in (0 1 2 3 4 5 6 7 8 9 -) do (IF "!save_size:~2,1!" == "%z" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) )  
 IF "!check_chars!" == "0" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "bad_char_error"  
 goto:save_size_set
) 
) 

C:\Ulti>echo.


C:\Ulti>set nsp_path= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_nsp_path" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_nsp_path$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_nsp_path"  
 goto:eof
)  else (goto:set_nsp_path) 

C:\Ulti>echo Please choose the folder where to create the game nsp in the following window. 
Please choose the folder where to create the game nsp in the following window.

C:\Ulti>echo If you close the window you will return to the menu. 
If you close the window you will return to the menu.

C:\Ulti>pause
Press any key to continue . . . 

C:\Ulti>C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\select_dir.vbs" "C:\Ulti\templogs\tempvar.txt" "Select the folder where to create the game nsp" 

C:\Ulti>goto:eof

C:\Ulti>set /p nsp_path= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>IF "C:\Ulti" == "" (goto:menu) 

C:\Ulti>set nsp_path=C:\Ulti\ 

C:\Ulti>set nsp_path=!nsp_path:\\=\! 

C:\Ulti>IF EXIST "C:\Ulti\sd_01052b0935ed9000.nsp" (
echo. 
 call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_confirm_nsp_duplicated_deletion"  
 IF !errorlevel! NEQ 1 (goto:end_script2)  else (del /q "C:\Ulti\sd_01052b0935ed9000.nsp"  1>nul ) 
) 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_confirm_nsp_creation" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_confirm_nsp_creation$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_confirm_nsp_creation"  
 goto:eof
)  else (goto:set_confirm_nsp_creation) 

C:\Ulti>echo Informations on the Saturn game to create: 
Informations on the Saturn game to create:

C:\Ulti>IF "" == "" echo Saturn game NSP source path: C:\Ulti\Guardian.nsp 
Saturn game NSP source path: C:\Ulti\Guardian.nsp

C:\Ulti>IF NOT "" == "" echo Game base used: !filename! 

C:\Ulti>echo Saturn game cue file path to inject: C:\Ulti\Baku Baku Animal.cue 
Saturn game cue file path to inject: C:\Ulti\Baku Baku Animal.cue

C:\Ulti>echo ID: 01052b0935ed9000 
ID: 01052b0935ed9000

C:\Ulti>echo Game name: sd 
Game name: sd

C:\Ulti>IF /I "n" == "o" echo Custom icon path:  

C:\Ulti>IF /I NOT "n" == "o" echo Default icon. 
Default icon.

C:\Ulti>IF /I "o" == "o" echo Custom ini file path: C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini 
Custom ini file path: C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini

C:\Ulti>IF /I NOT "o" == "o" echo Default ini file. 

C:\Ulti>IF /I "o" == "o" echo Custom wallpaper folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper 
Custom wallpaper folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper

C:\Ulti>IF /I NOT "o" == "o" echo Default wallpaper folder. 

C:\Ulti>IF /I "o" == "o" echo Custom playing guide folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide 
Custom playing guide folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide

C:\Ulti>IF /I NOT "o" == "o" echo Default playing guide folder. 

C:\Ulti>IF /I "o" == "o" echo Custom credit folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Credit 
Custom credit folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Credit

C:\Ulti>IF /I NOT "o" == "o" echo Default credit folder. 

C:\Ulti>IF /I "o" == "o" echo Custom texture file path: C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex 
Custom texture file path: C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex

C:\Ulti>IF /I NOT "o" == "o" echo Default texture file. 

C:\Ulti>IF /I "n" == "o" echo Custom no_data file path:  

C:\Ulti>IF /I NOT "n" == "o" echo Default no_data file. 
Default no_data file.

C:\Ulti>echo Author: s 
Author: s

C:\Ulti>echo Version: 1 
Version: 1

C:\Ulti>IF -1 EQU -1 (echo Default save size. )  else (echo Save size: -1 ) 
Default save size.

C:\Ulti>echo prod.keys path: C:\Ulti\Saturn_emu_inject_datas\prod.keys 
prod.keys path: C:\Ulti\Saturn_emu_inject_datas\prod.keys

C:\Ulti>rem IF ""=="" echo title.keys path:  

C:\Ulti>echo NSP output path: C:\Ulti\sd_01052b0935ed9000.nsp 
NSP output path: C:\Ulti\sd_01052b0935ed9000.nsp

C:\Ulti>echo.


C:\Ulti>choice /c yn /n /m "Do you want to continue with theses settings? ^(y/n^): " 
Do you want to continue with theses settings? ^(y/n^): Y

C:\Ulti>goto:eof

C:\Ulti>IF 1 NEQ 1 goto:menu

C:\Ulti>cd tools\Saturn_emu_inject 

C:\Ulti\tools\Saturn_emu_inject>if exist "C:\Ulti\tools\Saturn_emu_inject\nca" rmdir /s /q "C:\Ulti\tools\Saturn_emu_inject\nca" 

C:\Ulti\tools\Saturn_emu_inject>if exist "C:\Ulti\tools\Saturn_emu_inject\nsp" rmdir /s /q "C:\Ulti\tools\Saturn_emu_inject\nsp" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\control" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\exefs" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\logo" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\romfs" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nsp" 

C:\Ulti\tools\Saturn_emu_inject>IF NOT "" == "" (
C:\Windows\System32\Robocopy.exe "!filename_path! " "C:\Ulti\tools\Saturn_emu_inject\nca" /e  1>nul  
 goto:decrypted_folder_work
) 

C:\Ulti\tools\Saturn_emu_inject>echo.


C:\Ulti\tools\Saturn_emu_inject>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "extract_nsp_step" 

C:\Ulti\tools\Saturn_emu_inject>set lng_label_exist=0 

C:\Ulti\tools\Saturn_emu_inject>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:extract_nsp_step$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "extract_nsp_step"  
 goto:eof
)  else (goto:extract_nsp_step) 

C:\Ulti\tools\Saturn_emu_inject>ECHO 	========================================================================================================= 
	=========================================================================================================

C:\Ulti\tools\Saturn_emu_inject>ECHO.


C:\Ulti\tools\Saturn_emu_inject>ECHO	 		        			 Step 1:  Extract Saturn game NSP source... 
 		        			 Step 1:  Extract Saturn game NSP source...

C:\Ulti\tools\Saturn_emu_inject>ECHO.


C:\Ulti\tools\Saturn_emu_inject>ECHO 	========================================================================================================= 
	=========================================================================================================

C:\Ulti\tools\Saturn_emu_inject>goto:eof

C:\Ulti\tools\Saturn_emu_inject>if not exist "C:\Ulti\tools\Saturn_emu_inject\nsp" (mkdir "C:\Ulti\tools\Saturn_emu_inject\nsp" ) 

C:\Ulti\tools\Saturn_emu_inject>..\python3_scripts\squirrel_rewrite\bin\squirrel.exe -k "C:\Ulti\Saturn_emu_inject_datas\prod.keys" --Read_cnmt "C:\Ulti\Guardian.nsp"  1>"C:\Ulti\templogs\cnmt_infos.txt" 

C:\Ulti\tools\Saturn_emu_inject>"C:\Ulti\tools\gnuwin32\bin\grep.exe" "Number of content =" "C:\Ulti\templogs\cnmt_infos.txt"   | "C:\Ulti\tools\gnuwin32\bin\cut.exe" -d = -f 2  1>"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti\tools\Saturn_emu_inject>set /p tempcount= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti\tools\Saturn_emu_inject>IF "" == "" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "conversion_error"  
 pause 
 call :del_temp_files  
 goto:menu
)  else (
set tempcount= =  
 set /a tempcount= 
) 

C:\Ulti\tools\Saturn_emu_inject>set lng_label_exist=0 

C:\Ulti\tools\Saturn_emu_inject>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:conversion_error$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "conversion_error"  
 goto:eof
)  else (goto:conversion_error) 

C:\Ulti\tools\Saturn_emu_inject>echo An error occurred during the process, check your source files and the remaining space on the hard drives. 
An error occurred during the process, check your source files and the remaining space on the hard drives.

C:\Ulti\tools\Saturn_emu_inject>goto:eof
Press any key to continue . . . 

C:\Ulti\tools\Saturn_emu_inject>rem del "ID.txt" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "nca\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "nsp\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "hacpack_backup\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "hacpack_temp\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q Game_inject  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q icon  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>del /q main.npdm  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>del /q control.nacp  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>cd ..\.. 

C:\Ulti>exit /b 

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>if "4" == "1" (
cls 
 call :Howtouse  
 goto:Menu
)  else if "4" == "2" (
cls 
 goto:Start
)  else if "4" == "3" (
start "" /d "Tools\Saturn_emu_inject\Tools\CDmage" "Tools\Saturn_emu_inject\Tools\CDmage\CDmage.exe"  
 goto:Menu
)  else if "4" == "4" (
cls 
 call :save_prod.keys_file  
 goto:Menu
)  else if "4" == "5" (
cls 
 call :convert_png_to_tex_folder  
 goto:Menu
)  else (goto:end_script2) 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_keys_path" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_keys_path$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_keys_path"  
 goto:eof
)  else (goto:set_keys_path) 

C:\Ulti>echo Please choose the prod.keys file in the following window. 
Please choose the prod.keys file in the following window.

C:\Ulti>echo If you close the window you will return to the menu. 
If you close the window you will return to the menu.

C:\Ulti>pause
Press any key to continue . . . 

C:\Ulti>C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Switch keys list files^(*.*^)|*.*|" "Select the prod.keys file" "C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>goto:eof

C:\Ulti>set /p temp_keys_file_path= 0<templogs\tempvar.txt 

C:\Ulti>IF "C:\Ulti\prod.keys" == "" (exit /b ) 

C:\Ulti>IF NOT EXIST "Saturn_emu_inject_datas\*.*" mkdir "Saturn_emu_inject_datas"  1>nul 

C:\Ulti>copy "C:\Ulti\prod.keys" "Saturn_emu_inject_datas\prod.keys"  1>nul 

C:\Ulti>IF 0 EQU 0 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "keys_file_save_successful"  
 pause
)  else (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "keys_file_save_error"  
 pause
) 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:keys_file_save_successful$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "keys_file_save_successful"  
 goto:eof
)  else (goto:keys_file_save_successful) 

C:\Ulti>echo Keys file successfuly saved. 
Keys file successfuly saved.

C:\Ulti>goto:eof
Press any key to continue . . . 

C:\Ulti>exit /b 

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>if "2" == "1" (
cls 
 call :Howtouse  
 goto:Menu
)  else if "2" == "2" (
cls 
 goto:Start
)  else if "2" == "3" (
start "" /d "Tools\Saturn_emu_inject\Tools\CDmage" "Tools\Saturn_emu_inject\Tools\CDmage\CDmage.exe"  
 goto:Menu
)  else if "2" == "4" (
cls 
 call :save_prod.keys_file  
 goto:Menu
)  else if "2" == "5" (
cls 
 call :convert_png_to_tex_folder  
 goto:Menu
)  else (goto:end_script2) 

C:\Ulti>set display_good_saved_games=n 

C:\Ulti>for /L %i in (0 1 2) do (IF EXIST "Saturn_emu_inject_datas\games\!filename%i!\*.*" (
set filename%i_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename%i!  
 set display_good_saved_games=Y 
)  else (set filename%i_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename0!\*.*" (
set filename0_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename0!  
 set display_good_saved_games=Y 
)  else (set filename0_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename1!\*.*" (
set filename1_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename1!  
 set display_good_saved_games=Y 
)  else (set filename1_path= ) ) 

C:\Ulti>(IF EXIST "Saturn_emu_inject_datas\games\!filename2!\*.*" (
set filename2_path=C:\Ulti\Saturn_emu_inject_datas\games\!filename2!  
 set display_good_saved_games=Y 
)  else (set filename2_path= ) ) 

C:\Ulti>set br= 

C:\Ulti>set br_choice= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "nsp_source_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:nsp_source_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "nsp_source_choice"  
 goto:eof
)  else (goto:nsp_source_choice) 

C:\Ulti>IF /I "Y" == "Y" (
echo Which games do you want to use as a base source:  
 IF NOT "C:\Ulti\Saturn_emu_inject_datas\games\Cotton2" == "" echo 1: Cotton2  
 IF NOT "" == "" echo 2: GuardianForce  
 IF NOT "" == "" echo 3: CottonBoomerang  
 echo 0: Select a NSP  
 echo All other choices: Go back tou previous menu.  
 echo. 
 set /p br=Make your choice:   
 IF "!br!" == "0" C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Nintendo Switch nsp files^(*.nsp^)|*.nsp|" "Select the Saturn nsp source file" "C:\Ulti\templogs\tempvar.txt" 
)  else (
echo Please choose the Saturn nsp source file in the following window.  
 echo If you close the window you will return to the menu.  
 pause 
 C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Nintendo Switch nsp files^(*.nsp^)|*.nsp|" "Select the Saturn nsp source file" "C:\Ulti\templogs\tempvar.txt" 
) 
Which games do you want to use as a base source:
1: Cotton2
0: Select a NSP
All other choices: Go back tou previous menu.

Make your choice: 
C:\Ulti>goto:eof

C:\Ulti>IF /I "Y" == "Y" (IF "1" == "1" (
set br_choice=0  
 set game_files=Cotton2 
)  else IF "1" == "2" (
set br_choice=1  
 set game_files=GuardianForce 
)  else IF "1" == "3" (
set br_choice=2  
 set game_files=CottonBoomerang 
)  else IF "1" == "0" (set /p br= 0<"C:\Ulti\templogs\tempvar.txt" )  else (goto:menu) )  else (set /p br= 0<"C:\Ulti\templogs\tempvar.txt" ) 

C:\Ulti>IF "1" == "0" set br= 

C:\Ulti>IF "1" == "" (goto:menu) 

C:\Ulti>echo.


C:\Ulti>set saturn_game_source= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_saturn_game_source" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_saturn_game_source$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "0" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_saturn_game_source"  
 goto:eof
)  else (goto:set_saturn_game_source) 

C:\Ulti>goto:set_saturn_game_source

C:\Ulti>echo Choisissez le fichier cue du jeu Saturn à injecter dans la fenêtre suivante. 
Choisissez le fichier cue du jeu Saturn à injecter dans la fenêtre suivante.

C:\Ulti>echo Si vous refermez la fenêtre vous retournerez au menu. 
Si vous refermez la fenêtre vous retournerez au menu.

C:\Ulti>pause
Press any key to continue . . . 

C:\Ulti>C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\open_file.vbs" "" "Fichiers cue ^(*.cue^)|*.cue|" "Sélection du fichier cue du jeu Saturn à injecter" "C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>goto:eof

C:\Ulti>set /p saturn_game_source= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>IF "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\Baku Baku Animal - World Zookeeper Contest (USA).cue" == "" (goto:menu) 

C:\Ulti>set saturn_game_source_folder= 

C:\Ulti>call :get_saturn_game_source_folder "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\Baku Baku Animal - World Zookeeper Contest (USA).cue" 

C:\Ulti>set saturn_game_source_folder=C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\ 

C:\Ulti>exit /b 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -i -e "^FILE " "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\Baku Baku Animal - World Zookeeper Contest (USA).cue"   | "C:\Ulti\tools\gnuwin32\bin\cut.exe" -d\" -f 2  1>"C:\Ulti\templogs\bin_list.txt" 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c "" "C:\Ulti\templogs\bin_list.txt"  1>"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set /p count_saturn_game_files= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set /a count_saturn_game_files=1 

C:\Ulti>IF 1 EQU 0 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "cue_file_error"  
 pause 
 goto:menu
) 

C:\Ulti>set /a templine=1 

C:\Ulti>copy nul "C:\Ulti\templogs\bin_list2.txt"  1>nul 

C:\Ulti>IF 1 GTR 1 goto:pass_start_cue_analyse

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\sed.exe" -n !templine!p "C:\Ulti\templogs\bin_list.txt"  1>"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set /p tempinfo= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>set tempinfo=C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\\Baku Baku Animal - World Zookeeper Contest (USA).bin 

C:\Ulti>IF NOT EXIST "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\\Baku Baku Animal - World Zookeeper Contest (USA).bin" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "cue_file_error"  
 pause 
 goto:menu
) 

C:\Ulti>echo !tempinfo!  1>>"C:\Ulti\templogs\bin_list2.txt" 

C:\Ulti>set /a templine=1+1 

C:\Ulti>goto:start_cue_analyse

C:\Ulti>IF 2 GTR 1 goto:pass_start_cue_analyse

C:\Ulti>echo.


C:\Ulti>IF EXIST "Saturn_emu_inject_datas\prod.keys" set "keys_path=C:\Ulti\Saturn_emu_inject_datas\prod.keys 

C:\Ulti>IF EXIST "Saturn_emu_inject_datas\prod.keys" goto:icon_change_choice

C:\Ulti>set bs= 

C:\Ulti>set bz= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_icon_type_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_icon_type_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_icon_type_choice"  
 goto:eof
)  else (goto:set_icon_type_choice) 

C:\Ulti>set /p bs=Do you want to choose your own icon file for the game? (y/n):  
Do you want to choose your own icon file for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set bs=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "bs" "o/n_choice" 

C:\Ulti>call :o/n_choice "bs" 

C:\Ulti>IF /I "!bs!" == "y" (set bs=o )  else IF /I "!bs!" == "n" (set bs=n )  else (set bs=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF /I "n" == "o" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_icon_path"  
 set /p bz= 0<"C:\Ulti\templogs\tempvar.txt"  
 IF "!bz!" == "" (goto:icon_change_choice) 
) 

C:\Ulti>set custom_ini_choice= 

C:\Ulti>set custom_ini_path= 

C:\Ulti>set default_ini_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_ini_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_ini_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_ini_choice"  
 goto:eof
)  else (goto:set_default_ini_choice) 

C:\Ulti>set /p default_ini_choice=Do you want to use a generic ini   config file for the emulator for the game? (y/n):  
Do you want to use a generic ini   config file for the emulator for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_ini_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_ini_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_ini_choice" 

C:\Ulti>IF /I "!default_ini_choice!" == "y" (set default_ini_choice=o )  else IF /I "!default_ini_choice!" == "n" (set default_ini_choice=n )  else (set default_ini_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_ini_choice=o  
 call :generic_ini_select  
 goto:custom_wallpaper_change_choice
) 

C:\Ulti>set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config 

C:\Ulti>set cartridge_4mb_ram_choice= 

C:\Ulti>set widescreen_choice= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_cartridge_4mb_ram_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_cartridge_4mb_ram_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_cartridge_4mb_ram_choice"  
 goto:eof
)  else (goto:set_cartridge_4mb_ram_choice) 

C:\Ulti>set /p cartridge_4mb_ram_choice=Do you want to use the 4MB ram extension (savestates will not work anymore)? (y/n):  
Do you want to use the 4MB ram extension (savestates will not work anymore)? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set cartridge_4mb_ram_choice=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "cartridge_4mb_ram_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "cartridge_4mb_ram_choice" 

C:\Ulti>IF /I "!cartridge_4mb_ram_choice!" == "y" (set cartridge_4mb_ram_choice=o )  else IF /I "!cartridge_4mb_ram_choice!" == "n" (set cartridge_4mb_ram_choice=n )  else (set cartridge_4mb_ram_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_widescreen_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_widescreen_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_widescreen_choice"  
 goto:eof
)  else (goto:set_widescreen_choice) 

C:\Ulti>set /p widescreen_choice=Do you want to enable widescreen (be careful, the game must be set up for this otherwise the display will not be beautiful)? (y/n):  
Do you want to enable widescreen (be careful, the game must be set up for this otherwise the display will not be beautiful)? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set widescreen_choice=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "widescreen_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "widescreen_choice" 

C:\Ulti>IF /I "!widescreen_choice!" == "y" (set widescreen_choice=o )  else IF /I "!widescreen_choice!" == "n" (set widescreen_choice=n )  else (set widescreen_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF /I "n" == "o" set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config_4mb 

C:\Ulti>IF /I "n" == "o" set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config_widescreen 

C:\Ulti>set custom_ini_path=C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini 

C:\Ulti>exit /b 

C:\Ulti>set custom_wallpaper_choice= 

C:\Ulti>set custom_wallpaper_folder_path= 

C:\Ulti>set default_wallpaper_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_wallpaper_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_wallpaper_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_wallpaper_choice"  
 goto:eof
)  else (goto:set_default_wallpaper_choice) 

C:\Ulti>set /p default_wallpaper_choice=Do you want to use generic wallpapers for the game? (y/n):  
Do you want to use generic wallpapers for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_wallpaper_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_wallpaper_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_wallpaper_choice" 

C:\Ulti>IF /I "!default_wallpaper_choice!" == "y" (set default_wallpaper_choice=o )  else IF /I "!default_wallpaper_choice!" == "n" (set default_wallpaper_choice=n )  else (set default_wallpaper_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_wallpaper_choice=o  
 set custom_wallpaper_folder_path=C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper  
 goto:custom_credit_change_choice
) 

C:\Ulti>set custom_credit_choice= 

C:\Ulti>set custom_credit_folder_path= 

C:\Ulti>set default_credit_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_credit_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_credit_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_credit_choice"  
 goto:eof
)  else (goto:set_default_credit_choice) 

C:\Ulti>set /p default_credit_choice=Do you want to use generic credits for the game? (y/n):  
Do you want to use generic credits for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_credit_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_credit_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_credit_choice" 

C:\Ulti>IF /I "!default_credit_choice!" == "y" (set default_credit_choice=o )  else IF /I "!default_credit_choice!" == "n" (set default_credit_choice=n )  else (set default_credit_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_credit_choice=o  
 set custom_credit_folder_path=C:\Ulti\tools\Saturn_emu_inject\Tools\Credit  
 goto:custom_playingguide_change_choice
) 

C:\Ulti>set custom_playingguide_choice= 

C:\Ulti>set custom_playingguide_folder_path= 

C:\Ulti>set default_playingguide_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_playingguide_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_playingguide_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_playingguide_choice"  
 goto:eof
)  else (goto:set_default_playingguide_choice) 

C:\Ulti>set /p default_playingguide_choice=Do you want to use a generic playing guide for the game? (y/n):  
Do you want to use a generic playing guide for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_playingguide_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_playingguide_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_playingguide_choice" 

C:\Ulti>IF /I "!default_playingguide_choice!" == "y" (set default_playingguide_choice=o )  else IF /I "!default_playingguide_choice!" == "n" (set default_playingguide_choice=n )  else (set default_playingguide_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_playingguide_choice=o  
 set custom_playingguide_folder_path=C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide  
 goto:custom_texture_change_choice
) 

C:\Ulti>set custom_texture_choice= 

C:\Ulti>set custom_texture_path= 

C:\Ulti>set default_texture_choice= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_default_texture_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_default_texture_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_default_texture_choice"  
 goto:eof
)  else (goto:set_default_texture_choice) 

C:\Ulti>set /p default_texture_choice=Do you want to use a generic texture file for the game? (y/n):  
Do you want to use a generic texture file for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "y" == "" set default_texture_choice=y 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "default_texture_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "default_texture_choice" 

C:\Ulti>IF /I "!default_texture_choice!" == "y" (set default_texture_choice=o )  else IF /I "!default_texture_choice!" == "n" (set default_texture_choice=n )  else (set default_texture_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF "o" == "o" (
set custom_texture_choice=o  
 set custom_texture_path=C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex  
 goto:custom_nodata_change_choice
) 

C:\Ulti>set custom_nodata_choice= 

C:\Ulti>set custom_nodata_path= 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_custom_nodata_choice" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_custom_nodata_choice$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_custom_nodata_choice"  
 goto:eof
)  else (goto:set_custom_nodata_choice) 

C:\Ulti>set /p custom_nodata_choice=Do you want to choose your own "no_data.tex" file for the game? (y/n):  
Do you want to choose your own "no_data.tex" file for the game? (y/n): 
C:\Ulti>goto:eof

C:\Ulti>IF NOT "n" == "" set custom_nodata_choice=n 

C:\Ulti>call "C:\Ulti\tools\Storage\functions\modify_yes_no_always_never_vars.bat" "custom_nodata_choice" "o/n_choice" 

C:\Ulti>call :o/n_choice "custom_nodata_choice" 

C:\Ulti>IF /I "!custom_nodata_choice!" == "y" (set custom_nodata_choice=o )  else IF /I "!custom_nodata_choice!" == "n" (set custom_nodata_choice=n )  else (set custom_nodata_choice=n ) 

C:\Ulti>exit /b 

C:\Ulti>goto:eof

C:\Ulti>IF /I "n" == "o" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_custom_nodata_path"  
 set /p custom_nodata_path= 0<"C:\Ulti\templogs\tempvar.txt"  
 IF "!custom_nodata_path!" == "" (goto:custom_nodata_change_choice) 
) 

C:\Ulti>echo.


C:\Ulti>set id= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_id" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_id$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_id"  
 goto:eof
)  else (goto:set_id) 

C:\Ulti>echo Enter the content ID (must be unique on the console it is installed on and must be 16 hexadecimal characters long (0-9, A-F)), leave blank to generate a random ID. 
Enter the content ID (must be unique on the console it is installed on and must be 16 hexadecimal characters long (0-9, A-F)), leave blank to generate a random ID.

C:\Ulti>set /p id=ID:  
ID: 
C:\Ulti>goto:eof

C:\Ulti>IF "" == "" (
call :randomize_id  
 goto:pass_id_set
) 

C:\Ulti>for /L %n in (1 1 12) do (
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand%n=a  
 if !rand! == 2 set rand%n=b  
 if !rand! == 3 set rand%n=c  
 if !rand! == 4 set rand%n=d  
 if !rand! == 5 set rand%n=e  
 if !rand! == 6 set rand%n=f  
 if !rand! == 7 set rand%n=1  
 if !rand! == 8 set rand%n=2  
 if !rand! == 9 set rand%n=3  
 if !rand! == 10 set rand%n=4  
 if !rand! == 11 set rand%n=5  
 if !rand! == 12 set rand%n=6  
 if !rand! == 13 set rand%n=7  
 if !rand! == 14 set rand%n=8  
 if !rand! == 15 set rand%n=9  
 if !rand! == 16 set rand%n=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand1=a  
 if !rand! == 2 set rand1=b  
 if !rand! == 3 set rand1=c  
 if !rand! == 4 set rand1=d  
 if !rand! == 5 set rand1=e  
 if !rand! == 6 set rand1=f  
 if !rand! == 7 set rand1=1  
 if !rand! == 8 set rand1=2  
 if !rand! == 9 set rand1=3  
 if !rand! == 10 set rand1=4  
 if !rand! == 11 set rand1=5  
 if !rand! == 12 set rand1=6  
 if !rand! == 13 set rand1=7  
 if !rand! == 14 set rand1=8  
 if !rand! == 15 set rand1=9  
 if !rand! == 16 set rand1=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand2=a  
 if !rand! == 2 set rand2=b  
 if !rand! == 3 set rand2=c  
 if !rand! == 4 set rand2=d  
 if !rand! == 5 set rand2=e  
 if !rand! == 6 set rand2=f  
 if !rand! == 7 set rand2=1  
 if !rand! == 8 set rand2=2  
 if !rand! == 9 set rand2=3  
 if !rand! == 10 set rand2=4  
 if !rand! == 11 set rand2=5  
 if !rand! == 12 set rand2=6  
 if !rand! == 13 set rand2=7  
 if !rand! == 14 set rand2=8  
 if !rand! == 15 set rand2=9  
 if !rand! == 16 set rand2=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand3=a  
 if !rand! == 2 set rand3=b  
 if !rand! == 3 set rand3=c  
 if !rand! == 4 set rand3=d  
 if !rand! == 5 set rand3=e  
 if !rand! == 6 set rand3=f  
 if !rand! == 7 set rand3=1  
 if !rand! == 8 set rand3=2  
 if !rand! == 9 set rand3=3  
 if !rand! == 10 set rand3=4  
 if !rand! == 11 set rand3=5  
 if !rand! == 12 set rand3=6  
 if !rand! == 13 set rand3=7  
 if !rand! == 14 set rand3=8  
 if !rand! == 15 set rand3=9  
 if !rand! == 16 set rand3=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand4=a  
 if !rand! == 2 set rand4=b  
 if !rand! == 3 set rand4=c  
 if !rand! == 4 set rand4=d  
 if !rand! == 5 set rand4=e  
 if !rand! == 6 set rand4=f  
 if !rand! == 7 set rand4=1  
 if !rand! == 8 set rand4=2  
 if !rand! == 9 set rand4=3  
 if !rand! == 10 set rand4=4  
 if !rand! == 11 set rand4=5  
 if !rand! == 12 set rand4=6  
 if !rand! == 13 set rand4=7  
 if !rand! == 14 set rand4=8  
 if !rand! == 15 set rand4=9  
 if !rand! == 16 set rand4=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand5=a  
 if !rand! == 2 set rand5=b  
 if !rand! == 3 set rand5=c  
 if !rand! == 4 set rand5=d  
 if !rand! == 5 set rand5=e  
 if !rand! == 6 set rand5=f  
 if !rand! == 7 set rand5=1  
 if !rand! == 8 set rand5=2  
 if !rand! == 9 set rand5=3  
 if !rand! == 10 set rand5=4  
 if !rand! == 11 set rand5=5  
 if !rand! == 12 set rand5=6  
 if !rand! == 13 set rand5=7  
 if !rand! == 14 set rand5=8  
 if !rand! == 15 set rand5=9  
 if !rand! == 16 set rand5=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand6=a  
 if !rand! == 2 set rand6=b  
 if !rand! == 3 set rand6=c  
 if !rand! == 4 set rand6=d  
 if !rand! == 5 set rand6=e  
 if !rand! == 6 set rand6=f  
 if !rand! == 7 set rand6=1  
 if !rand! == 8 set rand6=2  
 if !rand! == 9 set rand6=3  
 if !rand! == 10 set rand6=4  
 if !rand! == 11 set rand6=5  
 if !rand! == 12 set rand6=6  
 if !rand! == 13 set rand6=7  
 if !rand! == 14 set rand6=8  
 if !rand! == 15 set rand6=9  
 if !rand! == 16 set rand6=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand7=a  
 if !rand! == 2 set rand7=b  
 if !rand! == 3 set rand7=c  
 if !rand! == 4 set rand7=d  
 if !rand! == 5 set rand7=e  
 if !rand! == 6 set rand7=f  
 if !rand! == 7 set rand7=1  
 if !rand! == 8 set rand7=2  
 if !rand! == 9 set rand7=3  
 if !rand! == 10 set rand7=4  
 if !rand! == 11 set rand7=5  
 if !rand! == 12 set rand7=6  
 if !rand! == 13 set rand7=7  
 if !rand! == 14 set rand7=8  
 if !rand! == 15 set rand7=9  
 if !rand! == 16 set rand7=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand8=a  
 if !rand! == 2 set rand8=b  
 if !rand! == 3 set rand8=c  
 if !rand! == 4 set rand8=d  
 if !rand! == 5 set rand8=e  
 if !rand! == 6 set rand8=f  
 if !rand! == 7 set rand8=1  
 if !rand! == 8 set rand8=2  
 if !rand! == 9 set rand8=3  
 if !rand! == 10 set rand8=4  
 if !rand! == 11 set rand8=5  
 if !rand! == 12 set rand8=6  
 if !rand! == 13 set rand8=7  
 if !rand! == 14 set rand8=8  
 if !rand! == 15 set rand8=9  
 if !rand! == 16 set rand8=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand9=a  
 if !rand! == 2 set rand9=b  
 if !rand! == 3 set rand9=c  
 if !rand! == 4 set rand9=d  
 if !rand! == 5 set rand9=e  
 if !rand! == 6 set rand9=f  
 if !rand! == 7 set rand9=1  
 if !rand! == 8 set rand9=2  
 if !rand! == 9 set rand9=3  
 if !rand! == 10 set rand9=4  
 if !rand! == 11 set rand9=5  
 if !rand! == 12 set rand9=6  
 if !rand! == 13 set rand9=7  
 if !rand! == 14 set rand9=8  
 if !rand! == 15 set rand9=9  
 if !rand! == 16 set rand9=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand10=a  
 if !rand! == 2 set rand10=b  
 if !rand! == 3 set rand10=c  
 if !rand! == 4 set rand10=d  
 if !rand! == 5 set rand10=e  
 if !rand! == 6 set rand10=f  
 if !rand! == 7 set rand10=1  
 if !rand! == 8 set rand10=2  
 if !rand! == 9 set rand10=3  
 if !rand! == 10 set rand10=4  
 if !rand! == 11 set rand10=5  
 if !rand! == 12 set rand10=6  
 if !rand! == 13 set rand10=7  
 if !rand! == 14 set rand10=8  
 if !rand! == 15 set rand10=9  
 if !rand! == 16 set rand10=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand11=a  
 if !rand! == 2 set rand11=b  
 if !rand! == 3 set rand11=c  
 if !rand! == 4 set rand11=d  
 if !rand! == 5 set rand11=e  
 if !rand! == 6 set rand11=f  
 if !rand! == 7 set rand11=1  
 if !rand! == 8 set rand11=2  
 if !rand! == 9 set rand11=3  
 if !rand! == 10 set rand11=4  
 if !rand! == 11 set rand11=5  
 if !rand! == 12 set rand11=6  
 if !rand! == 13 set rand11=7  
 if !rand! == 14 set rand11=8  
 if !rand! == 15 set rand11=9  
 if !rand! == 16 set rand11=0 
) 

C:\Ulti>(
set rand=  
 set /A rand=!RANDOM!%16+1  
 if !rand! == 1 set rand12=a  
 if !rand! == 2 set rand12=b  
 if !rand! == 3 set rand12=c  
 if !rand! == 4 set rand12=d  
 if !rand! == 5 set rand12=e  
 if !rand! == 6 set rand12=f  
 if !rand! == 7 set rand12=1  
 if !rand! == 8 set rand12=2  
 if !rand! == 9 set rand12=3  
 if !rand! == 10 set rand12=4  
 if !rand! == 11 set rand12=5  
 if !rand! == 12 set rand12=6  
 if !rand! == 13 set rand12=7  
 if !rand! == 14 set rand12=8  
 if !rand! == 15 set rand12=9  
 if !rand! == 16 set rand12=0 
) 

C:\Ulti>set id=0128a29f91cdd000 

C:\Ulti>exit /b 

C:\Ulti>echo.


C:\Ulti>set name= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_name" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_name$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_name"  
 goto:eof
)  else (goto:set_name) 

C:\Ulti>set /p name=Enter the game name to display (128 chars max):  
Enter the game name to display (128 chars max): 
C:\Ulti>goto:eof

C:\Ulti>IF "b" == "" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "could_not_be_empty_error"  
 goto:name_set
) 

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "b" 

C:\Ulti>set "string=b" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "b" == "" goto:end_lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=1 

C:\Ulti>IF 1 GTR 128 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_length_error"  
 goto:name_set
) 

C:\Ulti>set i=0 

C:\Ulti>IF 0 LSS 1 (
FOR %z in (& < > / * ? : ^ | \) do (IF "!name:~0,1!" == "%z" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) )  
 set /a i+=1  
 goto:check_chars_name
) 

C:\Ulti>(IF "!name:~0,1!" == "&" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "<" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == ">" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "/" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Baku Baku Animal.bin" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Baku Baku Animal.cue" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Cotton2.nsp" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Guardian Force Saturn Tribute [0100C67015270000][v0]_source_extracted.zip" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Guardian.nsp" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "LICENSE" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "prod.keys" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "title.keys" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat.lng" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat.theme" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.bat.version" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "Ultimate-Switch-Hack-Script.log" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == ":" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "^" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "|" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>(IF "!name:~0,1!" == "\" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) ) 

C:\Ulti>IF 1 LSS 1 (
FOR %z in (& < > / * ? : ^ | \) do (IF "!name:~1,1!" == "%z" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "name_char_error"  
 goto:name_set
) )  
 set /a i+=1  
 goto:check_chars_name
) 

C:\Ulti>echo.


C:\Ulti>set author=No specified 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_author" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_author$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_author"  
 goto:eof
)  else (goto:set_author) 

C:\Ulti>set /p author=Enter the author name to display (64 chars max):  
Enter the author name to display (64 chars max): 
C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "a" 

C:\Ulti>set "string=a" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "a" == "" goto:end_lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=1 

C:\Ulti>IF 1 GTR 64 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "author_length_error"  
 goto:author_set
) 

C:\Ulti>echo.


C:\Ulti>set version=1.0 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_version" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_version$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_version"  
 goto:eof
)  else (goto:set_version) 

C:\Ulti>set /p version=Enter the version to display (4 chars max):  
Enter the version to display (4 chars max): 
C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "1" 

C:\Ulti>set "string=1" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "1" == "" goto:end_lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=1 

C:\Ulti>IF 1 GTR 4 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "version_length_error"  
 goto:version_set
) 

C:\Ulti>echo.


C:\Ulti>set /a save_size=-1 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_save_size" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_save_size$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_save_size"  
 goto:eof
)  else (goto:set_save_size) 

C:\Ulti>set /p save_size=Enter the save size in octets (leave empty to keep the default size):  
Enter the save size in octets (leave empty to keep the default size): 
C:\Ulti>goto:eof

C:\Ulti>call "C:\Ulti\tools\storage\functions\strlen.bat" nb "-1" 

C:\Ulti>set "string=-1" 

C:\Ulti>set stringLength=0 

C:\Ulti>IF "-1" == "" goto:end_lengthLoop

C:\Ulti>set "string=1" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set "string=" 

C:\Ulti>set /a stringLength +=1 

C:\Ulti>if defined string goto:lengthLoop

C:\Ulti>set nb=2 

C:\Ulti>set i=0 

C:\Ulti>IF 0 NEQ 2 (
set check_chars=0  
 FOR %z in (0 1 2 3 4 5 6 7 8 9 -) do (IF "!save_size:~0,1!" == "%z" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) )  
 IF "!check_chars!" == "0" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "bad_char_error"  
 goto:save_size_set
) 
) 

C:\Ulti>(IF "!save_size:~0,1!" == "0" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "1" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "2" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "3" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "4" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "5" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "6" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "7" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "8" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "9" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~0,1!" == "-" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>IF 1 NEQ 2 (
set check_chars=0  
 FOR %z in (0 1 2 3 4 5 6 7 8 9 -) do (IF "!save_size:~1,1!" == "%z" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) )  
 IF "!check_chars!" == "0" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "bad_char_error"  
 goto:save_size_set
) 
) 

C:\Ulti>(IF "!save_size:~1,1!" == "0" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>(IF "!save_size:~1,1!" == "1" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) ) 

C:\Ulti>IF 2 NEQ 2 (
set check_chars=0  
 FOR %z in (0 1 2 3 4 5 6 7 8 9 -) do (IF "!save_size:~2,1!" == "%z" (
set /a i+=1  
 set check_chars=1  
 goto:check_chars_save_size_value
) )  
 IF "!check_chars!" == "0" (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "bad_char_error"  
 goto:save_size_set
) 
) 

C:\Ulti>echo.


C:\Ulti>set nsp_path= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_nsp_path" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_nsp_path$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_nsp_path"  
 goto:eof
)  else (goto:set_nsp_path) 

C:\Ulti>echo Please choose the folder where to create the game nsp in the following window. 
Please choose the folder where to create the game nsp in the following window.

C:\Ulti>echo If you close the window you will return to the menu. 
If you close the window you will return to the menu.

C:\Ulti>pause
Press any key to continue . . . 

C:\Ulti>C:\Windows\system32\wscript.exe //Nologo "C:\Ulti\TOOLS\Storage\functions\select_dir.vbs" "C:\Ulti\templogs\tempvar.txt" "Select the folder where to create the game nsp" 

C:\Ulti>goto:eof

C:\Ulti>set /p nsp_path= 0<"C:\Ulti\templogs\tempvar.txt" 

C:\Ulti>IF "C:\Users\User\Desktop" == "" (goto:menu) 

C:\Ulti>set nsp_path=C:\Users\User\Desktop\ 

C:\Ulti>set nsp_path=!nsp_path:\\=\! 

C:\Ulti>IF EXIST "C:\Users\User\Desktop\b_0128a29f91cdd000.nsp" (
echo. 
 call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_confirm_nsp_duplicated_deletion"  
 IF !errorlevel! NEQ 1 (goto:end_script2)  else (del /q "C:\Users\User\Desktop\b_0128a29f91cdd000.nsp"  1>nul ) 
) 

C:\Ulti>echo.


C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "set_confirm_nsp_creation" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:set_confirm_nsp_creation$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "set_confirm_nsp_creation"  
 goto:eof
)  else (goto:set_confirm_nsp_creation) 

C:\Ulti>echo Informations on the Saturn game to create: 
Informations on the Saturn game to create:

C:\Ulti>IF "0" == "" echo Saturn game NSP source path: 1 

C:\Ulti>IF NOT "0" == "" echo Game base used: !filename0! 
Game base used: Cotton2

C:\Ulti>echo Saturn game cue file path to inject: C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\Baku Baku Animal - World Zookeeper Contest (USA).cue 
Saturn game cue file path to inject: C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\Baku Baku Animal - World Zookeeper Contest (USA).cue

C:\Ulti>echo ID: 0128a29f91cdd000 
ID: 0128a29f91cdd000

C:\Ulti>echo Game name: b 
Game name: b

C:\Ulti>IF /I "n" == "o" echo Custom icon path:  

C:\Ulti>IF /I NOT "n" == "o" echo Default icon. 
Default icon.

C:\Ulti>IF /I "o" == "o" echo Custom ini file path: C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini 
Custom ini file path: C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini

C:\Ulti>IF /I NOT "o" == "o" echo Default ini file. 

C:\Ulti>IF /I "o" == "o" echo Custom wallpaper folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper 
Custom wallpaper folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper

C:\Ulti>IF /I NOT "o" == "o" echo Default wallpaper folder. 

C:\Ulti>IF /I "o" == "o" echo Custom playing guide folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide 
Custom playing guide folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide

C:\Ulti>IF /I NOT "o" == "o" echo Default playing guide folder. 

C:\Ulti>IF /I "o" == "o" echo Custom credit folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Credit 
Custom credit folder path: C:\Ulti\tools\Saturn_emu_inject\Tools\Credit

C:\Ulti>IF /I NOT "o" == "o" echo Default credit folder. 

C:\Ulti>IF /I "o" == "o" echo Custom texture file path: C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex 
Custom texture file path: C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex

C:\Ulti>IF /I NOT "o" == "o" echo Default texture file. 

C:\Ulti>IF /I "n" == "o" echo Custom no_data file path:  

C:\Ulti>IF /I NOT "n" == "o" echo Default no_data file. 
Default no_data file.

C:\Ulti>echo Author: a 
Author: a

C:\Ulti>echo Version: 1 
Version: 1

C:\Ulti>IF -1 EQU -1 (echo Default save size. )  else (echo Save size: -1 ) 
Default save size.

C:\Ulti>echo prod.keys path: C:\Ulti\Saturn_emu_inject_datas\prod.keys 
prod.keys path: C:\Ulti\Saturn_emu_inject_datas\prod.keys

C:\Ulti>rem IF "0"=="" echo title.keys path:  

C:\Ulti>echo NSP output path: C:\Users\User\Desktop\b_0128a29f91cdd000.nsp 
NSP output path: C:\Users\User\Desktop\b_0128a29f91cdd000.nsp

C:\Ulti>echo.


C:\Ulti>choice /c yn /n /m "Do you want to continue with theses settings? ^(y/n^): " 
Do you want to continue with theses settings? ^(y/n^): Y

C:\Ulti>goto:eof

C:\Ulti>IF 1 NEQ 1 goto:menu

C:\Ulti>cd tools\Saturn_emu_inject 

C:\Ulti\tools\Saturn_emu_inject>if exist "C:\Ulti\tools\Saturn_emu_inject\nca" rmdir /s /q "C:\Ulti\tools\Saturn_emu_inject\nca" 

C:\Ulti\tools\Saturn_emu_inject>if exist "C:\Ulti\tools\Saturn_emu_inject\nsp" rmdir /s /q "C:\Ulti\tools\Saturn_emu_inject\nsp" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\control" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\exefs" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\logo" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nca\romfs" 

C:\Ulti\tools\Saturn_emu_inject>mkdir "C:\Ulti\tools\Saturn_emu_inject\nsp" 

C:\Ulti\tools\Saturn_emu_inject>IF NOT "0" == "" (
C:\Windows\System32\Robocopy.exe "!filename0_path! " "C:\Ulti\tools\Saturn_emu_inject\nca" /e  1>nul  
 goto:decrypted_folder_work
) 

C:\Ulti\tools\Saturn_emu_inject>rem rmdir /s /q "nca\romfs\Data" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rem rmdir /s /q "nca\romfs\important.htdocs" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rem rmdir /s /q "nca\romfs\ipnotices.htdocs" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rem rmdir /s /q "nca\romfs\support.htdocs" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rem del /q "nca\romfs\legalinfo.xml" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rem rmdir /s /q nca\romfs\Cheat_Switch 

C:\Ulti\tools\Saturn_emu_inject>rem mkdir nca\romfs\Cheat_Switch 

C:\Ulti\tools\Saturn_emu_inject>set /a templine=1 

C:\Ulti\tools\Saturn_emu_inject>for /L %i in (1 1 1) do (
"C:\Ulti\tools\gnuwin32\bin\sed.exe" -n !templine!p "C:\Ulti\templogs\bin_list2.txt"  1>"C:\Ulti\templogs\tempvar.txt"  
 set /p tempinfo= 0<"C:\Ulti\templogs\tempvar.txt"  
 copy "!tempinfo!" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs" 1>nul  
 set /a templine=!templine!+1 
) 

C:\Ulti\tools\Saturn_emu_inject>(
"C:\Ulti\tools\gnuwin32\bin\sed.exe" -n !templine!p "C:\Ulti\templogs\bin_list2.txt"  1>"C:\Ulti\templogs\tempvar.txt"  
 set /p tempinfo= 0<"C:\Ulti\templogs\tempvar.txt"  
 copy "!tempinfo!" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs" 1>nul  
 set /a templine=!templine!+1 
) 

C:\Ulti\tools\Saturn_emu_inject>set /a templine=1 

C:\Ulti\tools\Saturn_emu_inject>for %f in ("nca\romfs\*.bin") do (
set tempvar=%f  
 "C:\Ulti\tools\gnuwin32\bin\sed.exe" -n !templine!p "C:\Ulti\templogs\bin_list.txt"  1>"C:\Ulti\templogs\tempvar.txt"  
 set /p tempinfo= 0<"C:\Ulti\templogs\tempvar.txt"  
 IF NOT "!tempvar!" == "nca\romfs\!tempinfo!" ren "!tempvar!" "!tempinfo!"  1>nul  
 set /a templine=!templine!+1 
) 

C:\Ulti\tools\Saturn_emu_inject>(
set tempvar=nca\romfs\Baku Baku Animal - World Zookeeper Contest (USA).bin  
 "C:\Ulti\tools\gnuwin32\bin\sed.exe" -n !templine!p "C:\Ulti\templogs\bin_list.txt"  1>"C:\Ulti\templogs\tempvar.txt"  
 set /p tempinfo= 0<"C:\Ulti\templogs\tempvar.txt"  
 IF NOT "!tempvar!" == "nca\romfs\!tempinfo!" ren "!tempvar!" "!tempinfo!"  1>nul  
 set /a templine=!templine!+1 
) 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Users\User\Downloads\Zebra Engine Sega Saturn - 40 injected games for Nintendo Switch [NSP]\src\chdman\Baku Baku Animal - World Zookeeper Contest (USA).cue" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs" 1>nul 

C:\Ulti\tools\Saturn_emu_inject>rename "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\*.cue" "Cotton2.cue" 

C:\Ulti\tools\Saturn_emu_inject>IF /I "o" == "o" copy "C:\Ulti\tools\Saturn_emu_inject\Tools\config.ini" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Cotton2_Switch.ini"  1>nul 

C:\Ulti\tools\Saturn_emu_inject>IF /I NOT "o" == "o" goto:pass_wallpaper_replace

C:\Ulti\tools\Saturn_emu_inject>IF "C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper" == "" goto:pass_wallpaper_replace

C:\Ulti\tools\Saturn_emu_inject>set wallpaper_name_change= 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "GuardianForce" set wallpaper_name_change=GF 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "CottonBoomerang" set wallpaper_name_change=CB 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "Cotton2" set wallpaper_name_change=C2 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Wallpaper\*.*"  1>nul 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper\WP_001.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Wallpaper\WP_C2_001.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper\WP_002.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Wallpaper\WP_C2_002.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper\WP_003.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Wallpaper\WP_C2_003.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Wallpaper\WP_004.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Wallpaper\WP_C2_004.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>IF /I NOT "o" == "o" goto:pass_credit_replace

C:\Ulti\tools\Saturn_emu_inject>IF "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit" == "" goto:pass_credit_replace

C:\Ulti\tools\Saturn_emu_inject>set credit_name_change= 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "GuardianForce" set credit_name_change=GF 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "CottonBoomerang" set credit_name_change=CtnB 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "Cotton2" set credit_name_change=Ctn2 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\*.*"  1>nul 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\00.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_00.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\01.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_01.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\02.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_02.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\03.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_03.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\04.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_04.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\05.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_05.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\06.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_06.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\07.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_07.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Credit\08.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Credit\Ctn2_08.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>IF /I NOT "o" == "o" goto:pass_playingguide_replace

C:\Ulti\tools\Saturn_emu_inject>IF "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide" == "" goto:pass_playingguide_replace

C:\Ulti\tools\Saturn_emu_inject>set playingguide_name_change= 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "GuardianForce" set playingguide_name_change=GF 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "CottonBoomerang" set playingguide_name_change=CtnB 

C:\Ulti\tools\Saturn_emu_inject>IF "Cotton2" == "Cotton2" set playingguide_name_change=Ctn2 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\*.*"  1>nul 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\*.*"  1>nul 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\00.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_00.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\01.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_01.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\02.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_02.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\03.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_03.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\04.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_04.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\05.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_05.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\06.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_06.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\07.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_07.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\English\08.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\English\Ctn2_08.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\00.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_00.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\01.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_01.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\02.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_02.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\03.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_03.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\04.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_04.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\05.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_05.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\06.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_06.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\07.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_07.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\PlayingGuide\Japanese\08.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\PlayingGuide\Japanese\Ctn2_08.tex"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>IF /I NOT "o" == "o" goto:pass_texture_replace

C:\Ulti\tools\Saturn_emu_inject>IF "C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex" == "" goto:pass_texture_replace

C:\Ulti\tools\Saturn_emu_inject>copy "C:\Ulti\tools\Saturn_emu_inject\Tools\Texture.tex" "C:\Ulti\tools\Saturn_emu_inject\nca\romfs\Texture.tex"  1>nul 

C:\Ulti\tools\Saturn_emu_inject>IF /I NOT "n" == "o" goto:pass_nodata_replace

C:\Ulti\tools\Saturn_emu_inject>echo.


C:\Ulti\tools\Saturn_emu_inject>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "icon_step" 

C:\Ulti\tools\Saturn_emu_inject>set lng_label_exist=0 

C:\Ulti\tools\Saturn_emu_inject>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:icon_step$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "icon_step"  
 goto:eof
)  else (goto:icon_step) 

C:\Ulti\tools\Saturn_emu_inject>ECHO 	========================================================================================================= 
	=========================================================================================================

C:\Ulti\tools\Saturn_emu_inject>ECHO.


C:\Ulti\tools\Saturn_emu_inject>ECHO	 		        			 Step 3:   Icon Changing... 
 		        			 Step 3:   Icon Changing...

C:\Ulti\tools\Saturn_emu_inject>echo.


C:\Ulti\tools\Saturn_emu_inject>ECHO 	========================================================================================================= 
	=========================================================================================================

C:\Ulti\tools\Saturn_emu_inject>goto:eof

C:\Ulti\tools\Saturn_emu_inject>IF /I "n" == "o" (goto:Giveyouricon)  else (goto:Generic) 

C:\Ulti\tools\Saturn_emu_inject>copy .\Tools\control\icon_AmericanEnglish.dat .\nca\control\icon_AmericanEnglish.dat  1>nul 

C:\Ulti\tools\Saturn_emu_inject>copy .\Tools\control\icon_AmericanEnglish.dat .\nca\control\icon_Japanese.dat  1>nul 

C:\Ulti\tools\Saturn_emu_inject>echo.


C:\Ulti\tools\Saturn_emu_inject>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "create_game_step" 

C:\Ulti\tools\Saturn_emu_inject>set lng_label_exist=0 

C:\Ulti\tools\Saturn_emu_inject>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:create_game_step$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "create_game_step"  
 goto:eof
)  else (goto:create_game_step) 

C:\Ulti\tools\Saturn_emu_inject>ECHO 	========================================================================================================= 
	=========================================================================================================

C:\Ulti\tools\Saturn_emu_inject>ECHO.


C:\Ulti\tools\Saturn_emu_inject>ECHO	 		        			 Step 4:   Creating game... 
 		        			 Step 4:   Creating game...

C:\Ulti\tools\Saturn_emu_inject>echo.


C:\Ulti\tools\Saturn_emu_inject>ECHO 	========================================================================================================= 
	=========================================================================================================

C:\Ulti\tools\Saturn_emu_inject>goto:eof

C:\Ulti\tools\Saturn_emu_inject>if exist .\nca\exefs\main.npdm (move .\nca\exefs\main.npdm .\  1>nul )  else (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "conversion_error"  
 pause 
 call :del_temp_files  
 goto:menu
) 

C:\Ulti\tools\Saturn_emu_inject>if exist .\nca\control\control.nacp (move .\nca\control\control.nacp .\control.nacp  1>nul )  else (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "conversion_error"  
 pause 
 call :del_temp_files  
 goto:menu
) 

C:\Ulti\tools\Saturn_emu_inject>IF /I "on" == "on" ("C:\Ulti\tools\python3_scripts\npdm_and_nacp_rewrite\npdm_and_nacp_rewrite.exe" -t npdm -d 0128a29f91cdd000 -i main.npdm )  else ("C:\Ulti\tools\python3_scripts\npdm_and_nacp_rewrite\npdm_and_nacp_rewrite.exe" -t npdm -d 0128a29f91cdd000 -i main.npdm  1>nul ) 
[10532] Failed to execute script 'npdm_and_nacp_rewrite' due to unhandled exception!
Traceback (most recent call last):
  File "npdm_and_nacp_rewrite.py", line 309, in <module>
    print("Le param\xe8tre Chemin_fichier_destination n'a pas \xe9t\xe9 renseign\xe9, le fichier source sera modifi\xe9 directement.")
  File "c:\python37-32\lib\encodings\cp1251.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\xe8' in position 8: character maps to <undefined>

C:\Ulti\tools\Saturn_emu_inject>IF 1 NEQ 0 (
call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "conversion_error"  
 pause 
 call :del_temp_files  
 goto:menu
) 

C:\Ulti\tools\Saturn_emu_inject>set lng_label_exist=0 

C:\Ulti\tools\Saturn_emu_inject>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:conversion_error$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti\tools\Saturn_emu_inject>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "conversion_error"  
 goto:eof
)  else (goto:conversion_error) 

C:\Ulti\tools\Saturn_emu_inject>echo An error occurred during the process, check your source files and the remaining space on the hard drives. 
An error occurred during the process, check your source files and the remaining space on the hard drives.

C:\Ulti\tools\Saturn_emu_inject>goto:eof
Press any key to continue . . . 

C:\Ulti\tools\Saturn_emu_inject>rem del "ID.txt" >nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "nca\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "nsp\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "hacpack_backup\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q "hacpack_temp\"  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q Game_inject  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>rmdir /s /q icon  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>del /q main.npdm  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>del /q control.nacp  1>nul 2>&1 

C:\Ulti\tools\Saturn_emu_inject>cd ..\.. 

C:\Ulti>exit /b 

C:\Ulti>cls

C:\Ulti>set begin= 

C:\Ulti>call "C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" "main_menu" 

C:\Ulti>set lng_label_exist=0 

C:\Ulti>"C:\Ulti\tools\gnuwin32\bin\grep.exe" -c -E "^:main_menu$"  0<"C:\Ulti\languages\EN_us\TOOLS\Storage\saturn_emu_inject.bat" 1>"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>set /p lng_label_exist= 0<"C:\Ulti\temp_lng_var.txt" 

C:\Ulti>del /q "C:\Ulti\temp_lng_var.txt" 

C:\Ulti>IF "1" == "0" (
call "!associed_language_script:languages\EN_us=languages\FR_fr!" "main_menu"  
 goto:eof
)  else (goto:main_menu) 

C:\Ulti>echo.


C:\Ulti>echo 		************      ************   ************                          
		************      ************   ************                         

C:\Ulti>echo   	    	 *************    ************    ******************                        
  	    	 *************    ************    ******************                       

C:\Ulti>echo   	      	  ***********    ************    *********************                      
  	      	  ***********    ************    *********************                     

C:\Ulti>echo   	       	   ********   ************    Markus95    *************                     
  	       	   ********   ************    Markus95    *************                    

C:\Ulti>echo   	       	    ******  *************        &         **************                   
  	       	    ******  *************        &         **************                  

C:\Ulti>echo   	       	     ***  ************          Red-J         ************                  
  	       	     ***  ************          Red-J         ************                 

C:\Ulti>echo   	       	     ***  ************        shadow256         ************                  
  	       	     ***  ************        shadow256         ************                 

C:\Ulti>echo   	       	         *************                         ************                 
  	       	         *************                         ************                

C:\Ulti>echo   	       	        *************         Presents:        ***********                
  	       	        *************         Presents:        ***********               

C:\Ulti>echo   	       	          ************                        **********   ***                
  	       	          ************                        **********   ***               

C:\Ulti>echo   	       	           *************     NS Saturn Game Injector    *************   ****            
  	       	           *************     NS Saturn Game Injector    *************   ****           

C:\Ulti>echo   	       	              *************     v1.0   *************    *********         
  	       	              *************     v1.0   *************    *********        

C:\Ulti>echo   	       	               *********************  *************   ************        
  	       	               *********************  *************   ************       

C:\Ulti>echo   	       	                 ******************  *************    *************       
  	       	                 ******************  *************    *************      

C:\Ulti>echo   	       	                  ***************  *************       *************     
  	       	                  ***************  *************       *************    

C:\Ulti>echo   	       	                   ***********   *************          *************    
  	       	                   ***********   *************          *************   

C:\Ulti>echo.


C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>echo							What do you want to do: 
						What do you want to do:

C:\Ulti>echo							1: Display help 
						1: Display help

C:\Ulti>echo							2: Start injection 
						2: Start injection

C:\Ulti>echo 3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process. 
3: Launch CDmage to convert  CD images to the .cue and .bin format, the only format supported by the injection process.

C:\Ulti>echo 4: Save your prod.keys file to pass the demand for this file during futur injections. 
4: Save your prod.keys file to pass the demand for this file during futur injections.

C:\Ulti>echo 5: Convert a folder containing png files to tex files (subfolders will be also analysed) 
5: Convert a folder containing png files to tex files (subfolders will be also analysed)

C:\Ulti>echo							All other choices: Go back to menu. 
						All other choices: Go back to menu.

C:\Ulti>echo 	-=======================================================================================================- 
	-=======================================================================================================-

C:\Ulti>set /p begin=Make your choice:  
Make your choice: 