Fixing most clang-format errors.
This commit is contained in:
@@ -64,8 +64,7 @@ X_STATUS DiscImageEntry::QueryDirectory(XDirectoryInfo* out_info, size_t length,
|
||||
if (!entry) {
|
||||
return X_STATUS_NO_SUCH_FILE;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (restart) {
|
||||
it_ = gdfx_entry_->children.begin();
|
||||
}
|
||||
|
||||
@@ -18,9 +18,7 @@ namespace fs {
|
||||
|
||||
HostPathFile::HostPathFile(KernelState* kernel_state, Mode mode,
|
||||
HostPathEntry* entry, HANDLE file_handle)
|
||||
: entry_(entry),
|
||||
file_handle_(file_handle),
|
||||
XFile(kernel_state, mode) {}
|
||||
: entry_(entry), file_handle_(file_handle), XFile(kernel_state, mode) {}
|
||||
|
||||
HostPathFile::~HostPathFile() {
|
||||
CloseHandle(file_handle_);
|
||||
|
||||
@@ -39,7 +39,7 @@ int STFSContainerDevice::Init() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
//stfs_->Dump();
|
||||
// stfs_->Dump();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ X_STATUS STFSContainerEntry::QueryDirectory(XDirectoryInfo* out_info,
|
||||
|
||||
STFSEntry* entry(nullptr);
|
||||
|
||||
if( file_name != nullptr ) {
|
||||
if (file_name != nullptr) {
|
||||
// Only queries in the current directory are supported for now
|
||||
assert_true(std::strchr(file_name, '\\') == nullptr);
|
||||
|
||||
|
||||
@@ -30,9 +30,7 @@ Entry::Entry(Device* device, const std::string& path)
|
||||
|
||||
Entry::~Entry() = default;
|
||||
|
||||
bool Entry::is_read_only() const {
|
||||
return device_->is_read_only();
|
||||
}
|
||||
bool Entry::is_read_only() const { return device_->is_read_only(); }
|
||||
|
||||
} // namespace fs
|
||||
} // namespace kernel
|
||||
|
||||
@@ -39,8 +39,7 @@ class FileSystem {
|
||||
|
||||
int RegisterDevice(const std::string& path, Device* device);
|
||||
int RegisterHostPathDevice(const std::string& path,
|
||||
const std::wstring& local_path,
|
||||
bool read_only);
|
||||
const std::wstring& local_path, bool read_only);
|
||||
int RegisterDiscImageDevice(const std::string& path,
|
||||
const std::wstring& local_path);
|
||||
int RegisterSTFSContainerDevice(const std::string& path,
|
||||
|
||||
Reference in New Issue
Block a user