Adapt to libxplanemp improvements

* XPMPMultiplayerInit API change
* New CSL command 'VERT_OFFSET'
* OBJ8 objects can have multiple textures now. Therefore use the same model
name convention as with OBJ7.
This commit is contained in:
Roland Winklmeier
2018-02-22 16:35:10 +01:00
committed by Klaus Basan
parent e64e7feb28
commit 2ab6a96d57
3 changed files with 53 additions and 11 deletions

View File

@@ -99,7 +99,8 @@ namespace XSwiftBus
{
if (! s_legacyDataOK) { return false; }
auto err = XPMPMultiplayerInit(preferences, preferences);
auto dir = g_xplanePath + "Resources" + g_sep + "plugins" + g_sep + "xswiftbus" + g_sep;
auto err = XPMPMultiplayerInit(preferences, preferences, qPrintable(dir));
if (*err) { cleanup(); return false; }
m_initialized = true;