Add a command to get the current RemoteFortressReader version

develop
Japa 2017-06-22 20:29:10 +05:30
parent 9f2eaf35f1
commit 0348de4880
1 changed files with 6 additions and 0 deletions

@ -206,6 +206,11 @@ command_result dump_bp_mods(color_ostream &out, vector <string> & parameters)
return CR_OK;
}
command_result RemoteFortressReader_version(color_ostream &out, vector<string> &parameters)
{
out.print(RFR_VERSION);
return CR_OK;
}
// Mandatory init function. If you have some global state, create it here.
DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands)
@ -220,6 +225,7 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector <Plugin
" isoworldremote\n"
" Does nothing.\n"
));
commands.push_back(PluginCommand("RemoteFortressReader_version", "List the loaded RemoteFortressReader version", RemoteFortressReader_version, false, "This is used for plugin version checking."));
return CR_OK;
}