summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem/fsp_srv.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-14 05:02:53 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-09-14 14:48:01 +0200
commit8d63ebcb645476d8a1efca7957d8308e32b0353c (patch)
tree2767b5659f232f82a80191b970b014364798d7c2 /src/core/hle/service/filesystem/fsp_srv.cpp
parentMerge pull request #7009 from ameerj/main_process_cleanup (diff)
downloadyuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.tar
yuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.tar.gz
yuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.tar.bz2
yuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.tar.lz
yuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.tar.xz
yuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.tar.zst
yuzu-8d63ebcb645476d8a1efca7957d8308e32b0353c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index db4d44c12..50c788dd6 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -326,7 +326,7 @@ public:
{11, &IFileSystem::GetFreeSpaceSize, "GetFreeSpaceSize"},
{12, &IFileSystem::GetTotalSpaceSize, "GetTotalSpaceSize"},
{13, &IFileSystem::CleanDirectoryRecursively, "CleanDirectoryRecursively"},
- {14, nullptr, "GetFileTimeStampRaw"},
+ {14, &IFileSystem::GetFileTimeStampRaw, "GetFileTimeStampRaw"},
{15, nullptr, "QueryEntry"},
};
RegisterHandlers(functions);
@@ -501,6 +501,24 @@ public:
rb.Push(size.get_total_size());
}
+ void GetFileTimeStampRaw(Kernel::HLERequestContext& ctx) {
+ const auto file_buffer = ctx.ReadBuffer();
+ const std::string name = Common::StringFromBuffer(file_buffer);
+
+ LOG_WARNING(Service_FS, "(Partial Implementation) called. file={}", name);
+
+ auto result = backend.GetFileTimeStampRaw(name);
+ if (result.Failed()) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result.Code());
+ return;
+ }
+
+ IPC::ResponseBuilder rb{ctx, 10};
+ rb.Push(ResultSuccess);
+ rb.PushRaw(*result);
+ }
+
private:
VfsDirectoryServiceWrapper backend;
SizeGetter size;