summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanisław Halik <sthalik@misaki.pl>2018-01-15 00:18:55 +0100
committerGitHub <noreply@github.com>2018-01-15 00:18:55 +0100
commit132a94c545fa77cf7eb3a794dfe9b91a1232cfbc (patch)
tree83bfd70610210b3c68f7daaa9b912be5a05fee31
parent720b8d57847324a164e6f408d430bdc568b1b76c (diff)
parentaf8fbb137d7601a565c036104d094cc819a72afd (diff)
Merge pull request #724 from PhilippMuenzel/patch-1
Fix XPluginEnable
-rw-r--r--x-plane-plugin/plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index bc9b013d..1c41daf0 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -205,9 +205,10 @@ PLUGIN_API OTR_COMPAT_EXPORT void XPluginStop ( void ) {
}
}
-PLUGIN_API OTR_COMPAT_EXPORT void XPluginEnable ( void ) {
+PLUGIN_API OTR_COMPAT_EXPORT int XPluginEnable ( void ) {
XPLMRegisterFlightLoopCallback(write_head_position, -1.0, NULL);
track_disabled = 0;
+ return 1;
}
PLUGIN_API OTR_COMPAT_EXPORT void XPluginDisable ( void ) {