iw4x-client/src/Utils/Cache.hpp
2022-12-06 13:05:03 +00:00

18 lines
359 B
C++

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