diff options
author | 2025-03-10 20:37:28 +0000 | |
---|---|---|
committer | 2025-04-06 16:41:13 +0100 | |
commit | daa55cade14146f04814cf8a7ad2028becf4db66 (patch) | |
tree | 62933a231e8068f4498596a9064f59e1a4842723 /src/fixes.c | |
parent | 244fea664121acf12871ab5858a5fe95a2606b52 (diff) | |
download | sst-daa55cade14146f04814cf8a7ad2028becf4db66.tar.gz sst-daa55cade14146f04814cf8a7ad2028becf4db66.zip |
Use C23 void-argument-free prototypes
In the future we can also consider moving to {} instead of {0} for
initialisers, but my old Clang (16) doesn't support this, so it might be
wise to wait longer on that one so people don't need too bleeding-edge
of a compiler just to build this thing.
Diffstat (limited to 'src/fixes.c')
-rw-r--r-- | src/fixes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fixes.c b/src/fixes.c index dbb60f5..e6432c3 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -1,5 +1,5 @@ /* - * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com> * Copyright © 2023 Hayden K <imaciidz@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any @@ -44,7 +44,7 @@ static void chcmdflags(const char *name, int unset, int set) { if (v) v->base.flags = v->base.flags & ~unset | set; } -static void generalfixes(void) { +static void generalfixes() { // Expose all the demo stuff, for games like L4D that hide it for some // reason. unhide("demo_debug"); @@ -104,7 +104,7 @@ static void generalfixes(void) { } } -static void l4d2specific(void) { +static void l4d2specific() { // L4D2 doesn't let you set sv_cheats in lobbies, but turns out it skips all // the lobby checks if this random command is developer-only, presumably // because that flag is compiled out in debug builds and devs want to be @@ -163,7 +163,7 @@ e: chcmdflags("cl_fullupdate", CON_CHEAT, 0); } -static void l4d1specific(void) { +static void l4d1specific() { // For some reason, L4D1 hides mat_monitorgamma and doesn't archive it. // This means on every startup it's necessary to manually set non-default // values via the menu. This change here brings it in line with pretty much @@ -186,7 +186,7 @@ static void l4d1specific(void) { chcmdflags("update_addon_paths", 0, CON_CCMDEXEC); } -static void portal1specific(void) { +static void portal1specific() { #ifdef _WIN32 // TODO(compat): this is an absolutely atrocious way to implement this. it // should only be temporary in the interests of getting 4104 working right @@ -210,7 +210,7 @@ static void portal1specific(void) { #endif } -void fixes_apply(void) { +void fixes_apply() { generalfixes(); if (GAMETYPE_MATCHES(L4D1)) l4d1specific(); else if (GAMETYPE_MATCHES(L4D2x)) l4d2specific(); |