mirror of
https://github.com/edubart/otclient.git
synced 2025-10-21 06:53:27 +02:00
Many UI improvements and minor fixes
This commit is contained in:
@@ -311,3 +311,9 @@ std::string ResourceManager::getBaseDir()
|
||||
return buffer;
|
||||
}
|
||||
|
||||
std::string ResourceManager::guessFileType(const std::string& filename, const std::string& type)
|
||||
{
|
||||
if(g_resources.fileExists(filename))
|
||||
return filename;
|
||||
return filename + "." + type;
|
||||
}
|
@@ -70,6 +70,8 @@ public:
|
||||
std::string getWorkDir() { return m_workDir; }
|
||||
std::deque<std::string> getSearchPaths() { return m_searchPaths; }
|
||||
|
||||
std::string guessFileType(const std::string& filename, const std::string& type);
|
||||
|
||||
private:
|
||||
std::string m_workDir;
|
||||
std::string m_writeDir;
|
||||
|
Reference in New Issue
Block a user