iw4x-client/src/Utils/Cache.hpp

18 lines
359 B
C++
Raw Normal View History

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