]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
autopilot: Introduce virtual dtor.
[flightgear.git] / src / Main / globals.hxx
index 8600e46db4f086cc8a20a0fab3743400d202d300..2ec9cc3771ff476ad6a7adfc1883fd869c4eb468 100644 (file)
@@ -215,6 +215,15 @@ public:
      */
     SGPath resolve_maybe_aircraft_path(const std::string& branch) const;
     
+    /**
+     * Search in the following directories:
+     *
+     *  1. Root directory of current aircraft (defined by /sim/aircraft-dir)
+     *  2. All aircraft directories if branch starts with Aircraft/
+     *  3. fg_data directory
+     */
+    SGPath resolve_ressource_path(const std::string& branch) const;
+
     inline const std::string &get_browser () const { return browser; }
     void set_browser (const std::string &b) { browser = b; }