1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! rrplug's prototype of a plugin reloading system
/// the reponse to a unload event
///
/// # Difficulties
/// the main issue arises from dangling pointers since the moment a plugin is reloaded callbacks, sqfunctions, etc will start calling into uninit memory.
/// which may be hard to handle at times.
///
/// the other issue is reinstating the plugin. rrplug will get back up by getting handles to engine, client and server in order
/// but squirrel cannot be fully restorted so it's best to reset all vms.