Fix compile chain, and add final FFF version of boards

This commit is contained in:
zontreck 2024-08-13 20:31:56 -07:00
parent b1fc57b931
commit a1a93ea994
17 changed files with 421 additions and 172 deletions

View file

@ -1,4 +1,5 @@
#include "MasterFile.lsl"
#include "variables.lsl"
#include "functions.lsl"
string g_sDate;
integer g_iTotal = 0;
@ -6,7 +7,7 @@ integer g_iTotalDB;
integer g_iProcessed = 0;
GetKVP(integer iOffset)
{
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.dev/zni/SLKVPStore.php", [HTTP_METHOD,"POST", HTTP_MIMETYPE, "application/json"], llList2Json(JSON_OBJECT,["op","get","offset",iOffset])), SetDSMeta(["get", iOffset]));
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.com/zni/SLKVPStore.php", [HTTP_METHOD,"POST", HTTP_MIMETYPE, "application/json"], llList2Json(JSON_OBJECT,["op","get","offset",iOffset])), SetDSMeta(["get", iOffset]));
}
integer Percent(integer I, integer M)
@ -43,7 +44,7 @@ text(){
bootstrap()
{
llSleep(2);
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.dev/zni/SLKVPStore.php", [HTTP_METHOD,"POST", HTTP_MIMETYPE, "application/json"], llList2Json(JSON_OBJECT,["op", "get", "offset", g_iProcessed])), SetDSMeta(["download"]));
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.com/zni/SLKVPStore.php", [HTTP_METHOD,"POST", HTTP_MIMETYPE, "application/json"], llList2Json(JSON_OBJECT,["op", "get", "offset", g_iProcessed])), SetDSMeta(["download"]));
}
default
{
@ -61,7 +62,7 @@ default
listen(integer c,string n,key i,string m){
g_sDate = m;
llSay(0, "Preparing to restore date: "+g_sDate);
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.dev/zni/SLKVPStore.php", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], llList2Json(JSON_OBJECT,["op", "restore", "date", g_sDate])), SetDSMeta(["restore"]));
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.com/zni/SLKVPStore.php", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], llList2Json(JSON_OBJECT,["op", "restore", "date", g_sDate])), SetDSMeta(["restore"]));
}
http_response(key k, integer s,list m,string b){
if(HasDSRequest(k)!=-1){