You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"save": If you're scripting with the standalone, you put here the new filename. If it's the same as the original, it will create a backup.
"targets": The targets like the Target object in dnpatch. It's an array.
Targets' attributes:
"namespace": The namespace
"class": The class
"method": The method
"action": The action
"index": The index to patch (optional)
"indices": The indices to patch (optional)
"instructions": The instructions (optional)
"optional": Optional parameters, like "carview.php?tsp=true"/"false" for action "return" (optional)
List of supported actions:
"empty": Clear a methodbody
"replace": Replace the instruction(s) at the given index/indices
"return": Write true/false as return body and delete everything else, requires "optional" attribute
Create own runners
A script will be loaded within the constructor and if needed with LoadScript();
Scriptscript=newScript("script.json");script.Patch();// apply patchesscript.Save("scripted.exe");// save the file (only if save attribute isn't in the json)