Ref T229, FSX/P3D character encoding

* we have to use an encoding function for FSX/P3D string
* encapsulated, so we can later can/improve it
This commit is contained in:
Klaus Basan
2018-01-19 00:14:57 +01:00
parent 7322c14d64
commit 67426b755f
3 changed files with 11 additions and 3 deletions

View File

@@ -330,6 +330,9 @@ namespace BlackSimPlugin
//! Request for lights (request in range of lights)?
static bool isRequestForLights(DWORD requestId) { return requestId >= (RequestSimDataStart + RequestLightsOffset) && requestId < (RequestSimDataStart + RequestLightsOffset + MaxSimObjects); }
//! Encapsulates creating QString from FSX string data
static QString fsxCharToQString(const char *fsxChar, int size = -1);
static constexpr int GuessRemoteAircraftPartsCycle = 20; //!< guess every n-th cycle
static constexpr int SkipUpdateCyclesForCockpit = 10; //!< skip x cycles before updating cockpit again
static constexpr int IgnoreReceiveExceptions = 10; //!< skip exceptions when displayed more than x times