From 54a22a190694c0299ed816ef48d131166e8362f7 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Sat, 29 Jul 2017 19:49:56 +0300 Subject: [PATCH] FSN temporary data update (IPC) --- src/hooks/others.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index d6755906..949b3086 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -386,6 +386,13 @@ void FrameStageNotify_hook(void* _this, int stage) { } } if (stage == FRAME_START) { +#if IPC_ENABLED + static Timer ipc_timer {}; + if (ipc_timer.test_and_set(1000)) { + if (ipc::peer) + ipc::UpdateTemporaryData(); + } +#endif hacks::shared::autojoin::UpdateSearch(); if (!hack::command_stack().empty()) { PROF_SECTION(PT_command_stack);