-
Notifications
You must be signed in to change notification settings - Fork 5
/
utils.h
56 lines (39 loc) · 1.24 KB
/
utils.h
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
48
49
50
51
52
53
54
55
56
#ifndef _UTILS_H
#define _UTILS_H
/*
Steam API Interface
Developer: sk0r / Czybik
Version: v0.1 (Steam-API v015) 13th August, 2014
Contact: Czybik_Stylez@gmx.de
See readme.txt for more details
File: utils.h: Utility interface
*/
//======================================================================
bool SetAppPath(char * lpszOut);
void ConsolePrint(char * lpszFmt, ...);
//======================================================================
//======================================================================
class CNameChanger { //Changes the Steam Friends name each defined msecs permanently
private:
bool bStatus;
DWORD dwCurTimer;
DWORD dwLastTimer;
char szCurRndName[100];
ISteamFriends *pSteamFriends;
char * GetCurrentName();
char * GetName(char * game);
bool IsProcessListed(char * game);
char * oldName = NULL;
char * lastGame = "";
std::vector<std::pair<std::string, std::string>> namecombinations;
public:
CNameChanger() { bStatus = FALSE; pSteamFriends = NULL; }
~CNameChanger() { }
void SetInterface(ISteamFriends* pSteamFriends);
void ReadConfig();
void ReadNames();
bool SetStatus(bool bEnable);
VOID Think(VOID);
};
//======================================================================
#endif