Revert "SGSubsystemMgr: Switch to the new add() function with a single subsystem object argument."
This reverts commit 30d63b7209
.
This commit is contained in:
parent
30d63b7209
commit
c8e7a019f5
1 changed files with 3 additions and 3 deletions
|
@ -1035,7 +1035,7 @@ void fgCreateSubsystems(bool duringReset) {
|
||||||
{
|
{
|
||||||
SGSubsystem * httpd = flightgear::http::FGHttpd::createInstance( fgGetNode(flightgear::http::PROPERTY_ROOT) );
|
SGSubsystem * httpd = flightgear::http::FGHttpd::createInstance( fgGetNode(flightgear::http::PROPERTY_ROOT) );
|
||||||
if( NULL != httpd )
|
if( NULL != httpd )
|
||||||
mgr->add(httpd);
|
mgr->add("httpd", httpd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!duringReset) {
|
if (!duringReset) {
|
||||||
|
@ -1106,7 +1106,7 @@ void fgCreateSubsystems(bool duringReset) {
|
||||||
mgr->add<CanvasMgr>();
|
mgr->add<CanvasMgr>();
|
||||||
|
|
||||||
auto canvasGui = new GUIMgr;
|
auto canvasGui = new GUIMgr;
|
||||||
mgr->add(canvasGui);
|
mgr->add("CanvasGUI", canvasGui, SGSubsystemMgr::DISPLAY);
|
||||||
auto guiCamera = flightgear::getGUICamera(flightgear::CameraGroup::getDefault());
|
auto guiCamera = flightgear::getGUICamera(flightgear::CameraGroup::getDefault());
|
||||||
canvasGui->setGUIViewAndCamera(globals->get_renderer()->getView(), guiCamera);
|
canvasGui->setGUIViewAndCamera(globals->get_renderer()->getView(), guiCamera);
|
||||||
|
|
||||||
|
@ -1117,7 +1117,7 @@ void fgCreateSubsystems(bool duringReset) {
|
||||||
// ordering here is important : Nasal (via events), then models, then views
|
// ordering here is important : Nasal (via events), then models, then views
|
||||||
if (!duringReset) {
|
if (!duringReset) {
|
||||||
mgr->add<FGLight>();
|
mgr->add<FGLight>();
|
||||||
mgr->add(globals->get_event_mgr());
|
mgr->add("events", globals->get_event_mgr(), SGSubsystemMgr::DISPLAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
mgr->add<FGAircraftModel>();
|
mgr->add<FGAircraftModel>();
|
||||||
|
|
Loading…
Reference in a new issue