summaryrefslogtreecommitdiff
path: root/plugins/fastdwarf.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-02-21 18:19:17 +0100
committerPetr Mrázek2012-02-21 18:19:17 +0100
commit2cd2ee9b0cc10b79f264c3a9a4597f59835fd419 (patch)
tree7d95cbe0b7abd5d42990a15ed8b8d801a08a48ad /plugins/fastdwarf.cpp
parent0b9e849096c95d68c6235c266560a2fb58908151 (diff)
downloaddfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.gz
dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.bz2
dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.xz
New plugin interface
Diffstat (limited to 'plugins/fastdwarf.cpp')
-rw-r--r--plugins/fastdwarf.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/fastdwarf.cpp b/plugins/fastdwarf.cpp
index e692a4cf..6cb6fabb 100644
--- a/plugins/fastdwarf.cpp
+++ b/plugins/fastdwarf.cpp
@@ -16,10 +16,7 @@ using df::global::world;
using df::global::ui;
// dfhack interface
-DFhackCExport const char * plugin_name ( void )
-{
- return "fastdwarf";
-}
+DFHACK_PLUGIN("fastdwarf");
DFhackCExport command_result plugin_shutdown ( Core * c )
{
@@ -68,8 +65,6 @@ static command_result fastdwarf (Core * c, vector <string> & parameters)
DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands)
{
- commands.clear();
-
commands.push_back(PluginCommand("fastdwarf",
"enable/disable fastdwarf (parameter=0/1)",
fastdwarf));