aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-28 04:56:14 -0400
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-28 04:56:14 -0400
commit64c91974f4455a63a025149a4ba8e2c46894bdc7 (patch)
tree3712d1c121e020e6a0eabb883f47745bbb8cd89a /src/core/core.cpp
parent1517ba02d3247a8deaad9ac493b9ad4a3deb7506 (diff)
nx2: frame-locked input replay and quieter logs
EDEN_NX2_KEY_RECORD records keyboard transitions as "f<frame>:code" against a global count of guest presents; EDEN_NX2_KEY_SCRIPT replays them on the same frames (or by seconds, as before), so a played session reproduces exactly. Debug aids: the PC/LR/SP of the first unmapped reads, NSO load addresses, EDEN_NX2_IPC_SUMMARY (request counts every 5 s), EDEN_NX2_FORCE_LOD0. Unmapped-access logging is rate limited and the per-draw/semaphore spam is demoted, so long sessions stay under the log size cap.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 06543b0833..eee91ef4fc 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -68,6 +68,8 @@
namespace Core {
+std::atomic<u64> g_nx2_present_count{};
+
FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs,
const std::string& path) {
// To account for split 00+01+etc files.