OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ConfigSecurity Class Reference

#include <C4Config.h>

Public Member Functions

void CompileFunc (StdCompiler *pComp)
 

Public Attributes

char KeyPath [CFG_MaxString+1]
 
int32_t WasRegistered
 

Detailed Description

Definition at line 238 of file C4Config.h.

Member Function Documentation

void C4ConfigSecurity::CompileFunc ( StdCompiler pComp)

Definition at line 212 of file C4Config.cpp.

References KeyPath, mkNamingAdapt(), s, StdCompiler::Value(), and WasRegistered.

213 {
214  pComp->Value(mkNamingAdapt(WasRegistered, "WasRegistered", 0 ));
215 #ifdef _WIN32
216  pComp->Value(mkNamingAdapt(s(KeyPath), "KeyPath", "%APPDATA%\\" C4ENGINENAME, false, true));
217 #elif defined(__linux__)
218  pComp->Value(mkNamingAdapt(s(KeyPath), "KeyPath", "$HOME/.clonk/" C4ENGINENICK, false, true));
219 #elif defined(__APPLE__)
220  pComp->Value(mkNamingAdapt(s(KeyPath), "KeyPath", "$HOME/Library/Application Support/" C4ENGINENAME, false, true));
221 #endif
222 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void Value(const T &rStruct)
Definition: StdCompiler.h:171
char KeyPath[CFG_MaxString+1]
Definition: C4Config.h:241
int32_t WasRegistered
Definition: C4Config.h:242
#define s

Here is the call graph for this function:

Member Data Documentation

char C4ConfigSecurity::KeyPath[CFG_MaxString+1]

Definition at line 241 of file C4Config.h.

Referenced by CompileFunc().

int32_t C4ConfigSecurity::WasRegistered

Definition at line 242 of file C4Config.h.

Referenced by CompileFunc().


The documentation for this class was generated from the following files: