File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
PluginsFolder/protoplug/include/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2929-- - right before the script is recompiled, to keep custom data across compilations.
3030-- @treturn string the data to be saved
3131-- @function script.saveData
32- script_saveData = script .saveData
3332
3433--- Load script data.
3534-- Override this function to load any custom data.
@@ -41,7 +40,6 @@ script_saveData = script.saveData
4140-- - right after the script is recompiled, to keep custom data across compilations.
4241-- @tparam string data the data to be loaded
4342-- @function script.loadData
44- script_loadData = script .loadData
4543
4644
4745--- Load shared libraries.
@@ -116,6 +114,8 @@ function script_init()
116114 v ()
117115 end
118116 end
117+ script_saveData = script .saveData
118+ script_loadData = script .loadData
119119end
120120
121121-- add handler to repaint gui after recompiling
You can’t perform that action at this time.
0 commit comments