birdstakes / quatch Goto Github PK
View Code? Open in Web Editor NEWQuake 3 VM patching library
License: GNU General Public License v3.0
Quake 3 VM patching library
License: GNU General Public License v3.0
Some things that should be done:
pip install git+https://...
or even python -m pip install git+https://...
In particular premature EOF and bad vm_magic
should be handled, but the rest of the header should probably be validated too.
The data section is meant to contain 4 byte values that will be byte swapped at load time. On big-endian architectures, the current approach of only using STORE4 to initialize added data would cause everything to be byte swapped, including data that would normally go in the lit section and that should not be byte swapped, causing things like strings to be jumbled.
One possible solution would be to split add_data
into add_data
, add_lit
, and add_bss
and have those functions keep track of which kind of data is stored where. Then at write
time STORE1 and STORE4 could be used for lit and data values, respectively.
CONST + CALL pair locations are cached at load time to be used in replace_calls
. If an instruction referenced by the cache is modified, the cache should be updated.
Only the original call sites that existed at load time are cached so that new code can call the original unhooked functions without having to worry about a later replace_calls
messing things up. Maybe there should also be a way to update the cache to include new call sites too, or an option to have replace_calls
skip the cache.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.