refactored the parameter (saver/setting) system

This commit is contained in:
Zeno Rogue committed 2024-05-26 20:22:29 +02:00
1 parent a80a73458a
commit 1c74774bfa
15 files changed
+657 -778

No files matched your search

+3
View File
@@ -445,6 +445,8 @@ EX hookset<int()> hooks_args;
EX map<string, pair<int, reaction_t>> *added_commands;
EX bool delayed_start;
EX namespace arg {
int read_added_commands() {
@@ -477,6 +479,7 @@ EX namespace arg {
void read(int phase) {
curphase = phase;
callhooks(hooks_config);
dynamicval<bool> ds(delayed_start, true);
while(pos < isize(argument)) {
int r = callhandlers(1, hooks_args);
switch (r) {