home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / rwd2n.ba_ / rwd2n.bin
Text File  |  1995-11-14  |  2KB  |  71 lines

  1. @echo off
  2.  
  3. rem ----------------------------------------------------------------------
  4. rem RWD2N.BAT - Switch from normal (retail) to debugging RenderWare DLLs.
  5. rem (c) Criterion Software Ltd. 1994.
  6. rem ----------------------------------------------------------------------
  7.  
  8. rem Attempt to work out where the Windows system directory is.
  9.  
  10. rem Default
  11. set DLLDIR=C:\WINDOWS\SYSTEM
  12.  
  13. if (%1%)==() goto GotDir
  14.  
  15. set DLLDIR=%1%
  16.  
  17. :GotDir
  18.  
  19. echo Copying RWX.DLL and RWL.DLL to %DLLDIR%
  20.  
  21. rem Erase any existing copies of the RenderWare DLLs.
  22.  
  23. if not exist %DLLDIR%\RWX.DLL goto SkipFixedDelete
  24.  
  25. del %DLLDIR%\RWX.DLL
  26. if exist %DLLDIR%\RWX.DLL goto ErrorDeleteFixed
  27.  
  28. :SkipFixedDelete
  29.  
  30. if not exist %DLLDIR%\RWL.DLL goto SkipFloatDelete
  31.  
  32. del %DLLDIR%\RWL.DLL
  33. if exist %DLLDIR%\RWX.DLL goto ErrorDeleteFloat
  34.  
  35. :SkipFloatDelete
  36.  
  37. rem Copy the debugging DLLs to the dll directory
  38.  
  39. copy RWX.DLL %DLLDIR%\RWX.DLL
  40. if not exist %DLLDIR%\RWX.DLL goto ErrorCopyingFixed
  41. copy RWL.DLL %DLLDIR%\RWL.DLL
  42. if not exist %DLLDIR%\RWX.DLL goto ErrorCopyingFloat
  43.  
  44. echo Retail RenderWare DLLs installed
  45.  
  46. goto Done
  47.  
  48. :ErrorDeleteFixed
  49. echo Error deleting %DLLDIR%\RWX.DLL
  50. echo The DLL is probably loaded into memory -
  51. echo restart Windows and try again!
  52. goto Done
  53.  
  54. :ErrorDeleteFloat
  55. echo Error deleting %DLLDIR%\RWL.DLL
  56. echo The DLL is probably loaded into memory -
  57. echo restart Windows and try again!
  58. goto Done
  59.  
  60. :ErrorCopyingFixed
  61. echo Error copying RWX.DLL to %DLLDIR%
  62. goto Done
  63.  
  64. :ErrorCopyingFloat
  65. echo Error copying RWL.DLL to %DLLDIR%
  66. goto Done
  67.  
  68. :Done
  69.  
  70. set DLLDIR=
  71.