@echo off

mpatch dmdoc.mdf dm.doc dmdoc.new
del dm.doc
rename dmdoc.new dm.doc

mpatch dmexe.mdf dm.exe dmexe.new
del dm.exe
rename dmexe.new dm.exe

mpatch hexenexe.mdf hexen.exe hexenexe.new
del hexen.exe
rename hexenexe.new hexen.exe

mpatch hexenwad.mdf hexen.wad hexenwad.new
del hexen.wad
rename hexenwad.new hexen.wad

mpatch ipxsetup.mdf ipxsetup.exe ipxsetup.new
del ipxsetup.exe
rename ipxsetup.new ipxsetup.exe

mpatch readme.mdf readme.txt readme.new
del readme.txt
rename readme.new readme.txt

mpatch setup.mdf setup.exe setup.new
del setup.exe
rename setup.new setup.exe

rem files in Hexen 1.1 but not 1.0
del dm.dat
del dmod.exe
del hexmod.exe
del license.doc

rem clean up files
del dmdoc.mdf
del dmexe.mdf
del hexenexe.mdf
del hexenwad.mdf
del hxndwngr.txt
del ipxsetup.mdf
del mpatch.exe
del readme.mdf
del setup.mdf

echo There will be an error below about batch file not existing
echo You can ignore it.

del patch.bat
