diff --git a/Tools/CONSOLES/TurboCD/JNUSTool/JNUSTool.jar b/Tools/CONSOLES/TurboCD/JNUSTool/JNUSTool.jar new file mode 100644 index 0000000..f6482ff Binary files /dev/null and b/Tools/CONSOLES/TurboCD/JNUSTool/JNUSTool.jar differ diff --git a/Tools/CONSOLES/TurboCD/NUSPacker/NUSPacker.jar b/Tools/CONSOLES/TurboCD/NUSPacker/NUSPacker.jar new file mode 100644 index 0000000..e7e6c43 Binary files /dev/null and b/Tools/CONSOLES/TurboCD/NUSPacker/NUSPacker.jar differ diff --git a/Tools/CONSOLES/TurboCD/Tools/BuildTurboCdPcePkg.exe b/Tools/CONSOLES/TurboCD/Tools/BuildTurboCdPcePkg.exe new file mode 100644 index 0000000..e47b9ab Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/BuildTurboCdPcePkg.exe differ diff --git a/Tools/CONSOLES/TurboCD/Tools/bincuesplit.exe b/Tools/CONSOLES/TurboCD/Tools/bincuesplit.exe new file mode 100644 index 0000000..85a40a9 Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/bincuesplit.exe differ diff --git a/Tools/CONSOLES/TurboCD/Tools/cygwin1.dll b/Tools/CONSOLES/TurboCD/Tools/cygwin1.dll new file mode 100644 index 0000000..8acabe0 Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/cygwin1.dll differ diff --git a/Tools/CONSOLES/TurboCD/Tools/cygz.dll b/Tools/CONSOLES/TurboCD/Tools/cygz.dll new file mode 100644 index 0000000..821fddc Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/cygz.dll differ diff --git a/Tools/CONSOLES/TurboCD/Tools/fart.exe b/Tools/CONSOLES/TurboCD/Tools/fart.exe new file mode 100644 index 0000000..075563c Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/fart.exe differ diff --git a/Tools/CONSOLES/TurboCD/Tools/ffmpeg.exe b/Tools/CONSOLES/TurboCD/Tools/ffmpeg.exe new file mode 100644 index 0000000..f55bd57 Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/ffmpeg.exe differ diff --git a/Tools/CONSOLES/TurboCD/Tools/tg16inject.exe b/Tools/CONSOLES/TurboCD/Tools/tg16inject.exe new file mode 100644 index 0000000..0f765ba Binary files /dev/null and b/Tools/CONSOLES/TurboCD/Tools/tg16inject.exe differ diff --git a/Tools/CONSOLES/TurboCD/TurboCD.bat b/Tools/CONSOLES/TurboCD/TurboCD.bat new file mode 100644 index 0000000..1c3a33c --- /dev/null +++ b/Tools/CONSOLES/TurboCD/TurboCD.bat @@ -0,0 +1,678 @@ +@echo off +title Injectiine [TurboCD] +cls +cd .. +cd .. +cd .. +cd Files + +echo :::::::::::::::::::::::: +echo ::INJECTIINE [TurboCD]:: +echo :::::::::::::::::::::::: +SLEEP 3 + +:: CHECK THAT FILES EXIST + +IF NOT EXIST *.iso GOTO:404ISOnotFound +IF NOT EXIST *.cue GOTO:404CUEnotFound +IF NOT EXIST bootTvTex.png GOTO:404ImagesNotFound +IF NOT EXIST iconTex.png GOTO:404ImagesNotFound + +cd .. +cd Tools +cd CONSOLES +cd TurboCD + +:BASE +cls +echo Which base do you want to use? +echo Lords of Thunder (1) +echo Base supplied from Files (2) +echo. +set /p BASEDECIDE=[Your Choice:] +IF %BASEDECIDE%==1 GOTO:LOT +IF %BASEDECIDE%==2 GOTO:BaseNotice +GOTO:BASE + +:BaseNotice +cls +echo Please supply your base, including the code, content and meta +echo folders, in a directory called "Base" within the Files directory. +echo. +echo Press any key to continue. +pause>NUL +cd .. +cd .. +cd .. +cd Files +IF NOT EXIST Base GOTO:BASEFAIL +cd .. +cd Tools +cd CONSOLES +cd TurboCD +GOTO:EnterCommon + +:: ENTERING KEYS + +:WrongKeyLOT +cls +echo Title key is incorrect. Please try again. +SLEEP 2 + +:EnterKeyLOT +cls +set BASEID=0005000010167b00 +set BASEPDC=PN5E +set BASEFOLDER="LORDS OF THUNDER [PN5EJ8]" + +IF EXIST TitleKeyLOT.txt goto:EnterCommon +echo This step will not be required the next time you start Injectiine. +echo Enter the title key for Lords of Thunder (USA): +set /p TITLEKEY= +echo %TITLEKEY:~0,32%>TitleKeyLOT.txt +set /p TITLEKEY=encryptKeyWith +set /p COMMON=JNUSTool\config +echo %COMMON:~0,32%>>JNUSTool\config +echo https://tagaya.wup.shop.nintendo.net/tagaya/versionlist/EUR/EU/latest_version>>JNUSTool\config +echo https://tagaya-wup.cdn.nintendo.net/tagaya/versionlist/EUR/EU/list/%d.versionlist>>JNUSTool\config +IF "%COMMON:~0,4%"=="D7B0" GOTO:EnterParameters ELSE GOTO:WrongCommon + +:: ENTER PARAMETERS + +:EnterParameters + +set TITLEID=%random:~-1%%random:~-1%%random:~-1%%random:~-1% + +:LineQuestion +cls +echo How many lines does your game name use? +set /p LINEDECIDE=[1/2:] +echo. +IF %LINEDECIDE%==1 GOTO:LINE1 +IF %LINEDECIDE%==2 GOTO:LINE2 +GOTO:LINEQUESTION + +:LINE1 +echo Enter the name of the game. +set /p GAMENAME=[Game Name:] +echo. +GOTO:RestOfParameters + +:LINE2 +echo Enter a short version of the name of the game. +set /p GAMENAME=[Short Game Name:] +echo. + +echo Enter the game name's first line. +set /p GAMENAME1=[Game Name Line 1:] +echo. + +echo Enter the game name's second line. +set /p GAMENAME2=[Game Name Line 2:] +echo. + +:RestOfParameters +echo Enter a 4-digit product code. +set /p PRODUCTCODE=[0-Z:] +echo. + +echo Do you want to enter a title ID manually? +echo If you don't, one will be randomly assigned. +set /p TITLEDECIDE=[Y/N:] +echo. +IF /i "%TITLEDECIDE%"=="y" ( +echo Enter a 4-digit meta title ID. Must only be hex values. +set /p TITLEID=[0-F:] +) +cls + +echo Injectiine will now create an TurboCD injection. +echo If you don't accept this, you will need to reenter your parameters. +CHOICE /C YN +IF errorlevel 2 goto :EnterParameters +IF errorlevel 1 goto :DownloadingStuff + +:: DOWNLOADING AND MOVING STUFF + +:DownloadingStuff +cls +IF %BASEDECIDE%==6 GOTO:EnterBaseCode +echo Testing Internet connection... +C:\windows\system32\PING.EXE google.com +if %errorlevel% GTR 0 goto:InternetSucks + +IF EXIST WORKDIR echo Cleaning up working directory from last failed conversion... +IF EXIST WORKDIR rd /s /q WORKDIR +SLEEP 1 +cd JNUSTool +echo Downloading base files... +rmdir /s /q %BASEFOLDER% +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /code/cos.xml +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /code/main.rpx +:CONTENT +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /content/.* +del %BASEFOLDER%\content\pceemu\pce.pkg +IF NOT EXIST %BASEFOLDER%\content GOTO:CONTENT +:MANUAL +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/Manual.bfma +IF NOT EXIST %BASEFOLDER%\meta\Manual.bfma GOTO:MANUAL +:RESTOFSTUFF +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/bootMovie.h264 +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/bootLogoTex.tga +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/bootSound.btsnd + +:MovingStuff +echo Moving to work directory... +C:\Windows\System32\Robocopy.exe %BASEFOLDER% ..\WORKDIR\ /MIR +rmdir /s /q %BASEFOLDER% +cd .. +IF NOT EXIST WORKDIR GOTO:ROBOFAIL +cls +GOTO:InjectingROM + +:EnterBaseCode +cls +echo Please enter the 4-digit product code of your base. +echo You can find it in either the meta.xml or cos.xml files. +echo EXAMPLES: JAAP, JAJE, JAEJ +set /p BASEPDC=[Base Product Code:] + +:CopyBase +cls +echo Moving base to work directory... +C:\Windows\System32\Robocopy.exe ..\..\..\Files\Base WORKDIR\ /MIR +IF NOT EXIST WORKDIR GOTO:ROBOFAIL +rmdir /s /q ..\..\..\Files\Base +cls + +:: INJECTING ROM +:InjectingROM +echo Injecting ROM... +cd .. +cd .. +cd .. +cd Files +IF EXIST iconTex.png (move iconTex.png ../Tools/png2tga) +IF NOT EXIST bootDrcTex.png (copy bootTvTex.png bootDrcTex.png) +IF EXIST bootTvTex.png (move bootTvTex.png ../Tools/png2tga) +IF EXIST bootDrcTex.png (move bootDrcTex.png ../Tools/png2tga) +IF EXIST bootLogoTex.png (move bootLogoTex.png ../Tools/png2tga) + +IF EXIST bootSound.wav echo bootSound detected. Do you want it to loop? +IF EXIST bootSound.wav set /p AUDIODECIDE=[Y/N:] +IF /i "%AUDIODECIDE%"=="n" set LOOP=-noLoop +IF EXIST bootSound.wav ..\Tools\sox\sox.exe .\bootSound.wav -b 16 bootEdited.wav channels 2 rate 48k trim 0 6 +IF EXIST bootEdited.wav ..\Tools\wav2btsnd.jar -in bootEdited.wav -out bootSound.btsnd %LOOP% +IF EXIST bootSound.wav (2>NUL del bootSound.wav) +IF EXIST bootEdited.wav (2>NUL del bootEdited.wav) +IF EXIST bootSound.btsnd (move bootSound.btsnd ../Tools/CONSOLES/TurboCD/WORKDIR/meta/bootSound.btsnd) + +cd .. +move Files\*.iso Tools\CONSOLES\TurboCD\Tools +move Files\*.cue Tools\CONSOLES\TurboCD\Tools +cd Tools +cd CONSOLES +cd TurboCD +cd Tools + +:: Rename CUE +2>NUL ren *.cue CDROM.cue + +:: Update CUE and rename ISO +for %%f in (*.iso) do ( + fart -i CDROM.cue "%%f" CDROM.iso + 2>NUL ren "%%f" CDROM.iso +) + +:: Extract ISO +bincuesplit CDROM.cue hcd + +:: Delete the CDROM.iso and CDROM.cue +del CDROM.iso +del CDROM.cue + +:: Compress ISO tracks +cd CDROM +for %%X in (*.iso) do ( + ..\tg16inject "%%X" "%%X" +) + +:: Rename ISO tracks to BIN +for %%X in (*.iso) do ( + ..\fart CDROM.hcd "%%X" "%%~nX.bin" + 2>NUL ren "%%X" "%%~nX.bin" +) + +:: Resample OGG files +echo Begin resampling audio files to 32000Hz +for %%f in (*.ogg) do ( + echo Resample "%%f" + ren "%%f" resample + ..\ffmpeg.exe -hide_banner -loglevel error -i resample -qscale:a 5 -ar 32000 "%%f" + del resample +) +echo Finished resampling audio files + +cd .. + +:: Create pce.pkg +BuildTurboCdPcePkg CDROM + +:: Remove CDROM directory +rd /s /q CDROM + +IF NOT EXIST pce.pkg GOTO:InjectError + +move pce.pkg ..\WORKDIR\content\pceemu +IF NOT EXIST ..\WORKDIR\content\pceemu\pce.pkg GOTO:InjectError + +cls + +:: EDITING APP.XML AND META.XML + +cd .. + +echo Generating app.xml... +cd WORKDIR +cd code +del /s app.xml >nul 2>&1 +echo ^>app.xml +echo ^>>app.xml +echo ^16^>>app.xml +echo ^000500101000400A^>>app.xml +echo ^000500001337%TITLEID%^>>app.xml +echo ^0000^>>app.xml +echo ^21213^>>app.xml +echo ^80000000^>>app.xml +echo ^00001337^>>app.xml +echo ^0000000000000000000000000000000000000000000000000000000000000000^>>app.xml +echo ^0000000000000000^>>app.xml +echo ^>>app.xml +SLEEP 1 +cls + +echo Generating meta.xml... +cd .. +cd meta +echo ^>meta.xml +echo ^>>meta.xml +echo ^33^>>meta.xml +echo ^WUP-N-%PRODUCTCODE%^>>meta.xml +echo ^WUP^>>meta.xml +echo ^00J8^>>meta.xml +echo ^^>>meta.xml +echo ^2^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000004^>>meta.xml +echo ^00000000^>>meta.xml +echo ^1^>>meta.xml +echo ^0^>>meta.xml +echo ^000500001337%TITLEID%^>>meta.xml +echo ^00001337^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^000500101000400A^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0000000000400000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0^>>meta.xml +echo ^00000000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^1^>>meta.xml +echo ^3375469152^>>meta.xml +echo ^0^>>meta.xml +echo ^1^>>meta.xml +echo ^0^>>meta.xml +echo ^00000002^>>meta.xml +echo ^128^>>meta.xml +echo ^6^>>meta.xml +echo ^192^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^192^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^192^>>meta.xml +echo ^192^>>meta.xml +echo ^192^>>meta.xml +echo ^192^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^^>>meta.xml +echo ^0^>>meta.xml +echo ^1^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^00010001^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000003^>>meta.xml +echo ^00000001^>>meta.xml +IF %LINEDECIDE%==2 ( +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +) +IF %LINEDECIDE%==1 ( +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +) +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^>>meta.xml +SLEEP 1 +cls + +:: INJECTING IMAGES +:InjectingImages +cd .. +cd .. +cd .. +cd .. +cd png2tga +echo Converting images to TGA... +png2tgacmd.exe -i iconTex.png --width=128 --height=128 --tga-bpp=32 --tga-compression=none +png2tgacmd.exe -i bootTvTex.png --width=1280 --height=720 --tga-bpp=24 --tga-compression=none +png2tgacmd.exe -i bootDrcTex.png --width=854 --height=480 --tga-bpp=24 --tga-compression=none +IF EXIST bootLogoTex.png (png2tgacmd.exe -i bootLogoTex.png --width=170 --height=42 --tga-bpp=32 --tga-compression=none) +title Injectiine [TurboCD] +del /f /q iconTex.png +del /f /q bootTvTex.png +del /f /q bootDrcTex.png +del /f /q bootLogoTex.png +MetaVerifiy.py +cls +echo Moving images to meta folder... +move iconTex.tga ..\CONSOLES\TurboCD\WORKDIR\meta +move bootTvTex.tga ..\CONSOLES\TurboCD\WORKDIR\meta +move bootDrcTex.tga ..\CONSOLES\TurboCD\WORKDIR\meta +2>NUL move bootLogoTex.tga ..\CONSOLES\TurboCD\WORKDIR\meta +cls + +:PackPrompt +cls +echo Do you want to pack the game using NUSPacker? +echo If you don't wish to, the game will be created in Loadiine format. +set /p PACKDECIDE=[Y/N:] +IF /i "%PACKDECIDE%"=="n" (GOTO:LoadiinePack) +IF /i "%PACKDECIDE%"=="y" (GOTO:PackGame) +GOTO:PackPrompt + +:LoadiinePack +cls +cd ../CONSOLES/TurboCD +cd .. +move TurboCD\WORKDIR ..\..\Output\"[TurboCD] %GAMENAME% [%PRODUCTCODE%]" +GOTO:FinalCheckLoadiine + +:: PACK GAME +:PackGame +echo Packing game... +cd ../CONSOLES/TurboCD +cd .. +move TurboCD\WORKDIR TurboCD\NUSPacker\WORKDIR +cd TurboCD +cd NUSPacker +java -jar NUSPacker.jar -in WORKDIR -out "[TurboCD] %GAMENAME% (000500001337%TITLEID%)" +rd /s /q tmp +rd /s /q WORKDIR +rd /s /q output +move "[TurboCD] %GAMENAME% (000500001337%TITLEID%)" ..\..\..\..\Output + +:: Final check if game exists +:FinalCheck +cd ..\..\..\..\Output +IF NOT EXIST "[TurboCD] %GAMENAME% (000500001337%TITLEID%)" GOTO:GameError +GOTO:GameComplete + +:FinalCheckLoadiine +cd ..\..\Output +IF NOT EXIST "[TurboCD] %GAMENAME% [%PRODUCTCODE%]" GOTO:LoadiineError +GOTO:GameComplete + +:GameComplete +cls +echo :::::::::::::::::::::: +echo ::INJECTION COMPLETE:: +echo :::::::::::::::::::::: +echo. +echo A folder has been created named +IF /i "%PACKDECIDE%"=="y" echo "[TurboCD] %GAMENAME% (000500001337%TITLEID%)" +IF /i "%PACKDECIDE%"=="n" echo "[TurboCD] %GAMENAME% [%PRODUCTCODE%]" +echo in the Output directory with the injected game. You can install this using +echo WUP Installer GX2, WUP Installer Y Mod or System Config Tool. +echo. +echo It is recommended to install to USB in case of game corruption. +echo. +echo Press any key to exit. +pause>NUL +exit + +:: ERRORS + +:404ISOnotFound +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Turbo CD ISO not found. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:404CUEnotFound +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Turbo CD CUE not found. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:404ImagesNotFound +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Images not found. +echo. +echo Make sure you have the following images in the Files directory: +echo bootTvTex.png (1280 x 720) +echo iconTex.png (128 x 128) +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:LoadiineError +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Failed to create a Loadiine package. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:GameError +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Failed to create a WUP package. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:InjectError +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Failed to inject the ROM. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:ROBOFAIL +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Robocopy failed to create a working directory with the base files. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:InternetSucks +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Internet connection test failed. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit \ No newline at end of file diff --git a/Tools/CONSOLES/TurboGrafx16/Injector/BuildPcePkg.exe b/Tools/CONSOLES/TurboGrafx16/Injector/BuildPcePkg.exe new file mode 100644 index 0000000..dfe730f Binary files /dev/null and b/Tools/CONSOLES/TurboGrafx16/Injector/BuildPcePkg.exe differ diff --git a/Tools/CONSOLES/TurboGrafx16/JNUSTool/JNUSTool.jar b/Tools/CONSOLES/TurboGrafx16/JNUSTool/JNUSTool.jar new file mode 100644 index 0000000..f6482ff Binary files /dev/null and b/Tools/CONSOLES/TurboGrafx16/JNUSTool/JNUSTool.jar differ diff --git a/Tools/CONSOLES/TurboGrafx16/NUSPacker/NUSPacker.jar b/Tools/CONSOLES/TurboGrafx16/NUSPacker/NUSPacker.jar new file mode 100644 index 0000000..e7e6c43 Binary files /dev/null and b/Tools/CONSOLES/TurboGrafx16/NUSPacker/NUSPacker.jar differ diff --git a/Tools/CONSOLES/TurboGrafx16/TurboGrafx16.bat b/Tools/CONSOLES/TurboGrafx16/TurboGrafx16.bat new file mode 100644 index 0000000..1cb2895 --- /dev/null +++ b/Tools/CONSOLES/TurboGrafx16/TurboGrafx16.bat @@ -0,0 +1,639 @@ +@echo off +title Injectiine [TurboGrafx16] +cls +cd .. +cd .. +cd .. +cd Files + +echo ::::::::::::::::::::::::::::: +echo ::INJECTIINE [TurboGrafx16]:: +echo ::::::::::::::::::::::::::::: +SLEEP 3 + +:: CHECK THAT FILES EXIST + +IF NOT EXIST *.pce GOTO:404ROMnotFound +set count=0 +for %%x in (*.pce) do set /a count+=1 +IF %count% GEQ 2 ( + GOTO:TooManyFiles +) +IF NOT EXIST bootTvTex.png GOTO:404ImagesNotFound +IF NOT EXIST iconTex.png GOTO:404ImagesNotFound + +cd .. +cd Tools +cd CONSOLES +cd TurboGrafx16 + +:BASE +cls +echo Which base do you want to use? +echo R-Type (1) +echo Base supplied from Files (2) +echo. +set /p BASEDECIDE=[Your Choice:] +IF %BASEDECIDE%==1 GOTO:RTYPE +IF %BASEDECIDE%==2 GOTO:BaseNotice +GOTO:BASE + +:BaseNotice +cls +echo Please supply your base, including the code, content and meta +echo folders, in a directory called "Base" within the Files directory. +echo. +echo Press any key to continue. +pause>NUL +cd .. +cd .. +cd .. +cd Files +IF NOT EXIST Base GOTO:BASEFAIL +cd .. +cd Tools +cd CONSOLES +cd TurboGrafx16 +GOTO:EnterCommon + +:: ENTERING KEYS + +:WrongKeyRTYPE +cls +echo Title key is incorrect. Please try again. +SLEEP 2 + +:EnterKeyRTYPE +cls +set BASEID=0005000010163200 +set BASEPDC=PPAE +set BASEFOLDER="R-TYPE [PPAEJ8]" + +IF EXIST TitleKeyRTYPE.txt goto:EnterCommon +echo This step will not be required the next time you start Injectiine. +echo Enter the title key for R-TYPE (USA): +set /p TITLEKEY= +echo %TITLEKEY:~0,32%>TitleKeyRTYPE.txt +set /p TITLEKEY=encryptKeyWith +set /p COMMON=JNUSTool\config +echo %COMMON:~0,32%>>JNUSTool\config +echo https://tagaya.wup.shop.nintendo.net/tagaya/versionlist/EUR/EU/latest_version>>JNUSTool\config +echo https://tagaya-wup.cdn.nintendo.net/tagaya/versionlist/EUR/EU/list/%d.versionlist>>JNUSTool\config +IF "%COMMON:~0,4%"=="D7B0" GOTO:EnterParameters ELSE GOTO:WrongCommon + +:: ENTER PARAMETERS + +:EnterParameters + +set TITLEID=%random:~-1%%random:~-1%%random:~-1%%random:~-1% + +:LineQuestion +cls +echo How many lines does your game name use? +set /p LINEDECIDE=[1/2:] +echo. +IF %LINEDECIDE%==1 GOTO:LINE1 +IF %LINEDECIDE%==2 GOTO:LINE2 +GOTO:LINEQUESTION + +:LINE1 +echo Enter the name of the game. +set /p GAMENAME=[Game Name:] +echo. +GOTO:RestOfParameters + +:LINE2 +echo Enter a short version of the name of the game. +set /p GAMENAME=[Short Game Name:] +echo. + +echo Enter the game name's first line. +set /p GAMENAME1=[Game Name Line 1:] +echo. + +echo Enter the game name's second line. +set /p GAMENAME2=[Game Name Line 2:] +echo. + +:RestOfParameters +echo Enter a 4-digit product code. +set /p PRODUCTCODE=[0-Z:] +echo. + +echo Do you want to enter a title ID manually? +echo If you don't, one will be randomly assigned. +set /p TITLEDECIDE=[Y/N:] +echo. +IF /i "%TITLEDECIDE%"=="y" ( +echo Enter a 4-digit meta title ID. Must only be hex values. +set /p TITLEID=[0-F:] +) +cls + +echo Injectiine will now create an TurboGrafx16 injection. +echo If you don't accept this, you will need to reenter your parameters. +CHOICE /C YN +IF errorlevel 2 goto :EnterParameters +IF errorlevel 1 goto :DownloadingStuff + +:: DOWNLOADING AND MOVING STUFF + +:DownloadingStuff +cls +IF %BASEDECIDE%==6 GOTO:EnterBaseCode +echo Testing Internet connection... +C:\windows\system32\PING.EXE google.com +if %errorlevel% GTR 0 goto:InternetSucks + +IF EXIST WORKDIR echo Cleaning up working directory from last failed conversion... +IF EXIST WORKDIR rd /s /q WORKDIR +SLEEP 1 +cd JNUSTool +echo Downloading base files... +rmdir /s /q %BASEFOLDER% +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /code/cos.xml +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /code/main.rpx +:CONTENT +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /content/.* +del %BASEFOLDER%\content\pceemu\pce.pkg +IF NOT EXIST %BASEFOLDER%\content GOTO:CONTENT +:MANUAL +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/Manual.bfma +IF NOT EXIST %BASEFOLDER%\meta\Manual.bfma GOTO:MANUAL +:RESTOFSTUFF +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/bootMovie.h264 +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/bootLogoTex.tga +java -jar JNUSTool.jar %BASEID% %TITLEKEY% -file /meta/bootSound.btsnd + +:MovingStuff +echo Moving to work directory... +C:\Windows\System32\Robocopy.exe %BASEFOLDER% ..\WORKDIR\ /MIR +rmdir /s /q %BASEFOLDER% +cd .. +IF NOT EXIST WORKDIR GOTO:ROBOFAIL +cls +GOTO:InjectingROM + +:EnterBaseCode +cls +echo Please enter the 4-digit product code of your base. +echo You can find it in either the meta.xml or cos.xml files. +echo EXAMPLES: JAAP, JAJE, JAEJ +set /p BASEPDC=[Base Product Code:] + +:CopyBase +cls +echo Moving base to work directory... +C:\Windows\System32\Robocopy.exe ..\..\..\Files\Base WORKDIR\ /MIR +IF NOT EXIST WORKDIR GOTO:ROBOFAIL +rmdir /s /q ..\..\..\Files\Base +cls + +:: INJECTING ROM +:InjectingROM +echo Injecting ROM... +cd .. +cd .. +cd .. +cd Files +IF EXIST iconTex.png (move iconTex.png ../Tools/png2tga) +IF NOT EXIST bootDrcTex.png (copy bootTvTex.png bootDrcTex.png) +IF EXIST bootTvTex.png (move bootTvTex.png ../Tools/png2tga) +IF EXIST bootDrcTex.png (move bootDrcTex.png ../Tools/png2tga) +IF EXIST bootLogoTex.png (move bootLogoTex.png ../Tools/png2tga) + +IF EXIST bootSound.wav echo bootSound detected. Do you want it to loop? +IF EXIST bootSound.wav set /p AUDIODECIDE=[Y/N:] +IF /i "%AUDIODECIDE%"=="n" set LOOP=-noLoop +IF EXIST bootSound.wav ..\Tools\sox\sox.exe .\bootSound.wav -b 16 bootEdited.wav channels 2 rate 48k trim 0 6 +IF EXIST bootEdited.wav ..\Tools\wav2btsnd.jar -in bootEdited.wav -out bootSound.btsnd %LOOP% +IF EXIST bootSound.wav (2>NUL del bootSound.wav) +IF EXIST bootEdited.wav (2>NUL del bootEdited.wav) +IF EXIST bootSound.btsnd (move bootSound.btsnd ../Tools/CONSOLES/TurboGrafx16/WORKDIR/meta/bootSound.btsnd) + +cd .. +move Files\*.pce Tools\CONSOLES\TurboGrafx16\Injector +cd Tools +cd CONSOLES +cd TurboGrafx16 + +cd Injector +for %%f in (*.pce) do ( + BuildPcePkg.exe "%%f" + del "%%f" +) +IF NOT EXIST pce.pkg GOTO:InjectError + +move pce.pkg ..\WORKDIR\content\pceemu +IF NOT EXIST ..\WORKDIR\content\pceemu\pce.pkg GOTO:InjectError + +cls + +:: EDITING APP.XML AND META.XML + +cd .. + +echo Generating app.xml... +cd WORKDIR +cd code +del /s app.xml >nul 2>&1 +echo ^>app.xml +echo ^>>app.xml +echo ^16^>>app.xml +echo ^000500101000400A^>>app.xml +echo ^000500001337%TITLEID%^>>app.xml +echo ^0001^>>app.xml +echo ^21213^>>app.xml +echo ^80000000^>>app.xml +echo ^00001337^>>app.xml +echo ^0000000000000000000000000000000000000000000000000000000000000000^>>app.xml +echo ^0000000000000000^>>app.xml +echo ^>>app.xml +SLEEP 1 +cls + +echo Generating meta.xml... +cd .. +cd meta +echo ^>meta.xml +echo ^>>meta.xml +echo ^33^>>meta.xml +echo ^WUP-N-%PRODUCTCODE%^>>meta.xml +echo ^WUP^>>meta.xml +echo ^00J8^>>meta.xml +echo ^^>>meta.xml +echo ^2^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000004^>>meta.xml +echo ^00000000^>>meta.xml +echo ^1^>>meta.xml +echo ^1^>>meta.xml +echo ^000500001337%TITLEID%^>>meta.xml +echo ^00001337^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^000500101000400A^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0000000000400000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^0^>>meta.xml +echo ^00000000^>>meta.xml +echo ^0000000000000000^>>meta.xml +echo ^1^>>meta.xml +echo ^3492782174^>>meta.xml +echo ^0^>>meta.xml +echo ^1^>>meta.xml +echo ^0^>>meta.xml +echo ^00000002^>>meta.xml +echo ^128^>>meta.xml +echo ^6^>>meta.xml +echo ^192^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^192^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^128^>>meta.xml +echo ^192^>>meta.xml +echo ^192^>>meta.xml +echo ^192^>>meta.xml +echo ^192^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^^>>meta.xml +echo ^0^>>meta.xml +echo ^1^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^0^>>meta.xml +echo ^00010001^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000003^>>meta.xml +echo ^00000001^>>meta.xml +IF %LINEDECIDE%==2 ( +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +echo ^%GAMENAME1%>>meta.xml +echo %GAMENAME2%^>>meta.xml +) +IF %LINEDECIDE%==1 ( +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +) +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^%GAMENAME%^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^KONAMI^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^00000000^>>meta.xml +echo ^>>meta.xml +SLEEP 1 +cls + +:: INJECTING IMAGES +:InjectingImages +cd .. +cd .. +cd .. +cd .. +cd png2tga +echo Converting images to TGA... +png2tgacmd.exe -i iconTex.png --width=128 --height=128 --tga-bpp=32 --tga-compression=none +png2tgacmd.exe -i bootTvTex.png --width=1280 --height=720 --tga-bpp=24 --tga-compression=none +png2tgacmd.exe -i bootDrcTex.png --width=854 --height=480 --tga-bpp=24 --tga-compression=none +IF EXIST bootLogoTex.png (png2tgacmd.exe -i bootLogoTex.png --width=170 --height=42 --tga-bpp=32 --tga-compression=none) +title Injectiine [TurboGrafx16] +del /f /q iconTex.png +del /f /q bootTvTex.png +del /f /q bootDrcTex.png +del /f /q bootLogoTex.png +MetaVerifiy.py +cls +echo Moving images to meta folder... +move iconTex.tga ..\CONSOLES\TurboGrafx16\WORKDIR\meta +move bootTvTex.tga ..\CONSOLES\TurboGrafx16\WORKDIR\meta +move bootDrcTex.tga ..\CONSOLES\TurboGrafx16\WORKDIR\meta +2>NUL move bootLogoTex.tga ..\CONSOLES\TurboGrafx16\WORKDIR\meta +cls + +:PackPrompt +cls +echo Do you want to pack the game using NUSPacker? +echo If you don't wish to, the game will be created in Loadiine format. +set /p PACKDECIDE=[Y/N:] +IF /i "%PACKDECIDE%"=="n" (GOTO:LoadiinePack) +IF /i "%PACKDECIDE%"=="y" (GOTO:PackGame) +GOTO:PackPrompt + +:LoadiinePack +cls +cd ../CONSOLES/TurboGrafx16 +cd .. +move TurboGrafx16\WORKDIR ..\..\Output\"[TurboGrafx16] %GAMENAME% [%PRODUCTCODE%]" +GOTO:FinalCheckLoadiine + +:: PACK GAME +:PackGame +echo Packing game... +cd ../CONSOLES/TurboGrafx16 +cd .. +move TurboGrafx16\WORKDIR TurboGrafx16\NUSPacker\WORKDIR +cd TurboGrafx16 +cd NUSPacker +java -jar NUSPacker.jar -in WORKDIR -out "[TurboGrafx16] %GAMENAME% (000500001337%TITLEID%)" +rd /s /q tmp +rd /s /q WORKDIR +rd /s /q output +move "[TurboGrafx16] %GAMENAME% (000500001337%TITLEID%)" ..\..\..\..\Output + +:: Final check if game exists +:FinalCheck +cd ..\..\..\..\Output +IF NOT EXIST "[TurboGrafx16] %GAMENAME% (000500001337%TITLEID%)" GOTO:GameError +GOTO:GameComplete + +:FinalCheckLoadiine +cd ..\..\Output +IF NOT EXIST "[TurboGrafx16] %GAMENAME% [%PRODUCTCODE%]" GOTO:LoadiineError +GOTO:GameComplete + +:GameComplete +cls +echo :::::::::::::::::::::: +echo ::INJECTION COMPLETE:: +echo :::::::::::::::::::::: +echo. +echo A folder has been created named +IF /i "%PACKDECIDE%"=="y" echo "[TurboGrafx16] %GAMENAME% (000500001337%TITLEID%)" +IF /i "%PACKDECIDE%"=="n" echo "[TurboGrafx16] %GAMENAME% [%PRODUCTCODE%]" +echo in the Output directory with the injected game. You can install this using +echo WUP Installer GX2, WUP Installer Y Mod or System Config Tool. +echo. +echo It is recommended to install to USB in case of game corruption. +echo. +echo Press any key to exit. +pause>NUL +exit + +:: ERRORS + +:404ROMnotFound +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo TurboGrafx16 ROM not found. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:TooManyFiles +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Too many .PCE files founnd, only one is allowed. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:404ImagesNotFound +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Images not found. +echo. +echo Make sure you have the following images in the Files directory: +echo bootTvTex.png (1280 x 720) +echo iconTex.png (128 x 128) +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:LoadiineError +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Failed to create a Loadiine package. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:GameError +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Failed to create a WUP package. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:InjectError +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Failed to inject the ROM. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:ROBOFAIL +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Robocopy failed to create a working directory with the base files. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit + +:InternetSucks +cls +echo ::::::::: +echo ::ERROR:: +echo ::::::::: +echo. +echo Internet connection test failed. +echo. +echo Aborting in five seconds. +SLEEP 5 +exit \ No newline at end of file diff --git a/Tools/Loader.bat b/Tools/Loader.bat index 7bb4745..242e332 100644 --- a/Tools/Loader.bat +++ b/Tools/Loader.bat @@ -7,11 +7,13 @@ echo ::Welcome to Injectiine:: echo ::::::::::::::::::::::::: echo. echo Please select a console. -echo NES (1) -echo SNES (2) -echo N64 (3) -echo GBA (4) -echo NDS (5) +echo NES (1) +echo SNES (2) +echo N64 (3) +echo GBA (4) +echo NDS (5) +echo Turbografx16 (6) +echo Turbo CD (7) echo. set /p CHOICE=[Your Choice:] if %CHOICE%==1 GOTO:NES @@ -19,6 +21,8 @@ if %CHOICE%==2 GOTO:SNES if %CHOICE%==3 GOTO:N64 if %CHOICE%==4 GOTO:GBA if %CHOICE%==5 GOTO:NDS +if %CHOICE%==6 GOTO:Turbografx16 +if %CHOICE%==7 GOTO:TurboCD GOTO:Menu :NES @@ -50,3 +54,15 @@ cd CONSOLES cd NDS call NDS.bat exit + +:Turbografx16 +cd CONSOLES +cd Turbografx16 +call Turbografx16.bat +exit + +:TurboCD +cd CONSOLES +cd TurboCD +call TurboCD.bat +exit \ No newline at end of file