[Cache] Refactored Cache::GetUrl
- renamed GetUrl() to GetStaticUrl()
This commit is contained in:
@ -12,9 +12,9 @@ namespace Utils
|
||||
std::string Cache::ValidUrl;
|
||||
std::mutex Cache::CacheMutex;
|
||||
|
||||
std::string Cache::GetUrl(std::string path)
|
||||
std::string Cache::GetStaticUrl(std::string path)
|
||||
{
|
||||
return Cache::Urls[ARRAY_SIZE(Cache::Urls) - 1] + path;
|
||||
return Cache::Urls[0] + path;
|
||||
}
|
||||
|
||||
std::string Cache::GetUrl(std::string url, std::string path)
|
||||
|
@ -3,7 +3,7 @@ namespace Utils
|
||||
class Cache
|
||||
{
|
||||
public:
|
||||
static std::string GetUrl(std::string path);
|
||||
static std::string GetStaticUrl(std::string path);
|
||||
static std::string GetFile(std::string path, int timeout = 5000, std::string useragent = "IW4x");
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user