libstrat: fix compilation without pre-compiled header/without lto

This commit is contained in:
Michael Scire committed 2021-10-06 17:58:42 -07:00
1 parent 7ca83c9d3b
commit e8f1efd01b
37 files changed
+89 -33

No files matched your search

@@ -84,6 +84,8 @@ namespace ams::fs::fsa {
virtual sf::cmif::DomainObjectId GetDomainObjectId() const = 0;
protected:
Result DryRead(size_t *out, s64 offset, size_t size, const fs::ReadOption &option, OpenMode open_mode) {
AMS_UNUSED(option);
/* Check that we can read. */
R_UNLESS((open_mode & OpenMode_Read) != 0, fs::ResultReadNotPermitted());
@@ -101,11 +103,14 @@ namespace ams::fs::fsa {
R_UNLESS((open_mode & OpenMode_Write) != 0, fs::ResultWriteNotPermitted());
AMS_ASSERT(size >= 0);
AMS_UNUSED(size);
return ResultSuccess();
}
Result DryWrite(bool *out_append, s64 offset, size_t size, const fs::WriteOption &option, fs::OpenMode open_mode) {
AMS_UNUSED(option);
/* Check that we can write. */
R_UNLESS((open_mode & OpenMode_Write) != 0, fs::ResultWriteNotPermitted());