adaptations for hibernation-free world

main
Samantha Wright 2025-07-23 04:29:40 -07:00
parent 99482869f1
commit 6b616e4479
2 changed files with 9 additions and 11 deletions

View File

@ -756,15 +756,15 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
if(~fi) { if(~fi) {
integer current_status = index(activated_filters, filter); integer current_status = index(activated_filters, filter);
if(new_status && !~current_status) { if(new_status && !~current_status) {
if(activated_filters == []) { /*if(activated_filters == []) {
task_begin(session = llGenerateKey(), ""); task_begin(session = llGenerateKey(), "");
} }*/
activated_filters += filter; activated_filters += filter;
} else if(~current_status && !new_status) { } else if(~current_status && !new_status) {
activated_filters = delitem(activated_filters, current_status); /*activated_filters = delitem(activated_filters, current_status);
if(activated_filters == []) { if(activated_filters == []) {
task_end(session); task_end(session);
} }*/
if(filter == "translate" && translate_pipe != "") { if(filter == "translate" && translate_pipe != "") {
pipe_close(translate_pipe); pipe_close(translate_pipe);
@ -893,7 +893,7 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
#ifdef DEBUG #ifdef DEBUG
echo("[" + PROGRAM_NAME + "] init event"); echo("[" + PROGRAM_NAME + "] init event");
#endif #endif
list active_filters = jskeys(getdbl("vox", ["active"])); /*list active_filters = jskeys(getdbl("vox", ["active"]));
integer ai = count(active_filters); integer ai = count(active_filters);
while(ai--) { while(ai--) {
@ -906,7 +906,7 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
} }
activated_filters += filter; activated_filters += filter;
} }
} }*/
} else if(n == SIGNAL_UNKNOWN_SCRIPT) { } else if(n == SIGNAL_UNKNOWN_SCRIPT) {
echo("[" + PROGRAM_NAME + "] failed to run '" + m + "' (kernel could not find the program specified)"); echo("[" + PROGRAM_NAME + "] failed to run '" + m + "' (kernel could not find the program specified)");
} else { } else {

View File

@ -509,11 +509,9 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
} else if(n == SIGNAL_EVENT) { } else if(n == SIGNAL_EVENT) {
integer e = (integer)m; integer e = (integer)m;
if(e == EVENT_ON_REZ) { if(e == EVENT_ON_REZ) {
if(!initialized) { // with universal nonvolatility this is now very relevant:
// this should never happen, but hooking EVENT_ON_REZ is still helpful for ensuring SIGNAL_INIT is triggered anyway n = SIGNAL_INIT;
n = SIGNAL_INIT; jump restart_main;
jump restart_main;
}
} }
} else if(n == SIGNAL_UNKNOWN_SCRIPT) { } else if(n == SIGNAL_UNKNOWN_SCRIPT) {
echo("[" + PROGRAM_NAME + "] failed to run '" + m + "' (kernel could not find the program specified)"); echo("[" + PROGRAM_NAME + "] failed to run '" + m + "' (kernel could not find the program specified)");