Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set /p current=<ver.txt
- cd Dev Opt
- cd Notices
- call notices_checker.bat
- ping google.com -n 1 >nul
- if %errorlevel%==0 (
- cd ..
- cd Patches
- del patches_checker.bat
- download https://pastebin.com/raw/NfgfuQDM patches_checker.bat
- call patches_checker.bat
- )
- cd ..
- cd ..
- cd audio
- start /min mainmusic.bat
- cd ..
- :main
- color a0
- title Sea of JJPs Launcher
- cd..
- cd Settings
- if exist "Echo.set" @echo on
- if not exist "Echo.set" mode con cols=50 lines=22 & @echo off & cls
- cd..
- cd Launcher
- echo ==========================
- echo %current%
- echo Sea of JJPs Launcher
- echo --------------------------
- cmdMenuSel a070 "Play" "Web Page" "Notices" "Options" "Changelog" "Exit"
- if %errorlevel%==1 goto Play
- if %errorlevel%==2 start https://zcooki.itch.io/soj
- if %errorlevel%==3 goto Notices
- if %errorlevel%==4 goto Options
- if %errorlevel%==5 (
- title Sea of JJPs Launcher - Changelog
- echo.
- echo ===============
- echo Changelog
- echo ver%current%
- echo ---------------
- type CHANGE.log
- pause>nul
- goto main
- )
- if %errorlevel%==6 (
- taskkill/F /IM dlc.exe
- exit
- )
- goto main
- :Play
- title Sea of JJPs Launcher - Play Selection
- echo.
- echo -=-SELECT VERSION-=-
- cmdMenuSel a070 "Back" "0.41" "0.52" "0.60"
- if %errorlevel%==1 goto main
- if %errorlevel%==2 (
- cd..
- cd profiles
- if not exist 0.41 (
- echo.
- echo The version '0.41' does not exist.
- echo Download Page Opened.
- pause>nul
- cd..
- cd launcher
- goto Play
- )
- cd 0.41
- call runner.bat
- cd..
- cd..
- cd launcher
- cd audio
- taskkill/F /IM dlc.exe
- start /min mainmusic.bat
- cd ..
- goto main
- )
- if %errorlevel%==3 (
- cd..
- cd profiles
- if not exist 0.52 (
- echo.
- echo The version '0.52' does not exist.
- echo Download Page Opened.
- pause>nul
- cd..
- cd launcher
- goto Play
- )
- cd 0.52
- call runner.bat
- cd..
- cd..
- cd launcher
- cd audio
- taskkill/F /IM dlc.exe
- start /min mainmusic.bat
- cd ..
- goto main
- )
- if %errorlevel%==4 (
- cd..
- cd profiles
- if not exist 0.60 (
- echo.
- echo The version '0.60' does not exist.
- echo Download Page Opened.
- pause>nul
- cd..
- cd launcher
- goto Play
- )
- cd 0.60
- call runner.bat
- cd..
- cd..
- cd launcher
- cd audio
- taskkill/F /IM dlc.exe
- start /min mainmusic.bat
- cd ..
- goto main
- )
- goto main
- :Notices
- goto main
- :Options
- title Sea of JJPs Launcher - Options
- cd ..
- cd settings
- set advopt=
- find /n "1" Advanced.set
- if not errorlevel 1 (
- set advopt= "Reset Settings to Default" "Uninstall Versions" "Echo"
- )
- if not exist "Echo.set" cls
- cd..
- cd launcher
- echo ===============
- echo.
- echo Options
- echo ---------------
- cmdMenuSel a070 "Audio" "Modifications" "Show Advanced" "Back"%advopt%
- if %ERRORLEVEL%==1 goto AudioSetting
- if %ERRORLEVEL%==2 goto ModificationSetting
- if %ERRORLEVEL%==3 goto AdvancedSetting
- if %ERRORLEVEL%==4 goto main
- if %ERRORLEVEL%==5 goto defaultsettings
- if %ERRORLEVEL%==6 goto verunin
- if %ERRORLEVEL%==7 goto EchoAdvSetting
- :AudioSetting
- title Sea of JJPs Launcher - Options\Audio.set
- cd..
- cd settings
- set/p audioset=Value:
- if %audioset%==1 (
- echo %audioset% > Audio.set
- cd ..
- cd launcher
- cd audio
- taskkill/F /IM dlc.exe >nul
- start /min mainmusic.bat
- cd..
- )
- if %audioset%==0 (
- DEL /F /A "%cd%\Audio.set" >nul
- taskkill/F /IM dlc.exe >nul
- )
- if /I %audioset%==D (
- echo %audioset% > Audio.set
- cd..
- cd launcher
- cd audio
- taskkill/F /IM dlc.exe >nul
- start /min mainmusic.bat
- cd..
- )
- cd ..
- cd launcher
- goto Options
- :ModificationSetting
- title Sea of JJPs Launcher - Options\Modifications.set
- cd..
- cd settings
- set/p modificationset=Value:
- if %modificationset%==1 (
- echo %modificationset% > Modifications.set
- )
- if %modificationset%==0 (
- DEL /F /A "%cd%\Modifications.set" >nul
- )
- if /I %modificationset%==D (
- echo %modificationset% > Modifications.set
- )
- cd ..
- cd launcher
- goto Options
- :AdvancedSetting
- title Sea of JJPs Launcher - Options\Advanced.set
- cd..
- cd settings
- set/p advancedset=Value:
- if %advancedset%==1 (
- echo %advancedset% > Advanced.set
- )
- if %advancedset%==0 (
- DEL /F /A "%cd%\Advanced.set" >nul
- )
- if /I %advancedset%==D (
- DEL /F /A "%cd%\Advanced.set" >nul
- )
- cd ..
- cd launcher
- goto Options
- :EchoAdvSetting
- title Sea of JJPs Launcher - Options\Echo.set
- cd..
- cd settings
- set/p echoset=Value:
- if %echoset%==1 (
- echo %echoset% > Echo.set
- )
- if %echoset%==0 (
- DEL /F /A "%cd%\Echo.set" >nul
- )
- if /I %echoset%==D (
- DEL /F /A "%cd%\Echo.set" >nul
- )
- cd ..
- cd launcher
- cls
- echo Game restart recommended.
- goto Options
- :defaultsettings
- cd audio
- taskkill/F /IM dlc.exe >nul
- start /min mainmusic.bat
- cd..
- cd..
- cd settings
- echo Default > Audio.set
- echo Default > Modifications.set
- DEL /F /A "%cd%\Advanced.set" >nul
- DEL /F /A "%cd%\Echo.set" >nul
- cd..
- cd launcher
- cls
- echo Settings reset to default values.
- timeout /t 3 >nul
- goto Options
- :verunin
- title Sea of JJPs Launcher - Version Uninstallation
- echo.
- echo :::SELECT VERSION:::
- cmdMenuSel a070 "Back" "0.41" "0.52" "0.60"
- if %ERRORLEVEL%==1 goto Options
- if %ERRORLEVEL%==2 (
- cd..
- cd profiles
- rd /S /Q "0.41"
- cd..
- cd launcher
- cls
- echo Uninstalled Version: 0.41
- timeout /T 3 >nul
- goto verunin
- )
- if %ERRORLEVEL%==3 (
- cd..
- cd profiles
- rd /S /Q "0.52"
- cd..
- cd launcher
- cls
- echo Uninstalled Version: 0.52
- timeout /t 3 >nul
- goto verunin
- )
- if %ERRORLEVEL%==4 (
- cd..
- cd profiles
- rd /S /Q "0.60"
- cd..
- cd launcher
- cls
- echo Uninstalled Version: 0.60
- timeout /t 3 >nul
- goto verunin
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement