mirror of
https://github.com/edubart/otclient.git
synced 2025-12-27 10:07:11 +01:00
Refactoring and flexibility changes
* Split game module into game and game_interface * Move core_lib to corelib * Move miniwindow to corelib * Introduce init.lua script for initializing the client, giving much more flexibility * OTClient is no longer Application derived and is much simpler
This commit is contained in:
@@ -31,6 +31,7 @@ public:
|
||||
void init(const char *argv0);
|
||||
void terminate();
|
||||
|
||||
void discoverWorkDir(const std::string& appName, const std::string& existentFile);
|
||||
bool setupWriteDir(const std::string& appWriteDirName);
|
||||
|
||||
bool addToSearchPath(const std::string& path, bool insertInFront = true);
|
||||
@@ -55,7 +56,13 @@ public:
|
||||
std::list<std::string> listDirectoryFiles(const std::string& directoryPath = "");
|
||||
|
||||
std::string resolvePath(const std::string& path);
|
||||
std::string getRealDir(const std::string& path);
|
||||
std::string getBaseDir();
|
||||
std::string getWorkDir() { return m_workDir; }
|
||||
|
||||
private:
|
||||
std::string m_workDir;
|
||||
Boolean<false> m_hasSearchPath;
|
||||
};
|
||||
|
||||
extern ResourceManager g_resources;
|
||||
|
||||
Reference in New Issue
Block a user