aboutsummaryrefslogtreecommitdiff
path: root/src/os-win32.h
Commit message (Collapse)AuthorAgeFilesLines
* Make various preparations for upcoming featuresGravatar Michael Smith 2023-08-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | A lot of this is random WIP from a while back, at least a month ago, and is being committed now to get it out of the way so that other patches can be brought in and integrated against it without causing headaches. Also rolled into this commit is a way to distinguish plugin_unload from exiting the game. This is required for another soon-to-be-integrated feature to avoid crashing on exit, and could in theory also be used to speed up unloading on exit in future. While we're at it, this also avoids the need to linearly scan through the plugin list to do the old branch unloading fix, because we can. Rough summary of the other smaller stuff I can remember doing: - Rework bitbuf a bit - Add some cryptographic nonsense in ac.c (not final at all) - Introduce the first couple of "chunklets" libraries as a sort-of subproject of this one - Tidy up random small bits and bobs - Add source for a small keypair generation tool - Rework democustom to be very marginally more useful
* Remove the terrible gameinfo.txt garbage at lastGravatar Michael Smith 2023-06-121-0/+7
| | | | | | This also tidies up library handle grabbing with more os.h stuff, and improves the VDF creation logic - since we no longer store a couple of paths which makes it necessary to change that a bit anyway.
* Prune some comments and tidy up other minor thingsGravatar Michael Smith 2023-06-101-0/+3
|
* Improve os_dlfile() interfaceGravatar Michael Smith 2023-05-211-3/+3
| | | | | | Might as well return the length since we have it anyway. Also this maybe fixes the totally busted Linux code but it's still untested and probably doesn't work for reasons that will be discovered later on.
* Do some pedantic spring cleaningGravatar Michael Smith 2023-05-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | - Use const in more places where it makes sense - not absolutely everywhere because it can get a bit annoying - Make all the instruction search loops a bit more readable by casting the function pointer into a temporary variable to loop over - Add a few more doc comments and fix a typo or two - Make that RTTI thing flexibly-sized, finally - Don't include gamedata.h in vcall.h for no reason; consequently include gamedata.h in a bunch of places where it was implictly pulled in before - Fix dbg_toghidra() and ent_getedict() having mismatched return types between their headers and respective source files - Remove that one broken, hacky, secret Portal non-feature that probably nobody even ended up using; it can be implemented properly later if required
* Make the demo directory check more robustGravatar Michael Smith 2022-05-161-0/+3
| | | | This is how it should've been to begin with, but I was lazy.
* Add a few more os-win32.h definitions for laterGravatar Michael Smith 2022-05-121-0/+3
| | | | | This is part of some other WIP but might be useful in general so might as well be committed on its own.
* Add auto VDF installationGravatar Michael Smith 2022-03-241-0/+2
| | | | Breaks the Linux build because I can't file paths brain I need sleeping
* Clean up gameinfo_init() and other random stuffGravatar Michael Smith 2022-03-241-0/+13
| | | | | | | | | | | | | | | - Just ask the engine for the game directory instead of doing the stupid argv sniffing hacks from the early days of trying to get the damn thing working. - Also add some other path variables, functions and whatnot, and do some other minor tidying up. - Also also, another damn copyright year, somebody please help me. Unfortunate negative effect off this change: con_init() no longer reports the game name, because it has to happen before gameinfo_init(). I've decided I don't really care, though.
* Spruce up text and fix some copyright yearsGravatar Michael Smith 2022-03-191-2/+2
| | | | Sometimes, you just want to Unicode.
* Split up os.h, inline functions and fix some typosGravatar Michael Smith 2021-12-301-0/+100