From 2cd4e5cf27994166e82331824df0c1f928fae5da Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 20 Feb 2025 22:31:39 -0800 Subject: [PATCH] add file caches in non-server ServerState constructor --- src/ServerState.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ServerState.cc b/src/ServerState.cc index f4542836..b92e23a9 100644 --- a/src/ServerState.cc +++ b/src/ServerState.cc @@ -66,7 +66,10 @@ ServerState::QuestF960Result::QuestF960Result(const phosg::JSON& json, shared_pt ServerState::ServerState(const string& config_filename) : creation_time(phosg::now()), - config_filename(config_filename) {} + config_filename(config_filename), + bb_stream_files_cache(new FileContentsCache(3600000000ULL)), + bb_system_cache(new FileContentsCache(3600000000ULL)), + gba_files_cache(new FileContentsCache(3600000000ULL)) {} ServerState::ServerState(shared_ptr base, const string& config_filename, bool is_replay) : creation_time(phosg::now()),