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/dwarfexport | |
| parent | 0b9e849096c95d68c6235c266560a2fb58908151 (diff) | |
| download | dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.gz dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.bz2 dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.xz | |
New plugin interface
Diffstat (limited to 'plugins/dwarfexport')
| -rw-r--r-- | plugins/dwarfexport/dwarfexport.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/dwarfexport/dwarfexport.cpp b/plugins/dwarfexport/dwarfexport.cpp index 877c75e2..996f8c98 100644 --- a/plugins/dwarfexport/dwarfexport.cpp +++ b/plugins/dwarfexport/dwarfexport.cpp @@ -35,17 +35,12 @@ using df::global::world; // mostly to allow having the mandatory stuff on top of the file and commands on the bottom command_result export_dwarves (Core * c, std::vector <std::string> & parameters); -// A plugins must be able to return its name. This must correspond to the filename - export.plug.so or export.plug.dll -DFhackCExport const char * plugin_name ( void ) -{ - return "dwarfexport"; -} +DFHACK_PLUGIN("dwarfexport"); // Mandatory init function. If you have some global state, create it here. DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands) { // Fill the command list with your commands. - commands.clear(); commands.push_back(PluginCommand("dwarfexport", "Export dwarves to RuneSmith-compatible XML.", export_dwarves /*, |
