Skip to content

Commit

Permalink
Cleanup gauge code
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkopp committed Jan 21, 2023
1 parent c50a306 commit d0971ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/extra-backend/src/Gauge_Extra_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ AircraftPresets aircraftPresets(&msfsHandler);
*
* @see https://docs.flightsimulator.com/html/Content_Configuration/SimObjects/Aircraft_SimO/Instruments/C_C++_Gauges.htm?rhhlterm=_gauge_callback&rhsearch=_gauge_callback
*/
__attribute__((export_name("Gauge_Extra_Backend_gauge_callback"))) extern "C" __attribute__((unused)) bool
Gauge_Extra_Backend(__attribute__((unused)) FsContext ctx, int service_id, void* pData) {
switch (service_id) {
extern "C" {
[[maybe_unused]]
MSFS_CALLBACK bool Gauge_Extra_Backend_gauge_callback(
[[maybe_unused]] FsContext ctx, int svcId, void* pData) {

switch (svcId) {
case PANEL_SERVICE_PRE_INSTALL: {
return msfsHandler.initialize();
}
Expand All @@ -61,6 +64,8 @@ Gauge_Extra_Backend(__attribute__((unused)) FsContext ctx, int service_id, void*
break;
}
return false;

}
}

// FULL list of possible messages:
Expand Down

0 comments on commit d0971ff

Please sign in to comment.