feat(settings.lsl): add delete API opcode

Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
zontreck 2024-10-04 21:46:50 -07:00
parent 3855157441
commit 37895e05ad
2 changed files with 5 additions and 1 deletions

View file

@ -5,3 +5,4 @@ string OP_SETTINGS_READ = "settings_read";
string OP_SETTINGS_REQUEST = "settings_req";
string OP_SETTINGS_RESPONSE = "settings_resp";
string OP_SETTINGS_RESPONSE = "settings_empty";
string OP_SETTINGS_DELETE = "settings_del";

View file

@ -11,6 +11,9 @@ default
WriteSetting(llJsonGetValue(sMsg, ["key"]), llJsonGetValue(sMsg, ["value"]));
} else if(llJsonGetValue(sMsg, ["op"]) == OP_SETTINGS_READ) {
ReadSetting(llJsonGetValue(sMsg, ["key"]));
} else if(llJsonGetValue(sMsg, ["op"]) == OP_SETTINGS_DELETE) {
llLinksetDataDelete(llJsonGetValue(sMsg, ["key"]));
NoSetting(llJsonGetValue(sMsg, ["key"]));
}
}
}