Renaming xe::fs to xe::filesystem and xe::kernel::fs to xe::vfs.
Progress on #294.
This commit is contained in:
@@ -7,14 +7,12 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "xenia/base/fs.h"
|
||||
#include "xenia/base/filesystem.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
namespace xe {
|
||||
namespace fs {
|
||||
namespace filesystem {
|
||||
|
||||
std::string CanonicalizePath(const std::string& original_path) {
|
||||
char path_sep('\\');
|
||||
@@ -178,5 +176,5 @@ bool WildcardEngine::Match(const std::string& str) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace fs
|
||||
} // namespace filesystem
|
||||
} // namespace xe
|
||||
@@ -7,18 +7,17 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_BASE_FS_H_
|
||||
#define XENIA_BASE_FS_H_
|
||||
#ifndef XENIA_BASE_FILESYSTEM_H_
|
||||
#define XENIA_BASE_FILESYSTEM_H_
|
||||
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "xenia/base/string.h"
|
||||
|
||||
#include <vector>
|
||||
#include <iterator>
|
||||
|
||||
namespace xe {
|
||||
namespace fs {
|
||||
namespace filesystem {
|
||||
|
||||
bool PathExists(const std::wstring& path);
|
||||
|
||||
@@ -73,7 +72,7 @@ class WildcardEngine {
|
||||
void PreparePattern(const std::string& pattern);
|
||||
};
|
||||
|
||||
} // namespace fs
|
||||
} // namespace filesystem
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_BASE_FS_H_
|
||||
#endif // XENIA_BASE_FILESYSTEM_H_
|
||||
@@ -7,7 +7,7 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "xenia/base/fs.h"
|
||||
#include "xenia/base/filesystem.h"
|
||||
|
||||
#include <shellapi.h>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "xenia/base/platform.h"
|
||||
|
||||
namespace xe {
|
||||
namespace fs {
|
||||
namespace filesystem {
|
||||
|
||||
bool PathExists(const std::wstring& path) {
|
||||
DWORD attrib = GetFileAttributes(path.c_str());
|
||||
@@ -73,5 +73,5 @@ std::vector<FileInfo> ListFiles(const std::wstring& path) {
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace fs
|
||||
} // namespace filesystem
|
||||
} // namespace xe
|
||||
Reference in New Issue
Block a user