9 ms·
> here's a sample of code from the re3 repository in question. Do you have a link? I have downloaded all 3 branches (master, miami and lcs), searched for these
by Const-me 5y ago
> here's a sample of code from the re3 repository in question.
Do you have a link? I have downloaded all 3 branches (master, miami and lcs), searched for these constants and got nothing.
The code you have copy-pasted crashes on Windows with 100% guarantee. You see, lower 2GB (or optionally 1GB with the /3GB kernel switch) of address space is reserved for the OS kernel.
- GranPC 5y agoIt looks like that's code from a very old commit. re3 was initially built by injecting code into the regular GTA 3 binary, and slowly replacing methods inside the game with drop-in replacements that functionally worked the same. When enough of these replacements were built, it was then converted to a standalone binary.
- Const-me 5y agoIndeed, git format-patch found them. The magic numbers were present in the very first commit, and removed on 17 Apr 2020. The readme of the first commit said this: The aim of this project is to reverse GTA III for PC by replacing parts of the game one by one https://en.wikipedia.org/wiki/Ship_of_Theseus https://en.wikipedia.org/wiki/Ship_of_Theseus such that we have a working game at all times. Gonna be interesting to see the 2400 years old thought experiment tested in a modern US court :-)
- rhn_mk1 5y agoIf they were caught distributing un-replaced code, the court will have an easier job sidestepping the question.
- yjftsjthsd-h 5y agoIt's probably an old commit