diff options
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llmessage/llqueryflags.h | 2 | ||||
-rw-r--r-- | indra/lscript/lscript_execute.h | 12 | ||||
-rw-r--r-- | indra/lscript/lscript_execute/lscript_execute.cpp | 3 | ||||
-rw-r--r-- | indra/newview/llassetuploadqueue.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llcompilequeue.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llpreviewscript.cpp | 6 | ||||
-rw-r--r-- | indra/newview/llviewermenu.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llviewerregion.cpp | 4 | ||||
-rw-r--r-- | indra/test/CMakeLists.txt | 1 |
9 files changed, 25 insertions, 9 deletions
diff --git a/indra/llmessage/llqueryflags.h b/indra/llmessage/llqueryflags.h index 9b3074edca..cb2302f9b6 100644 --- a/indra/llmessage/llqueryflags.h +++ b/indra/llmessage/llqueryflags.h @@ -38,7 +38,7 @@ const U32 DFQ_PEOPLE = 0x1 << 0; const U32 DFQ_ONLINE = 0x1 << 1; //const U32 DFQ_PLACES = 0x1 << 2; -const U32 DFQ_EVENTS = 0x1 << 3; +const U32 DFQ_EVENTS = 0x1 << 3; // This is not set by the 1.21 viewer, but I don't know about older versions. JC const U32 DFQ_GROUPS = 0x1 << 4; const U32 DFQ_DATE_EVENTS = 0x1 << 5; diff --git a/indra/lscript/lscript_execute.h b/indra/lscript/lscript_execute.h index f46256eb5e..271b53aae1 100644 --- a/indra/lscript/lscript_execute.h +++ b/indra/lscript/lscript_execute.h @@ -443,6 +443,12 @@ public: void setReset(BOOL b) {mReset = b;} BOOL getReset() const { return mReset; } + // Called when the script is scheduled to be run from newsim/LLScriptData + virtual void startRunning() = 0; + + // Called when the script is scheduled to be stopped from newsim/LLScriptData + virtual void stopRunning() = 0; + private: BOOL mReset; @@ -523,6 +529,12 @@ public: private: void recordBoundaryError( const LLUUID &id ); void setStateEventOpcoodeStartSafely( S32 state, LSCRIPTStateEventType event, const LLUUID &id ); + + // Called when the script is scheduled to be run from newsim/LLScriptData + virtual void startRunning(); + + // Called when the script is scheduled to be stopped from newsim/LLScriptData + virtual void stopRunning(); }; #endif diff --git a/indra/lscript/lscript_execute/lscript_execute.cpp b/indra/lscript/lscript_execute/lscript_execute.cpp index e863c1668e..fe2167aec8 100644 --- a/indra/lscript/lscript_execute/lscript_execute.cpp +++ b/indra/lscript/lscript_execute/lscript_execute.cpp @@ -60,6 +60,9 @@ const char* LSCRIPTRunTimeFaultStrings[LSRF_EOF] = /*Flawfinder: ignore*/ "CLI Exception" // LSRF_CLI }; +void LLScriptExecuteLSL2::startRunning() {} +void LLScriptExecuteLSL2::stopRunning() {} + LLScriptExecuteLSL2::LLScriptExecuteLSL2(LLFILE *fp) { U8 sizearray[4]; diff --git a/indra/newview/llassetuploadqueue.cpp b/indra/newview/llassetuploadqueue.cpp index c52c189d56..34dc65f168 100644 --- a/indra/newview/llassetuploadqueue.cpp +++ b/indra/newview/llassetuploadqueue.cpp @@ -150,7 +150,7 @@ void LLAssetUploadQueue::request(LLAssetUploadQueueSupplier** supplier) LLViewerObject* object = gObjectList.findObject(data.mTaskId); if (object) { - url = object->getRegion()->getCapability("UpdateScriptTaskInventory"); + url = object->getRegion()->getCapability("UpdateScriptTask"); LLHTTPClient::post(url, body, new LLAssetUploadChainResponder( body, data.mFilename, data.mQueueId, diff --git a/indra/newview/llcompilequeue.cpp b/indra/newview/llcompilequeue.cpp index 30d5dc206f..d3041c6206 100644 --- a/indra/newview/llcompilequeue.cpp +++ b/indra/newview/llcompilequeue.cpp @@ -422,7 +422,7 @@ void LLFloaterCompileQueue::scriptArrived(LLVFS *vfs, const LLUUID& asset_id, LLViewerObject* object = gObjectList.findObject(data->mTaskId); if (object) { - std::string url = object->getRegion()->getCapability("UpdateScriptTaskInventory"); + std::string url = object->getRegion()->getCapability("UpdateScriptTask"); if(!url.empty()) { // Read script source in to buffer. diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 71733e5cd7..c6c0fb21a8 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -142,7 +142,7 @@ const F32 LIVE_HELP_REFRESH_TIME = 1.f; static bool have_script_upload_cap(LLUUID& object_id) { LLViewerObject* object = gObjectList.findObject(object_id); - return object && (! object->getRegion()->getCapability("UpdateScriptTaskInventory").empty()); + return object && (! object->getRegion()->getCapability("UpdateScriptTask").empty()); } /// --------------------------------------------------------------------------- @@ -1291,7 +1291,7 @@ void LLPreviewLSL::saveIfNeeded() const LLInventoryItem *inv_item = getItem(); // save it out to asset server - std::string url = gAgent.getRegion()->getCapability("UpdateScriptAgentInventory"); + std::string url = gAgent.getRegion()->getCapability("UpdateScriptAgent"); if(inv_item) { getWindow()->incBusyCount(); @@ -2131,7 +2131,7 @@ void LLLiveLSLEditor::saveIfNeeded() fp = NULL; // save it out to asset server - std::string url = object->getRegion()->getCapability("UpdateScriptTaskInventory"); + std::string url = object->getRegion()->getCapability("UpdateScriptTask"); getWindow()->incBusyCount(); mPendingUploads++; BOOL is_running = getChild<LLCheckBoxCtrl>( "running")->get(); diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 52cbcf85a9..af16bdd201 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -6513,7 +6513,7 @@ class LLEditableSelectedMono : public view_listener_t LLViewerRegion* region = gAgent.getRegion(); if(region && gMenuHolder && gMenuHolder->findControl(userdata["control"].asString())) { - bool have_cap = (! region->getCapability("UpdateScriptTaskInventory").empty()); + bool have_cap = (! region->getCapability("UpdateScriptTask").empty()); bool selected = is_editable_selected() && have_cap; gMenuHolder->findControl(userdata["control"].asString())->setValue(selected); return true; diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 42ea36baec..bfb082885c 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -1408,10 +1408,10 @@ void LLViewerRegion::setSeedCapability(const std::string& url) capabilityNames.append("UpdateAgentLanguage"); capabilityNames.append("UpdateGestureAgentInventory"); capabilityNames.append("UpdateNotecardAgentInventory"); - capabilityNames.append("UpdateScriptAgentInventory"); + capabilityNames.append("UpdateScriptAgent"); capabilityNames.append("UpdateGestureTaskInventory"); capabilityNames.append("UpdateNotecardTaskInventory"); - capabilityNames.append("UpdateScriptTaskInventory"); + capabilityNames.append("UpdateScriptTask"); capabilityNames.append("ViewerStartAuction"); capabilityNames.append("UntrustedSimulatorMessage"); capabilityNames.append("ViewerStats"); diff --git a/indra/test/CMakeLists.txt b/indra/test/CMakeLists.txt index 03c4731de5..37ad170467 100644 --- a/indra/test/CMakeLists.txt +++ b/indra/test/CMakeLists.txt @@ -143,6 +143,7 @@ if (EXISTS /etc/debian_version_FAIL) --mode=static --output=${CMAKE_CURRENT_BINARY_DIR}/py_test_results.txt --touch=${CMAKE_CURRENT_BINARY_DIR}/py_tests_ok.txt + --mode=static DEPENDS test.py WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Python unit tests" |