Start on SimConnect
This commit is contained in:
@@ -6,10 +6,11 @@
|
||||
#else
|
||||
#define BASE_DIRECTORY "./"
|
||||
|
||||
#define APP_ICON 100
|
||||
#define APP_ICON 1
|
||||
#define TRAY_ICON_ID 0xAFFE
|
||||
#define TRAY_MESSAGE 0xAFFE
|
||||
#define WINDOW_CLASS "GermanAirlinesVA_GAConnector"
|
||||
#define SIMCONNECT_MESSAGE 0xAFFF
|
||||
|
||||
#define VER_FILEVERSION 1, 0, 0, 15
|
||||
#define VER_FILEVERSION_STR "1.0.0.15\0"
|
||||
@@ -35,6 +36,9 @@
|
||||
#define XPLANE12_BASE_SCENERY \
|
||||
"Global Scenery/Global Airports/Earth nav data/apt.dat"
|
||||
|
||||
#define MAKERWYS_R5 "r5.csv"
|
||||
#define MAKERWYS_G5 "g5.csv"
|
||||
|
||||
#define RECORDING_DIRECTORY "recordings/"
|
||||
|
||||
#define CONFIG "config.cfg"
|
||||
@@ -45,4 +49,28 @@
|
||||
#define RECORDING_HEADER "VGAR"
|
||||
#define SIMDATABASE_HEADER "VGAS"
|
||||
|
||||
#define FSX_PREFIX "fsx_"
|
||||
#define FSXSE_PREFIX "fsxse_"
|
||||
#define P3D3_PREFIX "p3d3_"
|
||||
#define P3D4_PREFIX "p3d4_"
|
||||
#define P3D5_PREFIX "p3d5_"
|
||||
#define MSFS_PREFIX "msfs_"
|
||||
|
||||
#define FSX_VERSION 10
|
||||
#define FSXSE_VERSION 101
|
||||
#define P3D3_VERSION 3
|
||||
#define P3D4_VERSION 4
|
||||
#define P3D5_VERSION 5
|
||||
#define MSFS_VERSION 11
|
||||
|
||||
// Not supported
|
||||
#define FSXRTM_SUBVERSION 60905
|
||||
#define FSSXSP1_SUBVERRSION 61242
|
||||
// Supported
|
||||
#define FSXSP2_SUBVERSION 61259
|
||||
#define FSXACC_SUBVERSION 61472
|
||||
#define FSXGOLD_SUBVERSION 61637
|
||||
// Must be differentiated due to SxS Install
|
||||
#define FSXSE_SUBVERSION 62615
|
||||
|
||||
#endif
|
||||
@@ -1,12 +1,7 @@
|
||||
#ifndef GERMANAIRLINESVA_GACONNECTOR_GEODATA_H
|
||||
#define GERMANAIRLINESVA_GACONNECTOR_GEODATA_H
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
#ifdef IBM
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#define M_PI 3.14159265358979323846
|
||||
#define BUFSIZE 1024
|
||||
#define MD5LEN 16
|
||||
#define EARTH_M 6371000
|
||||
@@ -35,6 +30,8 @@ namespace geodata
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
static inline double toMetre(double value) { return value * 0.3048; }
|
||||
|
||||
static inline double toFeet(double value) { return value * 3.280839895; }
|
||||
|
||||
static inline double toDegrees(double value) { return value * 180 / M_PI; }
|
||||
@@ -240,6 +237,7 @@ namespace geodata
|
||||
|
||||
return {primaryTop, secondaryTop, secondaryBottom, primaryBottom};
|
||||
}
|
||||
|
||||
} // namespace geodata
|
||||
} // namespace germanairlinesva
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#ifndef GERMANAIRLINESVA_GACONNECTOR_UTIL_H
|
||||
#define GERMANAIRLINESVA_GACONNECTOR_UTIL_H
|
||||
|
||||
#ifdef IBM
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#define BUFSIZE 1024
|
||||
#define MD5LEN 16
|
||||
#define EARTH_M 6371000
|
||||
@@ -38,7 +34,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace germanairlinesva
|
||||
{
|
||||
namespace util
|
||||
|
||||
Reference in New Issue
Block a user