--===    Privateer 2 Deluxe Edition      ===--
--=== Slowdown Patch by Jonathan Scobbie ===--
--===    Version 0.1 - Jan 12 2003       ===--


---INTRODUCTION---
This patches the windows version of Privateer 2 to make it playable on modern computers. Just copy the EXE to the P2 install folder and run it in a DOS box (so you can see the output)

Currently the UI and space combat is patched. A few parts are still fast, but only the audio is affected, its 100% playable now! Check Mario's site for updates.


---GREETS---
Big thanks to Mario "HCl" Brito for inspiring, helping me and hosting this patch.
Thanks to Origin for making the Wing Commander series.


---TECHNICAL---
To all you hackers out there, this is how P2 works. It ran fine on my Pentium 200MHz back in '97, but is way to fast on any modern computer, so slowing down each frame is needed to make it playable. Hacking in a call to Sleep() at the end of each frame does the trick.

It uses DirectDraw, but only copies directly to the front buffer. There are three functions that do this: one for movies, one for the UI, and one for space combat. Movies already work because of the strict timing required. The rest of the game is typical of a DOS program...

The UI function copies the whole screen at once, so adding a call to the end of this function fixes it perfectly (the sound is fixed too!)

Space combat is different. The function only copies a small part of the screen, so the call to Sleep() had to be added to the main loop.

If it is too fast or too slow, try tweaking the values at 87D79h (UI, default 20ms) and 87D8Dh (space, default 30ms).
