iw4x-client/src/Utils/Cache.hpp
2017-01-20 14:37:52 +01:00

18 lines
383 B
C++

#pragma once
namespace Utils
{
class Cache
{
public:
static std::string GetStaticUrl(std::string path);
static std::string GetFile(std::string path, int timeout = 5000, std::string useragent = "IW4x");
private:
static std::mutex CacheMutex;
static const char* Urls[];
static std::string ValidUrl;
static std::string GetUrl(std::string url, std::string path);
};
}