[LINT] Linted files + Added lint job to CI

This commit is contained in:
Gliniak
2024-03-12 08:59:10 +01:00
committed by Radosław Gliński
parent e8afad8f8a
commit b9061e6292
117 changed files with 1177 additions and 883 deletions

View File

@@ -12,9 +12,9 @@
#include <time.h>
#include "xenia/xbox.h"
#include "xenia/base/string_util.h"
#include "xenia/kernel/util/xex2_info.h"
#include "xenia/xbox.h"
namespace xe {
namespace vfs {

View File

@@ -7,8 +7,8 @@
******************************************************************************
*/
#include "xenia/base/logging.h"
#include "xenia/vfs/devices/xcontent_container_device.h"
#include "xenia/base/logging.h"
#include "xenia/vfs/devices/xcontent_devices/stfs_container_device.h"
#include "xenia/vfs/devices/xcontent_devices/svod_container_device.h"

View File

@@ -16,9 +16,9 @@
#include "xenia/base/math.h"
#include "xenia/kernel/util/xex2_info.h"
#include "xenia/kernel/xam/content_manager.h"
#include "xenia/vfs/device.h"
#include "xenia/vfs/devices/stfs_xbox.h"
#include "xenia/kernel/xam/content_manager.h"
namespace xe {
namespace vfs {
@@ -71,10 +71,11 @@ class XContentContainerDevice : public Device {
};
virtual Result Read() = 0;
// Load all host files. Usually STFS is only 1 file, meanwhile SVOD is usually multiple file.
// Load all host files. Usually STFS is only 1 file, meanwhile SVOD is usually
// multiple file.
virtual Result LoadHostFiles(FILE* header_file) = 0;
// Initialize any container specific fields.
virtual void SetupContainer() { };
virtual void SetupContainer(){};
Entry* ResolvePath(const std::string_view path);
void CloseFiles();
@@ -89,7 +90,9 @@ class XContentContainerDevice : public Device {
const std::filesystem::path& GetHostPath() const { return host_path_; }
const XContentContainerHeader* GetContainerHeader() const { return header_.get(); }
const XContentContainerHeader* GetContainerHeader() const {
return header_.get();
}
std::string name_;
std::filesystem::path host_path_;

View File

@@ -18,7 +18,7 @@ namespace xe {
namespace vfs {
XContentContainerFile::XContentContainerFile(uint32_t file_access,
XContentContainerEntry* entry)
XContentContainerEntry* entry)
: File(file_access, entry), entry_(entry) {}
XContentContainerFile::~XContentContainerFile() = default;
@@ -26,8 +26,8 @@ XContentContainerFile::~XContentContainerFile() = default;
void XContentContainerFile::Destroy() { delete this; }
X_STATUS XContentContainerFile::ReadSync(void* buffer, size_t buffer_length,
size_t byte_offset,
size_t* out_bytes_read) {
size_t byte_offset,
size_t* out_bytes_read) {
if (byte_offset >= entry_->size()) {
return X_STATUS_END_OF_FILE;
}

View File

@@ -53,7 +53,7 @@ class SvodContainerDevice : public XContentContainerDevice {
Result Read() override;
Result ReadEntry(uint32_t sector, uint32_t ordinal,
XContentContainerEntry* parent);
XContentContainerEntry* parent);
void BlockToOffset(size_t sector, size_t* address, size_t* file_index) const;
Result SetLayout(FILE* header, size_t& magic_offset);