diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-06-06 22:03:57 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-06-08 20:06:12 +0200 |
commit | d5d61d18c89af3f6743b7c56774eebdfdcc87b2c (patch) | |
tree | b4299c1af7e194e9083d4de1bce382102ea46e95 /src/steam.h | |
download | OFQT-d5d61d18c89af3f6743b7c56774eebdfdcc87b2c.tar.gz OFQT-d5d61d18c89af3f6743b7c56774eebdfdcc87b2c.zip |
Release 0.1.00.1.0
Diffstat (limited to 'src/steam.h')
-rw-r--r-- | src/steam.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/steam.h b/src/steam.h new file mode 100644 index 0000000..9c24337 --- /dev/null +++ b/src/steam.h @@ -0,0 +1,47 @@ +#ifndef STEAM_H +#define STEAM_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stddef.h> +#include <stdbool.h> + +#include "fs.h" + +#ifdef _WIN32 +#define STEAM_PROC "steam.exe" +#define STEAM_BIN OS_PATH_SEP STEAM_PROC +#else +#define STEAM_PROC "steam" +#define STEAM_BIN "steam.sh" +#endif + +#define STEAM_APPID "243750" + +#ifdef _WIN32 +#define _STEAM_NAME "Steam" +#define STEAM_PGRM_64 "C:\\Program Files (x86)\\" _STEAM_NAME +#define STEAM_PGRM_86 "C:\\Program Files\\" _STEAM_NAME +// TODO check if this is the right registry path for x86 +#define REG_PATH "SOFTWARE\\Wow6432Node\\Valve\\Steam" +#else // _WIN32 +#define STEAM_DIR "/.local/share/Steam" +#define FLATPAK_DIR "/.var/app/com.valvesoftware.Steam" STEAM_DIR +#endif + +#define SOURCEMOD_DIR "steamapps" OS_PATH_SEP "sourcemods" OS_PATH_SEP +#define OPEN_FORTRESS_DIR "open_fortress" + +char* getSteamDir(); +char* getSourcemodDir(); +char* getOpenFortressDir(); +long getSteamPID(); +int runOpenFortress(); + +#ifdef __cplusplus +} +#endif + +#endif
\ No newline at end of file |