Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int minhtree = 0;
- int maxhtree = 0;
- std::string getGameName(const std::string &game_path)
- {
- std::string conf_path = game_path + DIR_DELIM + "game.conf";
- Settings conf;
- bool succeeded = conf.readConfigFile(conf_path.c_str());
- if(!succeeded)
- return "";
- if(!conf.exists("name"))
- return "";
- /*
- Get Tree size
- */
- if(!conf.exists("treehmin"))
- minhtree = 4;
- else
- minhtree = atoi(conf.get("treehmin").c_str());
- if(!conf.exists("treehmax"))
- maxhtree = 5;
- else
- maxhtree = atoi(conf.get("treehmax").c_str());;
- return conf.get("name");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement