summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2022-09-13Fix some lingering idiocyMichael Smith
Thanks Aciidz for pointing out the strings with no newline in them, and thanks Clang for warning me I wasn't using a function for ages while I was too lazy to delete it.
2022-09-13Move towards C23, improve events and vcall macrosMichael Smith
Another big one. Here's a list of things: - Since the upcoming C23 standardises typeof(), use it as an extension for the time being in order to allow passing arbitrary types as macro/codegen parameters. It wouldn't have been a big leap to do this even without standardisation since it's apparently an easy extension to implement - and also, to be honest, this project is essentially glued to Clang anyway so who cares. - Likewise, bool, true and false are becoming pre-defined, so pre-pre-define them now in order to get the benefit of not having to remember one header everywhere. - Really ungodly/amazing vcall macro stuff now allows us to call C++ virtual functions like regular C functions. It's pretty cool! - Events can now take arbitrary parameters and come in two types: regular events and predicates. All this makes the base code even uglier but makes the feature implementation nicer. In other words, it places more of the cognitive burden on myself and less on other people who might want to contribute. This is a good tradeoff, because I'm a genius.
2022-09-13Enforce L4D2 FPS limit properly when loaded lateMichael Smith
Shoutouts to Lokki for accidentally reporting this bug.
2022-08-16Allow cl_fullupdate as an attempted bug workaroundMichael Smith
2022-08-16Import Monocypher 3.1.3 + monocypher-rng moduleMichael Smith
This is for somewhat later. I'd always planned to use it - it existed already in earlier private repos, in fact. I just didn't bother to import it here in case it wouldn't actually be needed, but with the way current plans are going, it's definitely going to be needed, so here it is.
2022-08-16Fix malloc return check in mkentpropsMichael Smith
Spotted by Bill the other day.
2022-08-10Add magical feature codegen system, at long lastMichael Smith
2022-07-23Add event systemMichael Smith
2022-07-23Fix loading from legacy code page directory namesMichael Smith
Only if the code page in question is that of the system, obviously; Source itself will fail to start otherwise anyway. This fixes issues for at least one Russian user who'd named a "Games" folder "Игры," which I am told roughly translates to "Games" (and also exactly translates to "Games").
2022-07-23Split custom demo data into its own file/featureMichael Smith
Copyright note: the stuff Bill wrote is all still in the other file.
2022-07-23Add stuff to track keypressesWillian Henrique
Committer's note: this is somewhat adapted from Bill's original code, written a while back, but he gets full credit for actually doing the hard part.
2022-07-23Add keybind lookup codeMichael Smith
Also centralise NEXT_INSN macro, into its own header at least for now.
2022-07-23Document some Portal 2 breakage that needs fixedMichael Smith
2022-07-23Fix dodgy "has" initialisation case in mkgamedataMichael Smith
2022-07-23Change some warnings to errorsMichael Smith
2022-07-23Comply with, and complain about, Portal moderatorsMichael Smith
2022-07-23Add alias management plus input filtering skeletonMichael Smith
Some of the alias stuff was kind of stolen from earlier figuring-out Bill did. More Bill code is also on the way. :^)
2022-06-27Add update detection, clean up minor stuffMichael Smith
2022-06-02Bump version number right away (from now on!)Michael Smith
It'll be less confusing not to have development builds versioned the same as existing releases. That's probably obvious, but I'm still new to this releasing software business!
2022-06-02Solve the error logging situationMichael Smith
2022-05-31Add last-minute SteamPipe Portal colour supportv0.4-BETAMichael Smith
2022-05-31Bump version number and zip datesMichael Smith
Preparing for release, I spose!
2022-05-31Make the DLL copyright fit in the properties boxMichael Smith
You can widen the text field to read the whole thing, but that's not immediately obvious. Let's just shorten the text and make it nice and concise so people can figure out what to do more easily.
2022-05-31File a complaint about the error message situationMichael Smith
2022-05-30Add basic Portal crosshair colour customisationMichael Smith
Currently only works in 3420 and 5135 and uses hardcoded offsets with a byte pattern sanity check. Future work includes making it more widely compatible, and also doing the crazy thing I wanted to do but gave up on wherein the actual textures and stuff get patched in memory to sync up all the colours. Oh also, a couple of vtables were erroneously made executable, so I went ahead and fixed that while I was at it.
2022-05-26Fix a dumb mistake I didn't check before pushingMichael Smith
2022-05-26Remove some dodgy whitespaceMichael Smith
2022-05-26Make MP autojump at least kind of less brokenMichael Smith
Meh, whatever.
2022-05-25Fix wonky comparisons in CreateInterfaceMichael Smith
A stupid, stupid bug I'd probably never have caught for years and years. Thanks Evan Lin in the Portal Discord for pointing it out!
2022-05-19Properly solve load order issues via deferred initMichael Smith
2022-05-19Add a quick stopgap hack for Portal purposesMichael Smith
People want to be able to write a scheduled-release passphrase to demos to prove that said demos were recorded during a timeboxed event. Ideally this is something that'd be part of the custom demo data and general RTA run management stuff that's planned, but of course that doesn't exist yet. When it does exist, we'd probably want rid of this nonsense, so it's marked hidden and I don't plan to document it anywhere "official." It's just here for people who really need it in the short term.
2022-05-16Clean up some random bits and bobsMichael Smith
2022-05-16Make the demo directory check more robustMichael Smith
This is how it should've been to begin with, but I was lazy.
2022-05-15Fix GetEngineBuildNumber and entity property stuffMichael Smith
I still haven't bothered to flesh out all the possible indices for GetEngineBuildNumber but we're back to being able to use it to detect The Last Stand (as a result of some old version testing Aciidz did - thanks again!). This means we can do away with the terrible map file- based hotfix. Also, turns out sst_l4d_testwarp doesn't work if the plugin gets loaded early via VDF because certain SendTable offsets start out negated, so we work around that too now.
2022-05-13Properly finish refactoring con to use gamedataMichael Smith
2022-05-12Rerun L4D1 console spam fix after config loadingMichael Smith
This was the simplest way I could think of to solve this issue. Thanks again Aciidz for pointing the issue out, and thanks Turtle Rock for shipping such a broken game.
2022-05-12Further clean up engine API initialisationMichael Smith
2022-05-12Add a few more os-win32.h definitions for laterMichael Smith
This is part of some other WIP but might be useful in general so might as well be committed on its own.
2022-05-06HOTFIX: Fix L4D2 2.0.0.0 crashingv0.3-HOTFIXMichael Smith
Idiotic problems require idiotic solutions.
2022-05-04Allow lowering fps_max in the Left 4 DeadsMichael Smith
2022-05-04Cheat-protect sst_l4d_testwarpMichael Smith
Don't want people hitting a bind by accident and invalidating their runs instantly.
2022-05-04Fix a woopsy and slightly tweak autorecord UXMichael Smith
2022-05-03Woops, go ahead and delete that testing codeMichael Smith
2022-05-03Add entity property finding and L4D warp testingMichael Smith
This was a lot more code than expected, but it might be finally close to time to release the next beta... We'll see if any more rabbit holes present themselves to jump into, though.
2022-05-01Fix slashes being skipped in unquoted KV tokensMichael Smith
2022-04-30Don't bump the demo number if playing another demoMichael Smith
2022-04-30Centralise engine access, add Portal FOV changerMichael Smith
- A bunch of stuff is now defined in one header, engineapi.h - engineapi.c is responsible for setting up any interfaces/stuff that's used in more than one place - mkgamedata is pretty much rewritten and now supports nested conditionals - gamedata variables no longer have the gamedata_ prefix because it was just annoyingly long all the time - vcall macros are somewhat revamped and support dynamic (gamedata) indices - Portal 1 FOV can be set anywhere from 75-120 using fov_desired - tested in both the main versions currently used by runners - A few typos were also fixed ("intput," "writeable," "indexes")
2022-04-26Fix a couple of bits of convar min/max brokennessMichael Smith
It's amazing how long these things can go unnoticed.
2022-04-26Reorganise sst.c, add Portal 1 game typeMichael Smith
2022-04-26Fix GetCursorPos hook return valueMichael Smith
I'd noticed this at some point but it didn't seem to matter, and now all of sudden it does matter because magic. The hook just stopped working suddenly.