Usenet.com

www.Usenet.com

Group Index

Rec Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: TNT



Led wrote:
What the classic-Doom world needs (if it doesn't
already exist) is a tiny freeware util that'll do that
as in .bat file... Download it, run it, it copies your
TNT.WAD file as TNT.OLD, then fixes that byte in
your TNT.WAD file, then removes itself.
Anyone up to the challenge?

#include <fstream> #include <iostream> using namespace std; int main (void) { fstream file; char original; file.open ("tnt.wad", ios::binary | ios::in | ios::out); if (!file) { cout << "Could not open \"tnt.wad\"" << endl; return 1; } file.seekp (494844, ios::beg); file.seekg (494844, ios::beg); file.get (original); if (original == 17) file.put (7); else cout << "Already patched." << endl; file.close (); return 0; }

--
John Gaughan
http://www.johngaughan.net/
[EMAIL PROTECTED]




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.