diff options
| author | 2014-10-07 19:44:13 -0400 | |
|---|---|---|
| committer | 2014-10-07 19:44:13 -0400 | |
| commit | a171000cbec1dbae4e5c0c34ea1d7ef1b4313164 (patch) | |
| tree | a6bc766749aabd4eb8df276749fe51db49ee7030 /src/common/file_util.h | |
| parent | Merge pull request #129 from linkmauve/master (diff) | |
| parent | Added configuration file system. (diff) | |
| download | yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.gz yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.xz yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.zip | |
Merge pull request #108 from archshift/config
Configuration files
Diffstat (limited to 'src/common/file_util.h')
| -rw-r--r-- | src/common/file_util.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h index 288734cad..173ce6623 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h | |||
| @@ -48,7 +48,7 @@ enum { | |||
| 48 | namespace FileUtil | 48 | namespace FileUtil |
| 49 | { | 49 | { |
| 50 | 50 | ||
| 51 | // FileSystem tree node/ | 51 | // FileSystem tree node/ |
| 52 | struct FSTEntry | 52 | struct FSTEntry |
| 53 | { | 53 | { |
| 54 | bool isDirectory; | 54 | bool isDirectory; |
| @@ -86,13 +86,13 @@ bool Delete(const std::string &filename); | |||
| 86 | // Deletes a directory filename, returns true on success | 86 | // Deletes a directory filename, returns true on success |
| 87 | bool DeleteDir(const std::string &filename); | 87 | bool DeleteDir(const std::string &filename); |
| 88 | 88 | ||
| 89 | // renames file srcFilename to destFilename, returns true on success | 89 | // renames file srcFilename to destFilename, returns true on success |
| 90 | bool Rename(const std::string &srcFilename, const std::string &destFilename); | 90 | bool Rename(const std::string &srcFilename, const std::string &destFilename); |
| 91 | 91 | ||
| 92 | // copies file srcFilename to destFilename, returns true on success | 92 | // copies file srcFilename to destFilename, returns true on success |
| 93 | bool Copy(const std::string &srcFilename, const std::string &destFilename); | 93 | bool Copy(const std::string &srcFilename, const std::string &destFilename); |
| 94 | 94 | ||
| 95 | // creates an empty file filename, returns true on success | 95 | // creates an empty file filename, returns true on success |
| 96 | bool CreateEmptyFile(const std::string &filename); | 96 | bool CreateEmptyFile(const std::string &filename); |
| 97 | 97 | ||
| 98 | // Scans the directory tree gets, starting from _Directory and adds the | 98 | // Scans the directory tree gets, starting from _Directory and adds the |
| @@ -111,7 +111,7 @@ void CopyDir(const std::string &source_path, const std::string &dest_path); | |||
| 111 | // Set the current directory to given directory | 111 | // Set the current directory to given directory |
| 112 | bool SetCurrentDir(const std::string &directory); | 112 | bool SetCurrentDir(const std::string &directory); |
| 113 | 113 | ||
| 114 | // Returns a pointer to a string with a Dolphin data dir in the user's home | 114 | // Returns a pointer to a string with a Citra data dir in the user's home |
| 115 | // directory. To be used in "multi-user" mode (that is, installed). | 115 | // directory. To be used in "multi-user" mode (that is, installed). |
| 116 | const std::string& GetUserPath(const unsigned int DirIDX, const std::string &newPath=""); | 116 | const std::string& GetUserPath(const unsigned int DirIDX, const std::string &newPath=""); |
| 117 | 117 | ||
| @@ -153,10 +153,10 @@ public: | |||
| 153 | IOFile(const std::string& filename, const char openmode[]); | 153 | IOFile(const std::string& filename, const char openmode[]); |
| 154 | 154 | ||
| 155 | ~IOFile(); | 155 | ~IOFile(); |
| 156 | 156 | ||
| 157 | IOFile(IOFile&& other); | 157 | IOFile(IOFile&& other); |
| 158 | IOFile& operator=(IOFile&& other); | 158 | IOFile& operator=(IOFile&& other); |
| 159 | 159 | ||
| 160 | void Swap(IOFile& other); | 160 | void Swap(IOFile& other); |
| 161 | 161 | ||
| 162 | bool Open(const std::string& filename, const char openmode[]); | 162 | bool Open(const std::string& filename, const char openmode[]); |