Advertisement
Guest User

The two .bats

a guest
Jul 28th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. ###Consolidated TC GZDoom.bat###
  2.  
  3. @ECHO OFF
  4.  
  5. REM If your zdoom.ini file is in a location other than the default, put the path to your ZDoom .ini file here:
  6. SET ZDoomINI="..\zdoom-%username%.ini"
  7. REM This defines the IWAD to use if a PWAD is loaded
  8. SET IWAD="..\doom2.wad"
  9.  
  10. REM If a command line parameter was provided, automatically load the IWAD as defined above
  11. SET /A ArgCount=0
  12. FOR %%C in (%*) DO SET /A ArgCount+=1
  13. SET Addons=""
  14. IF /I %ArgCount% GTR 0 SET Addons=%IWAD%
  15.  
  16. REM Change to the Wolf3D TC directory so that you can drag and drop from other folders and it will still work
  17. CD "%~dp0"
  18.  
  19. REM Check to see if Wolf3D .ini file is already there
  20. IF EXIST "zdoom-%username%-SoD.ini" (
  21. REM If so, run normally
  22. START ..\gzdoom.exe .\Wolf3D_Common.pk7 -config "zdoom-%username%-SoD.ini" -file %Addons% %*
  23. ) ELSE (
  24. REM If not, do initial setup for first run
  25. COPY %ZDoomINI% "zdoom-%username%-SoD.ini"
  26. START ..\gzdoom.exe .\Wolf3D_Common.pk7 -config "zdoom-%username%-SoD.ini" +exec Wolf3D_SoD.cfg -file %Addons% %*
  27. )
  28.  
  29. ###Wolf3D GZDoom.bat###
  30.  
  31. @ECHO OFF
  32.  
  33. REM If your zdoom.ini file is in a location other than the default, put the path to your ZDoom .ini file here:
  34. SET ZDoomINI="..\zdoom-%username%.ini"
  35. REM This defines the IWAD to use if a PWAD is loaded
  36. SET IWAD="..\doom2.wad"
  37.  
  38. REM If a command line parameter was provided, automatically load the IWAD as defined above
  39. SET /A ArgCount=0
  40. FOR %%C in (%*) DO SET /A ArgCount+=1
  41. SET Addons=""
  42. IF /I %ArgCount% GTR 0 SET Addons=%IWAD%
  43.  
  44. REM Change to the Wolf3D TC directory so that you can drag and drop from other folders and it will still work
  45. CD "%~dp0"
  46.  
  47. REM Check to see if Wolf3D .ini file is already there
  48. IF EXIST "zdoom-%username%-Wolf3D.ini" (
  49. REM If so, run normally
  50. START ..\gzdoom.exe .\Wolf3D.pk7 -config "zdoom-%username%-Wolf3d.ini" -file %Addons% %*
  51. ) ELSE (
  52. REM If not, do initial setup for first run
  53. COPY %ZDoomINI% "zdoom-%username%-Wolf3D.ini"
  54. START ..\gzdoom.exe .\Wolf3D.pk7 -config "zdoom-%username%-Wolf3d.ini" +exec Wolf3D.cfg -file %Addons% %*
  55. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement