aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_train_japan/models
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-06-07 03:53:52 -0700
committerAntumDeluge <antumdeluge@gmail.com>2017-06-07 03:53:52 -0700
commit7db4a5f039648b7f06bd8c9598f1fe84a873f6e4 (patch)
tree04ad16c728ba54aa4836fc56b82aa30b2421c034 /advtrains/advtrains_train_japan/models
parent92af0b53e57248b004115ebc50bbd2f2ec630d50 (diff)
downloadadvtrains-7db4a5f039648b7f06bd8c9598f1fe84a873f6e4.tar.gz
advtrains-7db4a5f039648b7f06bd8c9598f1fe84a873f6e4.tar.bz2
advtrains-7db4a5f039648b7f06bd8c9598f1fe84a873f6e4.zip
Replace deprecated methods:
- 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool'
Diffstat (limited to 'advtrains/advtrains_train_japan/models')
0 files changed, 0 insertions, 0 deletions
r> #include "exceptions.h" #ifdef _WIN32 // WINDOWS #define DIR_DELIM "\\" #define FILESYS_CASE_INSENSITIVE 1 #else // POSIX #define DIR_DELIM "/" #define FILESYS_CASE_INSENSITIVE 0 #endif namespace fs { struct DirListNode { std::string name; bool dir; }; std::vector<DirListNode> GetDirListing(std::string path); // Returns true if already exists bool CreateDir(std::string path); bool PathExists(std::string path); bool IsDir(std::string path); bool IsDirDelimiter(char c); // Only pass full paths to this one. True on success. // NOTE: The WIN32 version returns always true. bool RecursiveDelete(std::string path); bool DeleteSingleFileOrEmptyDirectory(std::string path); // Returns path to temp directory, can return "" on error std::string TempPath(); /* Multiplatform */ // The path itself not included void GetRecursiveSubPaths(std::string path, std::vector<std::string> &dst); // Tries to delete all, returns false if any failed bool DeletePaths(const std::vector<std::string> &paths); // Only pass full paths to this one. True on success. bool RecursiveDeleteContent(std::string path); // Create all directories on the given path that don't already exist. bool CreateAllDirs(std::string path); // Copy a regular file bool CopyFileContents(std::string source, std::string target); // Copy directory and all subdirectories // Omits files and subdirectories that start with a period bool CopyDir(std::string source, std::string target); // Check if one path is prefix of another