Skip to content

mikkokko/cs16beta_patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The engine dlls in early CS 1.6 builds lack relocation information, and on modern Windows versions the engine's preferred load address is often already occupied by system internals by the time the launcher attempts to load the dll.

This project resolves the conflict by reserving the engine's required address range within the main executable (hl.exe or hlds.exe) and manually mapping the engine dll into that space (This is actually the same technique Valve used for their engine/client dll encryption and manual mapping system).

This repository provides a patcher that adds a reservation section to the executable and makes it load ldrpatch.dll. The dll then hooks the necessary functions to manually map the engine image.

Usage

Warning: The patcher does not check for existing patches. Running it on an already patched executable will break the file.

  1. Build the project or download the binaries from Releases
  2. Run patcher.exe path\to\hl.exe or patcher.exe path\to\hlds.exe to patch the executable
  3. Move ldrpatch.dll into the same folder as the patched executable
  4. Launch the game as normal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published