Compare commits

...

1 Commits

Author SHA1 Message Date
Morph
9ab72786d5 fsp_srv: Add a small delay to OutputAccessLogToSdCard
This simulates a delay when an entry is logged.

Fixes softlocks during loading in Xenoblade Chronicles 2 when certain DLC is enabled.
2021-06-13 02:48:59 -04:00

View File

@@ -6,6 +6,7 @@
#include <cstring>
#include <iterator>
#include <string>
#include <thread>
#include <utility>
#include <vector>
@@ -1062,6 +1063,8 @@ void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) {
auto log = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(raw.data()), raw.size());
std::this_thread::sleep_for(std::chrono::microseconds(50));
LOG_DEBUG(Service_FS, "called, log='{}'", log);
reporter.SaveFilesystemAccessReport(log_mode, std::move(log));