OpenClonk
C4ConfigSecurity Class Reference

#include <C4Config.h>

Public Member Functions

void CompileFunc (StdCompiler *compiler)
 

Public Attributes

char KeyPath [CFG_MaxString+1]
 
int32_t WasRegistered
 

Detailed Description

Definition at line 241 of file C4Config.h.

Member Function Documentation

◆ CompileFunc()

void C4ConfigSecurity::CompileFunc ( StdCompiler compiler)

Definition at line 219 of file C4Config.cpp.

220 {
221  compiler->Value(mkNamingAdapt(WasRegistered, "WasRegistered", 0 ));
222 #ifdef _WIN32
223  compiler->Value(mkNamingAdapt(s(KeyPath), "KeyPath", R"(%APPDATA%\)" C4ENGINENAME, false, true));
224 #elif defined(__linux__)
225  compiler->Value(mkNamingAdapt(s(KeyPath), "KeyPath", "$HOME/.clonk/" C4ENGINENICK, false, true));
226 #elif defined(__APPLE__)
227  compiler->Value(mkNamingAdapt(s(KeyPath), "KeyPath", "$HOME/Library/Application Support/" C4ENGINENAME, false, true));
228 #endif
229 }
#define s
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
char KeyPath[CFG_MaxString+1]
Definition: C4Config.h:244
int32_t WasRegistered
Definition: C4Config.h:245
void Value(const T &rStruct)
Definition: StdCompiler.h:161

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

Here is the call graph for this function:

Member Data Documentation

◆ KeyPath

char C4ConfigSecurity::KeyPath[CFG_MaxString+1]

Definition at line 244 of file C4Config.h.

Referenced by CompileFunc().

◆ WasRegistered

int32_t C4ConfigSecurity::WasRegistered

Definition at line 245 of file C4Config.h.

Referenced by CompileFunc().


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