add file caches in non-server ServerState constructor

This commit is contained in:
Martin Michelsen
2025-02-20 22:31:39 -08:00
parent d9744a696e
commit 2cd4e5cf27
+4 -1
View File
@@ -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<struct event_base> base, const string& config_filename, bool is_replay)
: creation_time(phosg::now()),