diff options
Diffstat (limited to 'src/core/hle/service/filesystem')
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index efebb0ccc..cab44bf9c 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp | |||
| @@ -190,7 +190,7 @@ private: | |||
| 190 | return; | 190 | return; |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | const auto data = ctx.ReadBufferSpan(); | 193 | const auto data = ctx.ReadBuffer(); |
| 194 | 194 | ||
| 195 | ASSERT_MSG( | 195 | ASSERT_MSG( |
| 196 | static_cast<s64>(data.size()) <= length, | 196 | static_cast<s64>(data.size()) <= length, |
| @@ -337,7 +337,7 @@ public: | |||
| 337 | void CreateFile(Kernel::HLERequestContext& ctx) { | 337 | void CreateFile(Kernel::HLERequestContext& ctx) { |
| 338 | IPC::RequestParser rp{ctx}; | 338 | IPC::RequestParser rp{ctx}; |
| 339 | 339 | ||
| 340 | const auto file_buffer = ctx.ReadBufferSpan(); | 340 | const auto file_buffer = ctx.ReadBuffer(); |
| 341 | const std::string name = Common::StringFromBuffer(file_buffer); | 341 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 342 | 342 | ||
| 343 | const u64 file_mode = rp.Pop<u64>(); | 343 | const u64 file_mode = rp.Pop<u64>(); |
| @@ -351,7 +351,7 @@ public: | |||
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | void DeleteFile(Kernel::HLERequestContext& ctx) { | 353 | void DeleteFile(Kernel::HLERequestContext& ctx) { |
| 354 | const auto file_buffer = ctx.ReadBufferSpan(); | 354 | const auto file_buffer = ctx.ReadBuffer(); |
| 355 | const std::string name = Common::StringFromBuffer(file_buffer); | 355 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 356 | 356 | ||
| 357 | LOG_DEBUG(Service_FS, "called. file={}", name); | 357 | LOG_DEBUG(Service_FS, "called. file={}", name); |
| @@ -361,7 +361,7 @@ public: | |||
| 361 | } | 361 | } |
| 362 | 362 | ||
| 363 | void CreateDirectory(Kernel::HLERequestContext& ctx) { | 363 | void CreateDirectory(Kernel::HLERequestContext& ctx) { |
| 364 | const auto file_buffer = ctx.ReadBufferSpan(); | 364 | const auto file_buffer = ctx.ReadBuffer(); |
| 365 | const std::string name = Common::StringFromBuffer(file_buffer); | 365 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 366 | 366 | ||
| 367 | LOG_DEBUG(Service_FS, "called. directory={}", name); | 367 | LOG_DEBUG(Service_FS, "called. directory={}", name); |
| @@ -371,7 +371,7 @@ public: | |||
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | void DeleteDirectory(Kernel::HLERequestContext& ctx) { | 373 | void DeleteDirectory(Kernel::HLERequestContext& ctx) { |
| 374 | const auto file_buffer = ctx.ReadBufferSpan(); | 374 | const auto file_buffer = ctx.ReadBuffer(); |
| 375 | const std::string name = Common::StringFromBuffer(file_buffer); | 375 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 376 | 376 | ||
| 377 | LOG_DEBUG(Service_FS, "called. directory={}", name); | 377 | LOG_DEBUG(Service_FS, "called. directory={}", name); |
| @@ -381,7 +381,7 @@ public: | |||
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | void DeleteDirectoryRecursively(Kernel::HLERequestContext& ctx) { | 383 | void DeleteDirectoryRecursively(Kernel::HLERequestContext& ctx) { |
| 384 | const auto file_buffer = ctx.ReadBufferSpan(); | 384 | const auto file_buffer = ctx.ReadBuffer(); |
| 385 | const std::string name = Common::StringFromBuffer(file_buffer); | 385 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 386 | 386 | ||
| 387 | LOG_DEBUG(Service_FS, "called. directory={}", name); | 387 | LOG_DEBUG(Service_FS, "called. directory={}", name); |
| @@ -391,7 +391,7 @@ public: | |||
| 391 | } | 391 | } |
| 392 | 392 | ||
| 393 | void CleanDirectoryRecursively(Kernel::HLERequestContext& ctx) { | 393 | void CleanDirectoryRecursively(Kernel::HLERequestContext& ctx) { |
| 394 | const auto file_buffer = ctx.ReadBufferSpan(); | 394 | const auto file_buffer = ctx.ReadBuffer(); |
| 395 | const std::string name = Common::StringFromBuffer(file_buffer); | 395 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 396 | 396 | ||
| 397 | LOG_DEBUG(Service_FS, "called. Directory: {}", name); | 397 | LOG_DEBUG(Service_FS, "called. Directory: {}", name); |
| @@ -401,8 +401,8 @@ public: | |||
| 401 | } | 401 | } |
| 402 | 402 | ||
| 403 | void RenameFile(Kernel::HLERequestContext& ctx) { | 403 | void RenameFile(Kernel::HLERequestContext& ctx) { |
| 404 | const std::string src_name = Common::StringFromBuffer(ctx.ReadBufferSpan(0)); | 404 | const std::string src_name = Common::StringFromBuffer(ctx.ReadBuffer(0)); |
| 405 | const std::string dst_name = Common::StringFromBuffer(ctx.ReadBufferSpan(1)); | 405 | const std::string dst_name = Common::StringFromBuffer(ctx.ReadBuffer(1)); |
| 406 | 406 | ||
| 407 | LOG_DEBUG(Service_FS, "called. file '{}' to file '{}'", src_name, dst_name); | 407 | LOG_DEBUG(Service_FS, "called. file '{}' to file '{}'", src_name, dst_name); |
| 408 | 408 | ||
| @@ -413,7 +413,7 @@ public: | |||
| 413 | void OpenFile(Kernel::HLERequestContext& ctx) { | 413 | void OpenFile(Kernel::HLERequestContext& ctx) { |
| 414 | IPC::RequestParser rp{ctx}; | 414 | IPC::RequestParser rp{ctx}; |
| 415 | 415 | ||
| 416 | const auto file_buffer = ctx.ReadBufferSpan(); | 416 | const auto file_buffer = ctx.ReadBuffer(); |
| 417 | const std::string name = Common::StringFromBuffer(file_buffer); | 417 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 418 | 418 | ||
| 419 | const auto mode = static_cast<FileSys::Mode>(rp.Pop<u32>()); | 419 | const auto mode = static_cast<FileSys::Mode>(rp.Pop<u32>()); |
| @@ -437,7 +437,7 @@ public: | |||
| 437 | void OpenDirectory(Kernel::HLERequestContext& ctx) { | 437 | void OpenDirectory(Kernel::HLERequestContext& ctx) { |
| 438 | IPC::RequestParser rp{ctx}; | 438 | IPC::RequestParser rp{ctx}; |
| 439 | 439 | ||
| 440 | const auto file_buffer = ctx.ReadBufferSpan(); | 440 | const auto file_buffer = ctx.ReadBuffer(); |
| 441 | const std::string name = Common::StringFromBuffer(file_buffer); | 441 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 442 | 442 | ||
| 443 | // TODO(Subv): Implement this filter. | 443 | // TODO(Subv): Implement this filter. |
| @@ -460,7 +460,7 @@ public: | |||
| 460 | } | 460 | } |
| 461 | 461 | ||
| 462 | void GetEntryType(Kernel::HLERequestContext& ctx) { | 462 | void GetEntryType(Kernel::HLERequestContext& ctx) { |
| 463 | const auto file_buffer = ctx.ReadBufferSpan(); | 463 | const auto file_buffer = ctx.ReadBuffer(); |
| 464 | const std::string name = Common::StringFromBuffer(file_buffer); | 464 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 465 | 465 | ||
| 466 | LOG_DEBUG(Service_FS, "called. file={}", name); | 466 | LOG_DEBUG(Service_FS, "called. file={}", name); |
| @@ -501,7 +501,7 @@ public: | |||
| 501 | } | 501 | } |
| 502 | 502 | ||
| 503 | void GetFileTimeStampRaw(Kernel::HLERequestContext& ctx) { | 503 | void GetFileTimeStampRaw(Kernel::HLERequestContext& ctx) { |
| 504 | const auto file_buffer = ctx.ReadBufferSpan(); | 504 | const auto file_buffer = ctx.ReadBuffer(); |
| 505 | const std::string name = Common::StringFromBuffer(file_buffer); | 505 | const std::string name = Common::StringFromBuffer(file_buffer); |
| 506 | 506 | ||
| 507 | LOG_WARNING(Service_FS, "(Partial Implementation) called. file={}", name); | 507 | LOG_WARNING(Service_FS, "(Partial Implementation) called. file={}", name); |
| @@ -1083,7 +1083,7 @@ void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) { | |||
| 1083 | } | 1083 | } |
| 1084 | 1084 | ||
| 1085 | void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) { | 1085 | void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) { |
| 1086 | const auto raw = ctx.ReadBufferSpan(); | 1086 | const auto raw = ctx.ReadBuffer(); |
| 1087 | auto log = Common::StringFromFixedZeroTerminatedBuffer( | 1087 | auto log = Common::StringFromFixedZeroTerminatedBuffer( |
| 1088 | reinterpret_cast<const char*>(raw.data()), raw.size()); | 1088 | reinterpret_cast<const char*>(raw.data()), raw.size()); |
| 1089 | 1089 | ||