summaryrefslogtreecommitdiffhomepage
path: root/src/gameinfo.h
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-06-12 22:28:53 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-12 23:06:47 +0100
commit7aa6bd1cd88db9cceef3d1c07cd7664cb47538be (patch)
treef9db39fedd4ddcc3dc29e370af5b1b9b9894a948 /src/gameinfo.h
parent7893ef46f85eb5a6021d6ab763ca84e382e64954 (diff)
Remove the terrible gameinfo.txt garbage at last
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.
Diffstat (limited to 'src/gameinfo.h')
-rw-r--r--src/gameinfo.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gameinfo.h b/src/gameinfo.h
index 4948268..76c3c57 100644
--- a/src/gameinfo.h
+++ b/src/gameinfo.h
@@ -1,5 +1,5 @@
/*
- * Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -22,18 +22,11 @@
#include "intdefs.h"
#include "os.h"
-/* These variables are only set after calling gameinfo_init(). */
-extern const os_char *gameinfo_bindir; /* Absolute path to top-level bin/ */
+/* Miscellaneous metadata variables about the currently running game */
extern const os_char *gameinfo_gamedir; /* Absolute path to game directory */
extern const char *gameinfo_title; /* Name of the game (window title) */
-extern const os_char *gameinfo_clientlib; /* Absolute path to the client lib */
-extern const os_char *gameinfo_serverlib; /* Absolute path to the server lib */
-/*
- * This function is called early in the plugin load and does a whole bunch of
- * spaghetti magic to figure out which game/engine we're in and where its
- * libraries (which we want to hook) are located.
- */
+/* Called early in plugin initialisation to set up the variables above. */
bool gameinfo_init(void);
#endif