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 237 of file C4Config.h.

Member Function Documentation

void C4ConfigSecurity::CompileFunc ( StdCompiler pComp)

Definition at line 208 of file C4Config.cpp.

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

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

Here is the call graph for this function:

Member Data Documentation

char C4ConfigSecurity::KeyPath[CFG_MaxString+1]

Definition at line 240 of file C4Config.h.

Referenced by CompileFunc().

int32_t C4ConfigSecurity::WasRegistered

Definition at line 241 of file C4Config.h.

Referenced by CompileFunc().


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