diff options
| author | jj | 2012-07-05 18:03:02 +0200 |
|---|---|---|
| committer | jj | 2012-07-05 18:03:02 +0200 |
| commit | 8e17ebbefc5da79b34219b87b310038af1077871 (patch) | |
| tree | 67d844e935af4f21a5da87964fba156657b163cf /plugins/ruby | |
| parent | 70740481463bbde3f078b612e529e6c7a3b6704d (diff) | |
| download | dfhack-8e17ebbefc5da79b34219b87b310038af1077871.tar.gz dfhack-8e17ebbefc5da79b34219b87b310038af1077871.tar.bz2 dfhack-8e17ebbefc5da79b34219b87b310038af1077871.tar.xz | |
add SC_PAUSED / SC_UNPAUSED onStateChange events
Diffstat (limited to 'plugins/ruby')
| -rw-r--r-- | plugins/ruby/ruby.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ruby/ruby.cpp b/plugins/ruby/ruby.cpp index 6dd0b39c..08ea13b9 100644 --- a/plugins/ruby/ruby.cpp +++ b/plugins/ruby/ruby.cpp @@ -194,6 +194,8 @@ DFhackCExport command_result plugin_onstatechange ( color_ostream &out, state_ch // if we go through plugin_eval at BEGIN_UNLOAD, it'll // try to get the suspend lock and deadlock at df exit case SC_BEGIN_UNLOAD : return CR_OK; + SCASE(PAUSED); + SCASE(UNPAUSED); #undef SCASE } |
