Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Zapisz to w folderze gta, i uruchom jako .bat
- ____________________________________________________________________________________________________
- @echo off
- title GTA: San Andreas (Steam) Downgrader
- mkdir "%windir%\system32\test" 2>nul
- if "%errorlevel%" == "0" (rmdir "%windir%\system32\test") else (echo Please run this file as Administrator. & pause & exit)
- cd /d %~dp0
- echo Welcome to GTA: San Andreas Downgrader!
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo This is for the Steam version (3.0) of the game.
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Assure you have your original "gta-sa.exe" file in this folder, and continue.
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- pause
- cls
- echo.
- echo Continuing...
- echo.
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- cls
- :CheckFile
- IF EXIST gta-sa.exe GOTO SelectMode
- IF NOT EXIST gta-sa.exe GOTO ReqMoveFile
- :NoFile
- cls
- Echo Unable to find gta-sa.exe
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Please make sure the file is in the same directory as this Batch file.
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo This program will now exit.
- pause
- exit
- :ReqMoveFile
- echo.
- echo File not found.
- echo.
- echo Would you like me to move the executable for you?
- echo.
- echo Y. Yes
- echo N. No
- echo.
- set /p Mode=Enter a option:
- if %Mode% == y goto MoveFile
- if %Mode% == Y goto MoveFile
- if %mode% == 1 goto MoveFile
- if %Mode% == n goto NoFile
- if %Mode% == N goto NoFile
- if %Mode% == 2 goto NoFile
- echo ERROR: Invalid input, choose between Y and N
- echo.
- goto ReqMoveFile
- :MoveFile
- if "%programfiles(x86)%XXX"=="XXX" goto move32
- goto move64
- :move32
- IF EXIST C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe (
- echo Moving...
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- copy "C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe" .
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Move Complete
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- cls
- goto checkFile
- ) else (
- cls
- echo.
- echo San Andreas Steam installation not found.
- echo Please confirm the following file exists, and then try again.
- echo.
- echo File:
- echo C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe
- echo.
- pause
- exit )
- :move64
- IF EXIST C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe (
- echo Moving...
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- copy "C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe" .
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Move Complete
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- cls
- goto checkFile
- ) else (
- cls
- echo.
- echo San Andreas Steam installation not found.
- echo Please confirm the following file exists, and then try again.
- echo.
- echo File:
- echo C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe
- echo.
- pause
- exit )
- :checkFile
- IF EXIST gta-sa.exe GOTO SelectMode
- IF NOT EXIST gta-sa.exe GOTO NoFile
- :SelectMode
- echo Which version do you wish to patch?
- echo.
- echo 1. V1.0
- echo 2. V1.1
- echo.
- set /p Mode=Enter a option:
- if %Mode% == 1 goto Do1
- if %Mode% == 2 goto Do11
- echo ERROR: Invalid input, choose between 1 and 2
- echo.
- goto SelectMode
- :Do1
- echo Patching...
- bin\bspatch.exe gta-sa.exe gta_sa.exe patch\gtadiff10.patch
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- cls
- goto CopyChoice
- :Do11
- echo Patching...
- bin\bspatch.exe gta-sa.exe gta_sa.exe patch\gtadiff101.patch
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- cls
- goto CopyChoice
- :CopyChoice
- echo Do you want to copy the patched file into your Steam directory?
- echo.
- echo Y. Yes
- echo N. No
- echo.
- set /p Mode=Enter a option:
- if %Mode% == y goto OSSelect
- if %Mode% == Y goto OSSelect
- if %Mode% == 1 goto OSSelect
- if %Mode% == n goto Finish
- if %Mode% == N goto Finish
- if %Mode% == 2 goto Finish
- echo ERROR: Invalid input, choose between y and n
- echo.
- goto CopyChoice
- :OSSelect
- if "%programfiles(x86)%XXX"=="XXX" goto 32
- goto 64
- :32
- echo Copying...
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- copy gta_sa.exe "C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta_sa.exe"
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Copy Complete
- pause
- cls
- goto Launch
- :64
- echo Copying...
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- copy gta_sa.exe "C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta_sa.exe"
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Copy Complete
- pause
- cls
- goto Launch
- :Launch
- echo Do you want to launch the patched game?
- echo.
- echo Y. Yes
- echo N. No
- echo.
- set /p Mode=Enter a option:
- if %Mode% == y goto DoLaunch
- if %Mode% == Y goto DoLaunch
- if %Mode% == 1 goto DoLaunch
- if %Mode% == n goto Finish
- if %Mode% == N goto Finish
- if %Mode% == 2 goto Finish
- echo ERROR: Invalid input, choose between y and n
- echo.
- goto Launch
- :DoLaunch
- if "%programfiles(x86)%XXX"=="XXX" goto L32
- goto L64
- :L32
- cd "C:\Program Files\Steam\steamapps\common\grand theft auto san andreas"
- gta_sa.exe
- exit
- :L64
- cd "C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas"
- gta_sa.exe
- exit
- :Finish
- cls
- echo Patched gta_sa.exe Created.
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Put this in your game directory and launch it to play the sersion you selected!
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Read the read-me for more information.
- PING 1.1.1.1 -n 1 -w 1000 >NUL
- echo Enjoy!
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment