Clang fixes.
This commit is contained in:
@@ -18,7 +18,6 @@ HostPathFile::HostPathFile(
|
||||
KernelState* kernel_state, uint32_t file_access, HostPathEntry* entry,
|
||||
std::unique_ptr<xe::filesystem::FileHandle> file_handle)
|
||||
: XFile(kernel_state, file_access, entry),
|
||||
entry_(entry),
|
||||
file_handle_(std::move(file_handle)) {}
|
||||
|
||||
HostPathFile::~HostPathFile() = default;
|
||||
@@ -39,8 +38,8 @@ X_STATUS HostPathFile::ReadSync(void* buffer, size_t buffer_length,
|
||||
X_STATUS HostPathFile::WriteSync(const void* buffer, size_t buffer_length,
|
||||
size_t byte_offset,
|
||||
size_t* out_bytes_written) {
|
||||
if (!(file_access() & FileAccess::kFileWriteData |
|
||||
FileAccess::kFileAppendData)) {
|
||||
if (!(file_access() &
|
||||
(FileAccess::kFileWriteData | FileAccess::kFileAppendData))) {
|
||||
return X_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ class HostPathFile : public XFile {
|
||||
size_t byte_offset, size_t* out_bytes_written) override;
|
||||
|
||||
private:
|
||||
HostPathEntry* entry_;
|
||||
std::unique_ptr<xe::filesystem::FileHandle> file_handle_;
|
||||
};
|
||||
|
||||
|
||||
@@ -149,7 +149,8 @@ StfsContainerDevice::Error StfsContainerDevice::ReadAllEntries(
|
||||
break;
|
||||
}
|
||||
uint8_t filename_length_flags = xe::load_and_swap<uint8_t>(p + 0x28);
|
||||
uint32_t allocated_block_count = XEGETUINT24LE(p + 0x29);
|
||||
// TODO(benvanik): use for allocation_size_?
|
||||
// uint32_t allocated_block_count = XEGETUINT24LE(p + 0x29);
|
||||
uint32_t start_block_index = XEGETUINT24LE(p + 0x2F);
|
||||
uint16_t path_indicator = xe::load_and_swap<uint16_t>(p + 0x32);
|
||||
uint32_t file_size = xe::load_and_swap<uint32_t>(p + 0x34);
|
||||
|
||||
Reference in New Issue
Block a user