Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Changed: #1153 check in working path even if RYZOM_ETC_PREFIX is defined
  2.  
  3. code/ryzom/client/src/client_cfg.cpp
  4.  
  5.  
  6.  
  7.  
  8. @@ -2176,14 +2176,17 @@
  9. defaultConfigFileName;
  10.  
  11. #elif defined(RYZOM_ETC_PREFIX)
  12. - // if RYZOM_ETC_PREFIX is defined, look for client_default.cfg over there
  13. - defaultConfigFileName = CPath::standardizePath(RYZOM_ETC_PREFIX) +
  14. - defaultConfigFileName;
  15. + // if it does not exist in the working path, try RYZOM_ETC_PREFIX
  16. + if (!CFile::isExists(defaultConfigFileName))
  17. + defaultConfigFileName = CPath::standardizePath(RYZOM_ETC_PREFIX) +
  18. + defaultConfigFileName;
  19. +
  20. +#else
  21. + // do not prepend anything, just check in the working path
  22.  
  23. #endif // RYZOM_ETC_PREFIX
  24.  
  25. - // else, client_default.cfg has to be in the working path
  26. -
  27. + // check for existance and return true if found
  28. if (CFile::isExists(defaultConfigFileName))
  29. {
  30. p_name = defaultConfigFileName;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement