| 566 | } |
| 567 | |
| 568 | std::string GSDK::getLogsDirectory() |
| 569 | { |
| 570 | std::lock_guard<std::mutex> lock(GSDKInternal::get().m_configMutex); |
| 571 | |
| 572 | const std::unordered_map<std::string, std::string>& config = GSDKInternal::get().m_configSettings; |
| 573 | auto it = config.find(GSDK::LOG_FOLDER_KEY); |
| 574 | |
| 575 | if (it == config.end()) |
| 576 | { |
| 577 | return ""; |
| 578 | } |
| 579 | else |
| 580 | { |
| 581 | return it->second; |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | std::string GSDK::getSharedContentDirectory() |
| 586 | { |