force a reload

This commit is contained in:
Sven Czarnian
2021-11-20 09:29:01 +01:00
parent 1bb9813a7a
commit 0acb45dd27
2 changed files with 24 additions and 0 deletions

View File

@@ -357,6 +357,24 @@ void PlugIn::generateAircraftReportMessage(const EuroScopePlugIn::CRadarTarget&
report->set_reporttime(String::splitString(stream.str(), ".")[0]);
}
bool PlugIn::OnCompileCommand(const char* cmdline) {
std::string message(cmdline);
#pragma warning(disable: 4244)
std::transform(message.begin(), message.end(), message.begin(), ::toupper);
#pragma warning(default: 4244)
/* no AMAN command */
if (0 != message.find(".AMAN"))
return false;
if (std::string::npos != message.find("RELOAD")) {
this->validateBackendData();
return true;
}
return false;
}
void PlugIn::OnFunctionCall(int functionId, const char* itemString, POINT pt, RECT area) {
std::ignore = itemString;