aboutsummaryrefslogtreecommitdiff
path: root/src/gameinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix loading from legacy code page directory namesGravatar Michael Smith 2022-07-231-7/+12
| | | | | | | | | 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").
* Solve the error logging situationGravatar Michael Smith 2022-06-021-16/+13
|
* Centralise engine access, add Portal FOV changerGravatar Michael Smith 2022-04-301-29/+8
| | | | | | | | | | | | | | | - 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")
* Remove some superfluous headersGravatar Michael Smith 2022-04-261-2/+0
|
* Fix loading in early L4D2 buildsGravatar Michael Smith 2022-04-261-13/+11
| | | | This was dumb.
* Fix some egregious and sloppy mistakesGravatar Michael Smith 2022-04-061-1/+2
| | | | | | Thanks Aciidz and Bill for spotting these. Lesson (ostensibly) learned: Don't program while sleep-deprived!
* Fix L4D1 and L4DS crash regressionsGravatar Michael Smith 2022-03-261-2/+5
| | | | Chalk this up to improper testing and being tired and not using brain.
* Clean up gameinfo_init() and other random stuffGravatar Michael Smith 2022-03-241-126/+86
| | | | | | | | | | | | | | | - 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-1/+1
| | | | Sometimes, you just want to Unicode.
* Fix some old KV parser issuesGravatar Michael Smith 2022-03-191-5/+7
| | | | | | | - Implement conditionals in the lexer and reject or ignore them in callbacks. This will allow something to use them later if needed. - Make error handling less stupid (return a bool instead of using the state struct).
* Fix a couple of other latent woopsiesGravatar Michael Smith 2022-01-061-3/+3
| | | | | | | The format string one is cool because it implies the Windows code was also always wrong but the Windows headers aren't annotated for Clang so I guess that means it doesn't warn. At least for the nonstandard Windows wide character versions of things. Cool!
* Tidy up stubs, make vstdlib a stub, build on LinuxGravatar Michael Smith 2022-01-061-5/+4
| | | | | | Important note: it doesn't WORK on Linux, and there's tons of warnings and stuff, but it's easier to work on when all the compiler output and whatnot is there.
* Initial public snapshotGravatar Michael Smith 2021-11-201-0/+372
With code from Bill. Thanks Bill!