Configfile Pfad im Header eingebunden (nun aenderung an einer stell moeglich)
This commit is contained in:
parent
b39a194319
commit
2ab027c901
|
@ -21,7 +21,7 @@ key_t changedKey()
|
|||
keyFile << newKey;
|
||||
keyFile.close();
|
||||
|
||||
auto config = cpptoml::parse_file("res/config.toml");
|
||||
auto config = cpptoml::parse_file(configFile);
|
||||
newKey = config->get_as<int>("newKey").value_or(0); //toml
|
||||
|
||||
return key_t(newKey);
|
||||
|
@ -93,7 +93,7 @@ void deleteSharedMemory(void)
|
|||
}
|
||||
|
||||
void getConfig(){
|
||||
auto config = cpptoml::parse_file("res/config.toml");
|
||||
auto config = cpptoml::parse_file(configFile);
|
||||
|
||||
int layoutVersion = config->get_as<int>("layoutVersion").value_or(0);
|
||||
int width = config->get_as<int>("width").value_or(0);
|
||||
|
|
|
@ -15,5 +15,5 @@ void initSharedMemory(void);
|
|||
key_t changedKey();
|
||||
std::string getAnswerFromUser();
|
||||
//Config File
|
||||
#define configFile "res/config.toml";
|
||||
#define configFile "res/config.toml"
|
||||
#endif //SHARED_MEMORY_H
|
||||
|
|
Loading…
Reference in New Issue