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