summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem/fsp/fs_i_file.h
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2024-01-05 05:23:58 +0100
committerLiam <byteslice@airmail.cc>2024-01-25 22:40:42 +0100
commit06fb7f90da0b465e723a562134c12b513aa77dff (patch)
treea256bbe22aa4c2a6704f41eb22b3d2cfba0fed72 /src/core/hle/service/filesystem/fsp/fs_i_file.h
parentMerge pull request #12759 from liamwhite/mp-misc (diff)
downloadyuzu-06fb7f90da0b465e723a562134c12b513aa77dff.tar
yuzu-06fb7f90da0b465e723a562134c12b513aa77dff.tar.gz
yuzu-06fb7f90da0b465e723a562134c12b513aa77dff.tar.bz2
yuzu-06fb7f90da0b465e723a562134c12b513aa77dff.tar.lz
yuzu-06fb7f90da0b465e723a562134c12b513aa77dff.tar.xz
yuzu-06fb7f90da0b465e723a562134c12b513aa77dff.tar.zst
yuzu-06fb7f90da0b465e723a562134c12b513aa77dff.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/filesystem/fsp/fs_i_file.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/fsp/fs_i_file.h b/src/core/hle/service/filesystem/fsp/fs_i_file.h
new file mode 100644
index 000000000..a7eb1a1e9
--- /dev/null
+++ b/src/core/hle/service/filesystem/fsp/fs_i_file.h
@@ -0,0 +1,26 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/file_sys/vfs.h"
+#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/service.h"
+
+namespace Service::FileSystem {
+
+class IFile final : public ServiceFramework<IFile> {
+public:
+ explicit IFile(Core::System& system_, FileSys::VirtualFile backend_);
+
+private:
+ FileSys::VirtualFile backend;
+
+ void Read(HLERequestContext& ctx);
+ void Write(HLERequestContext& ctx);
+ void Flush(HLERequestContext& ctx);
+ void SetSize(HLERequestContext& ctx);
+ void GetSize(HLERequestContext& ctx);
+};
+
+} // namespace Service::FileSystem