aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/mods/modmanager.h
diff options
context:
space:
mode:
authorErlite <ys.aameziane@gmail.com>2023-02-09 01:44:44 +0100
committerGitHub <noreply@github.com>2023-02-09 00:44:44 +0000
commitb61ed18a86ddd2d7ab0e80992859750a49a9c4f6 (patch)
treed8a3dc1230d8a1da8feda6d1f41980dfa5eab15e /NorthstarDLL/mods/modmanager.h
parentb77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205 (diff)
downloadNorthstarLauncher-b61ed18a86ddd2d7ab0e80992859750a49a9c4f6.tar.gz
NorthstarLauncher-b61ed18a86ddd2d7ab0e80992859750a49a9c4f6.zip
Add Destroy callback for squirrel scripts. (#383)v1.12.3-rc2v1.12.3-rc1v1.12.3
* Add Destroy callback for squirrel scripts. * Switch _call() to Call()
Diffstat (limited to 'NorthstarDLL/mods/modmanager.h')
-rw-r--r--NorthstarDLL/mods/modmanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/mods/modmanager.h b/NorthstarDLL/mods/modmanager.h
index c2335d09..369eb07b 100644
--- a/NorthstarDLL/mods/modmanager.h
+++ b/NorthstarDLL/mods/modmanager.h
@@ -41,6 +41,8 @@ struct ModScriptCallback
std::string BeforeCallback;
// called after the codecallback has finished executing
std::string AfterCallback;
+ // called right before the vm is destroyed.
+ std::string DestroyCallback;
};
struct ModScript