iw4x-client/src/Utils/Cache.hpp

18 lines
359 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2016-11-21 04:50:55 -05:00
namespace Utils
{
class Cache
{
public:
2022-12-06 08:05:03 -05:00
static const char* Urls[];
static std::string GetUrl(const std::string& url, const std::string& path);
2018-12-17 08:29:18 -05:00
static std::string GetFile(const std::string& path, int timeout = 5000, const std::string& useragent = "IW4x");
2016-11-21 04:50:55 -05:00
2016-11-21 05:09:42 -05:00
private:
static std::mutex CacheMutex;
static std::string ValidUrl;
2016-11-21 04:50:55 -05:00
};
}