mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #199, fixed issues 7-14 of https://dev.vatsim-germany.org/issues/199
On top fixed bug for core mode in main.cpp
This commit is contained in:
@@ -9,7 +9,7 @@ using namespace BlackMisc;
|
||||
namespace BlackCore
|
||||
{
|
||||
|
||||
QList<CContextApplicationBase *> CContextApplicationBase::s_contexts = QList<CContextApplicationBase *>();
|
||||
QList<CContextApplicationBase *> CContextApplicationBase::s_contexts;
|
||||
QtMessageHandler CContextApplicationBase::s_oldHandler = nullptr;
|
||||
|
||||
/*
|
||||
|
||||
@@ -483,31 +483,37 @@ namespace BlackCore
|
||||
|
||||
CContextAudio *CRuntime::getCContextAudio()
|
||||
{
|
||||
Q_ASSERT_X(!this->m_contextAudio || this->m_contextAudio->usingLocalObjects(), "CCoreRuntime", "Cannot downcast to local object");
|
||||
return static_cast<CContextAudio *>(this->m_contextAudio);
|
||||
}
|
||||
|
||||
CContextAudio *CRuntime::getCContextAudio() const
|
||||
const CContextAudio *CRuntime::getCContextAudio() const
|
||||
{
|
||||
Q_ASSERT_X(!this->m_contextAudio || this->m_contextAudio->usingLocalObjects(), "CCoreRuntime", "Cannot downcast to local object");
|
||||
return static_cast<CContextAudio *>(this->m_contextAudio);
|
||||
}
|
||||
|
||||
CContextApplication *CRuntime::getCContextApplication()
|
||||
{
|
||||
Q_ASSERT_X(!this->m_contextApplication || this->m_contextApplication->usingLocalObjects(), "CCoreRuntime", "Cannot downcast to local object");
|
||||
return static_cast<CContextApplication *>(this->m_contextApplication);
|
||||
}
|
||||
|
||||
CContextApplication *CRuntime::getCContextApplication() const
|
||||
const CContextApplication *CRuntime::getCContextApplication() const
|
||||
{
|
||||
Q_ASSERT_X(!this->m_contextApplication || this->m_contextApplication->usingLocalObjects(), "CCoreRuntime", "Cannot downcast to local object");
|
||||
return static_cast<CContextApplication *>(this->m_contextApplication);
|
||||
}
|
||||
|
||||
CContextSimulator *CRuntime::getCContextSimulator()
|
||||
{
|
||||
Q_ASSERT_X(!this->m_contextSimulator || this->m_contextSimulator->usingLocalObjects(), "CCoreRuntime", "Cannot downcast to local object");
|
||||
return static_cast<CContextSimulator *>(this->m_contextSimulator);
|
||||
}
|
||||
|
||||
CContextSimulator *CRuntime::getCContextSimulator() const
|
||||
const CContextSimulator *CRuntime::getCContextSimulator() const
|
||||
{
|
||||
Q_ASSERT_X(!this->m_contextSimulator || this->m_contextSimulator->usingLocalObjects(), "CCoreRuntime", "Cannot downcast to local object");
|
||||
return static_cast<CContextSimulator *>(this->m_contextSimulator);
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace BlackCore
|
||||
|
||||
//! Context for application
|
||||
//! \remarks only applicable for local object
|
||||
CContextApplication *getCContextApplication() const;
|
||||
const CContextApplication *getCContextApplication() const;
|
||||
|
||||
//! Context for audio
|
||||
//! \remarks only applicable for local object
|
||||
@@ -149,7 +149,7 @@ namespace BlackCore
|
||||
|
||||
//! Context for audio
|
||||
//! \remarks only applicable for local object
|
||||
CContextAudio *getCContextAudio() const;
|
||||
const CContextAudio *getCContextAudio() const;
|
||||
|
||||
//! Context for simulator
|
||||
//! \remarks only applicable for local object
|
||||
@@ -157,7 +157,7 @@ namespace BlackCore
|
||||
|
||||
//! Context for simulator
|
||||
//! \remarks only applicable for local object
|
||||
CContextSimulator *getCContextSimulator() const;
|
||||
const CContextSimulator *getCContextSimulator() const;
|
||||
|
||||
//! Init
|
||||
void init(const CRuntimeConfig &config);
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace BlackCore
|
||||
QDBusConnection con = QDBusConnection::sessionBus();
|
||||
if (!con.registerService(CDBusServer::ServiceName))
|
||||
{
|
||||
qCritical() << this->m_busServer.lastError().message();
|
||||
qCritical() << con.lastError().message();
|
||||
qFatal("Cannot register DBus service, server started? dbus-daemon.exe --session --address=tcp:host=192.168.0.133,port=45000");
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ namespace BlackCore
|
||||
QDBusConnection con = QDBusConnection::systemBus();
|
||||
if (!con.registerService(CDBusServer::ServiceName))
|
||||
{
|
||||
qCritical() << this->m_busServer.lastError().message();
|
||||
qCritical() << con.lastError().message();
|
||||
qFatal("Cannot register DBus service, server started? dbus-daemon.exe --system --address=tcp:host=192.168.0.133,port=45000");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user