rpcsx/rpcsx-os/vfs.hpp

17 lines
434 B
C++
Raw Normal View History

2023-06-23 02:28:14 +02:00
#pragma once
#include "orbis/error/SysResult.hpp"
#include "orbis/utils/Rc.hpp"
#include <filesystem>
struct IoDevice;
struct IoDeviceInstance;
namespace rx::vfs {
void initialize();
void deinitialize();
orbis::SysResult mount(const std::filesystem::path &guestPath, IoDevice *dev);
orbis::SysResult open(std::string_view path, int flags, int mode,
orbis::Ref<IoDeviceInstance> *instance);
} // namespace vfs