home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn 3D Graphics Programming on the PC
/
Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso
/
rwwin
/
rwn2d.ba_
/
rwn2d.bin
Wrap
Text File
|
1995-11-14
|
2KB
|
71 lines
@echo off
rem ----------------------------------------------------------------------
rem RWN2D.BAT - Switch from normal (retail) to debugging RenderWare DLLs.
rem (c) Criterion Software Ltd. 1994.
rem ----------------------------------------------------------------------
rem Attempt to work out where the Windows system directory is.
rem Default
set DLLDIR=C:\WINDOWS\SYSTEM
if (%1%)==() goto GotDir
set DLLDIR=%1%
:GotDir
echo Copying RWXD.DLL and RWLD.DLL to %DLLDIR%
rem Erase any existing copies of the RenderWare DLLs.
if not exist %DLLDIR%\RWX.DLL goto SkipFixedDelete
del %DLLDIR%\RWX.DLL
if exist %DLLDIR%\RWX.DLL goto ErrorDeleteFixed
:SkipFixedDelete
if not exist %DLLDIR%\RWL.DLL goto SkipFloatDelete
del %DLLDIR%\RWL.DLL
if exist %DLLDIR%\RWX.DLL goto ErrorDeleteFloat
:SkipFloatDelete
rem Copy the debugging DLLs to the dll directory
copy RWXD.DLL %DLLDIR%\RWX.DLL
if not exist %DLLDIR%\RWX.DLL goto ErrorCopyingFixed
copy RWLD.DLL %DLLDIR%\RWL.DLL
if not exist %DLLDIR%\RWX.DLL goto ErrorCopyingFloat
echo Debugging RenderWare DLLs installed
goto Done
:ErrorDeleteFixed
echo Error deleting %DLLDIR%\RWX.DLL
echo The DLL is probably loaded into memory -
echo restart Windows and try again!
goto Done
:ErrorDeleteFloat
echo Error deleting %DLLDIR%\RWL.DLL
echo The DLL is probably loaded into memory -
echo restart Windows and try again!
goto Done
:ErrorCopyingFixed
echo Error copying RWX.DLL to %DLLDIR%
goto Done
:ErrorCopyingFloat
echo Error copying RWL.DLL to %DLLDIR%
goto Done
:Done
set DLLDIR=