blob: 9c243375ed9f0a9b9eff9d64a57dbc80d2f643d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
|