aboutsummaryrefslogtreecommitdiff
path: root/src/l4d1democompat.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix L4D1 crash for yet another immediate bugfix releasev0.10-BETAGravatar Michael Smith 8 days1-1/+1
| | | | | Every. Single. Time. And having screwed up the zip dates was just a bonus I suppose.
* Add type-safety to virtual calls and accessorsGravatar Michael Smith 2025-04-171-2/+3
| | | | | | | | | | | | This probably should have been the design from the start. It's still possible to use void pointers, and this is done in a couple of places for simplicity, but wherever possible, we have actual structs for things now. Additionally, in places where vtables are fiddled with, e.g. vtable hooks, we have actual struct definitions with vtable pointers so there's need for pointer-casting horror.
* Rework API for inline hookingGravatar Michael Smith 2025-04-161-22/+15
| | | | | | | | | | | | | This both simplifies and complicates things, but probably hopefully maybe simplifies things overall. Certainly in cases like the L4D1 demo thing where there's 3 inline hooks at once, it seems simpler to be able to batch the fallible stuff to avoid rollbacks. In cases where you only need one hook, it's a bit more verbose, but what can you do. Thanks bill for discussing this with me pretty exhaustively and giving a lot of good input. I think both of us still kind of hate it actually.
* Fix mistakes I made integrating Hayden's old codeGravatar Michael Smith 2025-04-091-5/+5
| | | | | Doesn't matter how many history rewrites I do before pushing my local branch, there will always be something I still got wrong.
* Remove years from copyright headersGravatar Michael Smith 2025-04-071-3/+3
| | | | | | | | They're legally unnecessary as far as I know, and kind of annoying to maintain on a long-term basis. This was done with the consent of all 3 other contributors, in case anyone was wondering.
* Make Steam L4D1 demos backwards-compatibleGravatar Hayden K 2025-04-061-0/+186