dhudach wrote in Tue Feb 25, 2020 11:31 pm:I don't know if you can open fg and have your browser open at the same time. I'm not sure if fg can trigger a browser. It's something we would have to investigate. I believe there are ways to remove the aircraft from the screen, but I'm not sure how.
#include <iostream>
39 #include <simgear/structure/exception.hxx>
40
41 #include "fgradar_app.hxx"
42
43 int
44 main(int argc, char **argv)
45 {
46 using namespace fgradar;
47
48 try {
49 fgradar_app = new FgradarApp(argc, argv);
50 fgradar_app->run();
51 } catch (const sg_exception &e) {
52 std::cerr << e.what() << "\nAborting..." << std::endl;
53 return 1;
54 }
55
56 delete fgradar_app;
57
58 return 0;
59 }
26 #include "fgradar_app.hxx"
27
28 #include "multiplayer/traffic.hxx"
29 #include "scripting/NasalSys.hxx"
30
31 namespace fgradar {
32
33 FgradarApp *fgradar_app = NULL;
34
35 FgradarApp::FgradarApp(int argc, char **argv) :
36 SGCmdApplication("FGRadar", argc, argv, true)
37 {
38 checkDataDirectoryExists();
39 init();
40 }
41
42 FgradarApp::~FgradarApp()
43 {
44 }
45
46 void
47 FgradarApp::init()
48 {
49 createSubsystems();
50
51 m_subsystem_mgr->init();
52 }
53
54 void FgradarApp::createSubsystems()
55 {
56 /*m_subsystem_mgr->add("fgms-traffic", new FGMultiplayerTraffic,
57 SGSubsystemMgr::GENERAL, 1.5);*/
58 m_subsystem_mgr->add("nasal", new FGNasal,
59 SGSubsystemMgr::GENERAL, 0);
60 }
61
62 } // namespace fgradar
Users browsing this forum: No registered users and 1 guest