mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
b5daa24982
* AI libs registering shenanigans on android; * Fixed resolution aspect + mouse event scaling; * Proper server init/deinit (through android IPC); Enabled threaded init in CMT; * Prevented a deadlock in logger on some devices; * Fixed frozen intro frame after interrupting the video; Added android progressbar displaying during initial data loading; * Hacky fix for choppy animations during heroes movement (should look better now, but it's definitely not a good solution); * Changes/fixes for new android launcher building process; * Fixed app hang after getting SDL_QUIT when activity was destroyed; * Functioanal, configurable advmap swiping support; * VCMI changes cleanup; Added few missing VCMI_ANDROID guards on swipe mechanics; * Removed unneeded sleep in server startup code for android; * Removed android ioapi hack (fixed in newest ndk); * Removed unused android's library loading logic; * Added android's swipe option to settings schema; * Moved NO_STD_TOSTRING to be defined in global.h instead of build files;
64 lines
2.3 KiB
C++
64 lines
2.3 KiB
C++
/*
|
|
* VCMIDirs.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
class DLL_LINKAGE IVCMIDirs
|
|
{
|
|
public:
|
|
// Path to user-specific data directory
|
|
virtual boost::filesystem::path userDataPath() const = 0;
|
|
|
|
// Path to "cache" directory, can be used for any non-essential files
|
|
virtual boost::filesystem::path userCachePath() const = 0;
|
|
|
|
// Path to writeable directory with user configs
|
|
virtual boost::filesystem::path userConfigPath() const = 0;
|
|
|
|
// Path to saved games
|
|
virtual boost::filesystem::path userSavePath() const;
|
|
|
|
// Paths to global system-wide data directories. First items have higher priority
|
|
virtual std::vector<boost::filesystem::path> dataPaths() const = 0;
|
|
|
|
// Full path to client executable, including server name (e.g. /usr/bin/vcmiclient)
|
|
virtual boost::filesystem::path clientPath() const = 0;
|
|
|
|
// Full path to server executable, including server name (e.g. /usr/bin/vcmiserver)
|
|
virtual boost::filesystem::path serverPath() const = 0;
|
|
|
|
// Path where vcmi libraries can be found (in AI and Scripting subdirectories)
|
|
virtual boost::filesystem::path libraryPath() const = 0;
|
|
|
|
// absolute path to passed library (needed due to android libs being placed in single dir, not respecting original lib dirs;
|
|
// by default just concats libraryPath, given folder and libraryName
|
|
virtual boost::filesystem::path fullLibraryPath(const std::string & desiredFolder,
|
|
const std::string & baseLibName) const;
|
|
|
|
// Path where vcmi binaries can be found
|
|
virtual boost::filesystem::path binaryPath() const = 0;
|
|
|
|
// Returns system-specific name for dynamic libraries ( StupidAI => "libStupidAI.so" or "StupidAI.dll")
|
|
virtual std::string libraryName(const std::string & basename) const = 0;
|
|
// virtual std::string libraryName(const char* basename) const = 0; ?
|
|
// virtual std::string libraryName(std::string&& basename) const = 0;?
|
|
|
|
virtual std::string genHelpString() const = 0;
|
|
|
|
// Creates not existed, but required directories.
|
|
// Updates directories what change name/path between versions.
|
|
// Function called automatically.
|
|
virtual void init();
|
|
};
|
|
|
|
namespace VCMIDirs
|
|
{
|
|
extern DLL_LINKAGE const IVCMIDirs & get();
|
|
}
|