mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 20:26:23 +01:00
Add live_textures_reload command
This commit is contained in:
@@ -297,6 +297,11 @@ std::string ResourceManager::getRealDir(const std::string& path)
|
||||
return dir;
|
||||
}
|
||||
|
||||
std::string ResourceManager::getRealPath(const std::string& path)
|
||||
{
|
||||
return getRealDir(path) + "/" + path;
|
||||
}
|
||||
|
||||
std::string ResourceManager::getBaseDir()
|
||||
{
|
||||
return PHYSFS_getBaseDir();
|
||||
@@ -320,3 +325,8 @@ bool ResourceManager::isFileType(const std::string& filename, const std::string&
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
ticks_t ResourceManager::getFileTime(const std::string& filename)
|
||||
{
|
||||
return g_platform.getFileModificationTime(getRealPath(filename));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user