mirror of
https://github.com/edubart/otclient.git
synced 2025-12-26 17:57:11 +01:00
Add live_textures_reload command
This commit is contained in:
@@ -108,6 +108,14 @@ bool Platform::removeFile(std::string file)
|
||||
return false;
|
||||
}
|
||||
|
||||
ticks_t Platform::getFileModificationTime(std::string file)
|
||||
{
|
||||
struct stat attrib;
|
||||
if(stat(file.c_str(), &attrib) == 0)
|
||||
return attrib.st_mtime;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Platform::openUrl(std::string url)
|
||||
{
|
||||
if(url.find("http://") == std::string::npos)
|
||||
@@ -160,15 +168,5 @@ std::string Platform::getOSName()
|
||||
return std::string();
|
||||
}
|
||||
|
||||
time_t Platform::getFileModificationTime(const std::string& filename)
|
||||
{
|
||||
struct stat attrib;
|
||||
if(stat(filename.c_str(), &attrib))
|
||||
perror(filename.c_str());
|
||||
else
|
||||
return attrib.st_mtime;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user