From 915285a24eb138a2dd1303b3c43bd8b6b6bd7e57 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Thu, 5 Jan 2023 03:32:42 +0100 Subject: [PATCH] eventloop: sync vfs on enter --- src/eventloop/eventloop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eventloop/eventloop.c b/src/eventloop/eventloop.c index 631d574b..d605e61a 100644 --- a/src/eventloop/eventloop.c +++ b/src/eventloop/eventloop.c @@ -12,6 +12,7 @@ #include "util.h" #include "global.h" #include "video.h" +#include "vfs/public.h" struct evloop_s evloop; @@ -33,6 +34,8 @@ void eventloop_enter(void *context, LogicFrameFunc frame_logic, RenderFrameFunc frame->on_leave = on_leave; frame->frametime = HRTIME_RESOLUTION / target_fps; frame->prev_logic_action = LFRAME_WAIT; + + vfs_sync(VFS_SYNC_STORE, NO_CALLCHAIN); } void eventloop_leave(void) {