Rename export to dwarfexport.

develop
Petr Mrázek 2012-02-05 20:41:12 +01:00
parent 2b22b0b336
commit 6fe0867c46
4 changed files with 9 additions and 9 deletions

@ -42,7 +42,7 @@ endif()
OPTION(BUILD_DWARFEXPORT "Build dwarf exporter." ON) OPTION(BUILD_DWARFEXPORT "Build dwarf exporter." ON)
if (BUILD_DWARFEXPORT) if (BUILD_DWARFEXPORT)
add_subdirectory (export) add_subdirectory (dwarfexport)
endif() endif()
DFHACK_PLUGIN(reveal reveal.cpp) DFHACK_PLUGIN(reveal reveal.cpp)

@ -1,11 +1,11 @@
PROJECT (export) PROJECT (export)
# A list of source files # A list of source files
SET(PROJECT_SRCS SET(PROJECT_SRCS
export.cpp dwarfexport.cpp
) )
# A list of headers # A list of headers
SET(PROJECT_HDRS SET(PROJECT_HDRS
export.h dwarfexport.h
) )
SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE) SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE)
@ -28,4 +28,4 @@ ELSE(UNIX)
) )
ENDIF(UNIX) ENDIF(UNIX)
# this makes sure all the stuff is put in proper places and linked to dfhack # this makes sure all the stuff is put in proper places and linked to dfhack
DFHACK_PLUGIN(export ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS}) DFHACK_PLUGIN(dwarfexport ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS})

@ -27,7 +27,7 @@ using df::global::ui;
using df::global::world; using df::global::world;
// our own, empty header. // our own, empty header.
#include "export.h" #include "dwarfexport.h"
// Here go all the command declarations... // Here go all the command declarations...
@ -37,7 +37,7 @@ DFhackCExport command_result export_dwarves (Core * c, std::vector <std::string>
// A plugins must be able to return its name. This must correspond to the filename - export.plug.so or export.plug.dll // 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 ) DFhackCExport const char * plugin_name ( void )
{ {
return "export"; return "dwarfexport";
} }
// Mandatory init function. If you have some global state, create it here. // Mandatory init function. If you have some global state, create it here.
@ -45,7 +45,7 @@ DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand>
{ {
// Fill the command list with your commands. // Fill the command list with your commands.
commands.clear(); commands.clear();
commands.push_back(PluginCommand("export", commands.push_back(PluginCommand("dwarfexport",
"Export dwarves to RuneSmith-compatible XML.", "Export dwarves to RuneSmith-compatible XML.",
export_dwarves /*, export_dwarves /*,
true or false - true means that the command can't be used from non-interactive user interface'*/)); true or false - true means that the command can't be used from non-interactive user interface'*/));
@ -58,7 +58,7 @@ DFhackCExport command_result plugin_shutdown ( Core * c )
return CR_OK; return CR_OK;
} }
static char* physicals[] = { static const char* physicals[] = {
"Strength", "Strength",
"Agility", "Agility",
"Toughness", "Toughness",
@ -67,7 +67,7 @@ static char* physicals[] = {
"DiseaseResistance", "DiseaseResistance",
}; };
static char* mentals[] = { static const char* mentals[] = {
"Willpower", "Willpower",
"Memory", "Memory",
"Focus", "Focus",