summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/ivfc_archive.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/file_sys/ivfc_archive.cpp b/src/core/file_sys/ivfc_archive.cpp
index 300b95413..68c3c8b81 100644
--- a/src/core/file_sys/ivfc_archive.cpp
+++ b/src/core/file_sys/ivfc_archive.cpp
@@ -23,33 +23,33 @@ std::unique_ptr<FileBackend> IVFCArchive::OpenFile(const Path& path, const Mode
23} 23}
24 24
25bool IVFCArchive::DeleteFile(const Path& path) const { 25bool IVFCArchive::DeleteFile(const Path& path) const {
26 LOG_WARNING(Service_FS, "Attempted to delete a file from an IVFC archive (%s).", GetName().c_str()); 26 LOG_CRITICAL(Service_FS, "Attempted to delete a file from an IVFC archive (%s).", GetName().c_str());
27 return false; 27 return false;
28} 28}
29 29
30bool IVFCArchive::RenameFile(const Path& src_path, const Path& dest_path) const { 30bool IVFCArchive::RenameFile(const Path& src_path, const Path& dest_path) const {
31 LOG_WARNING(Service_FS, "Attempted to rename a file within an IVFC archive (%s).", GetName().c_str()); 31 LOG_CRITICAL(Service_FS, "Attempted to rename a file within an IVFC archive (%s).", GetName().c_str());
32 return false; 32 return false;
33} 33}
34 34
35bool IVFCArchive::DeleteDirectory(const Path& path) const { 35bool IVFCArchive::DeleteDirectory(const Path& path) const {
36 LOG_WARNING(Service_FS, "Attempted to delete a directory from an IVFC archive (%s).", GetName().c_str()); 36 LOG_CRITICAL(Service_FS, "Attempted to delete a directory from an IVFC archive (%s).", GetName().c_str());
37 return false; 37 return false;
38} 38}
39 39
40ResultCode IVFCArchive::CreateFile(const Path& path, u32 size) const { 40ResultCode IVFCArchive::CreateFile(const Path& path, u32 size) const {
41 LOG_WARNING(Service_FS, "Attempted to create a file in an IVFC archive (%s).", GetName().c_str()); 41 LOG_CRITICAL(Service_FS, "Attempted to create a file in an IVFC archive (%s).", GetName().c_str());
42 // TODO: Verify error code 42 // TODO: Verify error code
43 return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::FS, ErrorSummary::NotSupported, ErrorLevel::Permanent); 43 return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::FS, ErrorSummary::NotSupported, ErrorLevel::Permanent);
44} 44}
45 45
46bool IVFCArchive::CreateDirectory(const Path& path) const { 46bool IVFCArchive::CreateDirectory(const Path& path) const {
47 LOG_WARNING(Service_FS, "Attempted to create a directory in an IVFC archive (%s).", GetName().c_str()); 47 LOG_CRITICAL(Service_FS, "Attempted to create a directory in an IVFC archive (%s).", GetName().c_str());
48 return false; 48 return false;
49} 49}
50 50
51bool IVFCArchive::RenameDirectory(const Path& src_path, const Path& dest_path) const { 51bool IVFCArchive::RenameDirectory(const Path& src_path, const Path& dest_path) const {
52 LOG_WARNING(Service_FS, "Attempted to rename a file within an IVFC archive (%s).", GetName().c_str()); 52 LOG_CRITICAL(Service_FS, "Attempted to rename a file within an IVFC archive (%s).", GetName().c_str());
53 return false; 53 return false;
54} 54}
55 55
@@ -58,7 +58,7 @@ std::unique_ptr<DirectoryBackend> IVFCArchive::OpenDirectory(const Path& path) c
58} 58}
59 59
60ResultCode IVFCArchive::Format(const Path& path) const { 60ResultCode IVFCArchive::Format(const Path& path) const {
61 LOG_WARNING(Service_FS, "Attempted to format an IVFC archive (%s).", GetName().c_str()); 61 LOG_CRITICAL(Service_FS, "Attempted to format an IVFC archive (%s).", GetName().c_str());
62 // TODO: Verify error code 62 // TODO: Verify error code
63 return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::FS, ErrorSummary::NotSupported, ErrorLevel::Permanent); 63 return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::FS, ErrorSummary::NotSupported, ErrorLevel::Permanent);
64} 64}
@@ -72,7 +72,7 @@ size_t IVFCFile::Read(const u64 offset, const u32 length, u8* buffer) const {
72} 72}
73 73
74size_t IVFCFile::Write(const u64 offset, const u32 length, const u32 flush, const u8* buffer) const { 74size_t IVFCFile::Write(const u64 offset, const u32 length, const u32 flush, const u8* buffer) const {
75 LOG_WARNING(Service_FS, "Attempted to write to IVFC file in archive %s.", archive->GetName().c_str()); 75 LOG_CRITICAL(Service_FS, "Attempted to write to IVFC file in archive %s.", archive->GetName().c_str());
76 return 0; 76 return 0;
77} 77}
78 78
@@ -81,7 +81,7 @@ size_t IVFCFile::GetSize() const {
81} 81}
82 82
83bool IVFCFile::SetSize(const u64 size) const { 83bool IVFCFile::SetSize(const u64 size) const {
84 LOG_WARNING(Service_FS, "Attempted to set the size of an IVFC file in archive %s", archive->GetName().c_str()); 84 LOG_CRITICAL(Service_FS, "Attempted to set the size of an IVFC file in archive %s", archive->GetName().c_str());
85 return false; 85 return false;
86} 86}
87 87