delete unnecessary file caches

This commit is contained in:
Martin Michelsen
2026-05-25 07:58:39 -07:00
parent b8efd730f9
commit b59dde53b2
5 changed files with 12 additions and 56 deletions
+2 -2
View File
@@ -3320,8 +3320,8 @@ static asio::awaitable<void> on_D7_GC(shared_ptr<Client> c, Channel::Message& ms
} else {
try {
auto s = c->require_server_state();
auto f = s->gba_files_cache->get_or_load("system/gba/" + filename).file;
send_open_quest_file(c, "", filename, "", 0, QuestFileType::GBA_DEMO, f->data);
auto data = std::make_shared<std::string>(phosg::load_file("system/gba/" + filename));
send_open_quest_file(c, "", filename, "", 0, QuestFileType::GBA_DEMO, data);
} catch (const out_of_range&) {
send_command(c, 0xD7, 0x00);
} catch (const phosg::cannot_open_file&) {