mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-19 08:51:41 +03:00
Added plugin version output to unix builds #4793
This commit is contained in:
parent
267f3ac41f
commit
d7043ef84b
@ -35,6 +35,7 @@ typedef void (*cleanupFunc)();
|
|||||||
|
|
||||||
void* g_eventTarget = NULL;
|
void* g_eventTarget = NULL;
|
||||||
IEventQueue* g_events = NULL;
|
IEventQueue* g_events = NULL;
|
||||||
|
static const char kPre174Plugin[] = "Pre-1.7.4";
|
||||||
|
|
||||||
ArchPluginUnix::ArchPluginUnix()
|
ArchPluginUnix::ArchPluginUnix()
|
||||||
{
|
{
|
||||||
@ -82,7 +83,13 @@ ArchPluginUnix::load()
|
|||||||
|
|
||||||
String filename = synergy::string::removeFileExt(*it);
|
String filename = synergy::string::removeFileExt(*it);
|
||||||
m_pluginTable.insert(std::make_pair(filename, library));
|
m_pluginTable.insert(std::make_pair(filename, library));
|
||||||
LOG((CLOG_DEBUG "loaded plugin: %s", (*it).c_str()));
|
|
||||||
|
const char * version = (char*)invoke( filename.c_str(),"version",NULL);
|
||||||
|
if (version == NULL) {
|
||||||
|
version = kPre174Plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
LOG((CLOG_DEBUG "loaded plugin: %s (%s)", (*it).c_str(),version));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user