Configfile Pfad im Header eingebunden (nun aenderung an einer stell moeglich)

This commit is contained in:
@Nurullah.Damla 2019-11-21 13:00:08 +01:00
parent b39a194319
commit 2ab027c901
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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