Guest User

Untitled

a guest
Aug 1st, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ServerModConfiguration::ServerModConfiguration(const std::string &worldpath):
  2. ModConfiguration(worldpath)
  3. {
  4. SubgameSpec gamespec = findWorldSubgame(worldpath);
  5.  
  6. // Add all game mods and all world mods
  7. addModsInPath(gamespec.gamemods_path);
  8. addModsInPath(worldpath + DIR_DELIM + "worldmods");
  9. addModsInPath(path_share + DIR_DELIM + "files");
  10.  
  11. // Load normal mods
  12. std::string worldmt = worldpath + DIR_DELIM + "world.mt";
  13. addModsFormConfig(worldmt, gamespec.addon_mods_paths);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment