mirror of
https://github.com/edubart/otclient.git
synced 2025-12-26 17:57:11 +01:00
Platform modtime, little changes to entergame
This commit is contained in:
@@ -160,5 +160,15 @@ 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