diff options
| author | Petr Mrázek | 2012-02-21 18:19:17 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-21 18:19:17 +0100 |
| commit | 2cd2ee9b0cc10b79f264c3a9a4597f59835fd419 (patch) | |
| tree | 7d95cbe0b7abd5d42990a15ed8b8d801a08a48ad /plugins/cleanowned.cpp | |
| parent | 0b9e849096c95d68c6235c266560a2fb58908151 (diff) | |
| download | dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.gz dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.bz2 dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.xz | |
New plugin interface
Diffstat (limited to 'plugins/cleanowned.cpp')
| -rw-r--r-- | plugins/cleanowned.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/cleanowned.cpp b/plugins/cleanowned.cpp index 00aa85a9..5b6907e5 100644 --- a/plugins/cleanowned.cpp +++ b/plugins/cleanowned.cpp @@ -28,14 +28,10 @@ using df::global::world; command_result df_cleanowned (Core * c, vector <string> & parameters); -DFhackCExport const char * plugin_name ( void ) -{ - return "cleanowned"; -} +DFHACK_PLUGIN("cleanowned"); DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands) { - commands.clear(); commands.push_back(PluginCommand( "cleanowned", "Confiscates and dumps garbage owned by dwarfs.", df_cleanowned, false, |
