From c8b89a7cadaac0e33089dfa4e68381331c6ee8a2 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 22 Dec 2022 22:23:22 -0800 Subject: [PATCH] make ep3 data index hot-reloadable --- src/ServerShell.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ServerShell.cc b/src/ServerShell.cc index c54d73d9..e8f09fce 100644 --- a/src/ServerShell.cc +++ b/src/ServerShell.cc @@ -87,7 +87,7 @@ Server commands:\n\ exit (or ctrl+d)\n\ Shut down the server.\n\ reload ...\n\ - Reload data. can be licenses, quests, functions, or programs.\n\ + Reload data. can be licenses, quests, functions, programs, or ep3.\n\ Reloading will not affect items that are in use; for example, if a client\'s\n\ license is deleted by reloading, they will not be disconnected immediately.\n\ add-license \n\ @@ -224,6 +224,10 @@ Proxy commands (these will only work when exactly one client is connected):\n\ } else if (type == "programs") { shared_ptr dfi(new DOLFileIndex("system/dol")); this->state->dol_file_index = dfi; + } else if (type == "programs") { + shared_ptr data_index(new Episode3::DataIndex( + "system/ep3", this->state->ep3_behavior_flags)); + this->state->ep3_data_index = data_index; } else { throw invalid_argument("incorrect data type"); }