mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 04:35:24 -06:00
clang
This commit is contained in:
parent
e6662e303e
commit
cfb77f33ac
@ -102,7 +102,6 @@ public:
|
||||
File* GetResolver(int d);
|
||||
File* GetFile(const std::filesystem::path& host_name);
|
||||
|
||||
|
||||
private:
|
||||
std::vector<File*> m_files;
|
||||
std::mutex m_mutex;
|
||||
|
||||
@ -2,8 +2,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "host_io_posix.h"
|
||||
#include "host_io_virtual.h"
|
||||
#include "host_io_win32.h"
|
||||
@ -17,7 +15,7 @@ using HostVIO = HostIODriver::HostIO_Virtual;
|
||||
#ifdef __linux__
|
||||
using HostIO = HostIODriver::HostIO_POSIX;
|
||||
#elif _WIN32
|
||||
//#error Contributors needed
|
||||
// #error Contributors needed
|
||||
using HostIO = HostIODriver::HostIO_Win32;
|
||||
#else
|
||||
#warning This architecture isn't supported by HostIO
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
#include "core/file_sys/quasifs/quasi_types.h"
|
||||
#include "core/file_sys/quasifs/quasi_sys_fcntl.h"
|
||||
#include "core/file_sys/quasifs/quasi_types.h"
|
||||
#include "core/libraries/kernel/file_system.h"
|
||||
#include "src/host_io_base.h"
|
||||
|
||||
@ -86,7 +86,7 @@ public:
|
||||
int Link(const fs::path& src, const fs::path& dst) override;
|
||||
int Unlink(const fs::path& path) override;
|
||||
int LinkSymbolic(const fs::path& src, const fs::path& dst) override;
|
||||
|
||||
|
||||
int Flush(const int fd) override;
|
||||
int FSync(const int fd) override;
|
||||
u64 LSeek(const int fd, u64 offset, QuasiFS::SeekOrigin origin) override;
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "core/libraries/kernel/file_system.h"
|
||||
#include "core/file_sys/quasifs/quasi_types.h"
|
||||
#include "core/libraries/kernel/file_system.h"
|
||||
#include "src/host_io_base.h"
|
||||
|
||||
namespace HostIODriver {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
// INAA License @marecl 2025
|
||||
|
||||
|
||||
#include "common/logging/log.h"
|
||||
|
||||
#include "../host_io_win32.h"
|
||||
@ -10,8 +9,6 @@ namespace HostIODriver {
|
||||
HostIO_Win32::HostIO_Win32() = default;
|
||||
HostIO_Win32::~HostIO_Win32() = default;
|
||||
|
||||
|
||||
|
||||
int HostIO_Win32::Creat(const fs::path& path, u16 mode) {
|
||||
LOG_ERROR(Kernel_Fs, "Stub called in HostIO_Base: {}:{}", __FILE__, __LINE__);
|
||||
return -38;
|
||||
|
||||
@ -50,7 +50,8 @@ bool AvPlayerSource::Init(const AvPlayerInitData& init_data, std::string_view pa
|
||||
std::filesystem::path filepath{};
|
||||
qfs->GetHostPath(filepath, path);
|
||||
// may get funky with char/wchar path on *dows
|
||||
if (AVPLAYER_IS_ERROR(avformat_open_input(&context, filepath.string().c_str(), nullptr, nullptr))) {
|
||||
if (AVPLAYER_IS_ERROR(
|
||||
avformat_open_input(&context, filepath.string().c_str(), nullptr, nullptr))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,6 @@
|
||||
#include "common/scope_exit.h"
|
||||
#include "common/singleton.h"
|
||||
|
||||
#include "core/file_sys/fs.h"
|
||||
#include "core/file_sys/devices/console_device.h"
|
||||
#include "core/file_sys/devices/deci_tty6_device.h"
|
||||
#include "core/file_sys/devices/logger.h"
|
||||
@ -21,6 +20,7 @@
|
||||
#include "core/file_sys/devices/srandom_device.h"
|
||||
#include "core/file_sys/directories/normal_directory.h"
|
||||
#include "core/file_sys/directories/pfs_directory.h"
|
||||
#include "core/file_sys/fs.h"
|
||||
|
||||
#include "core/libraries/kernel/file_system.h"
|
||||
#include "core/libraries/kernel/orbis_error.h"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user