]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_props.hxx
Move the texture loader to SimGear
[flightgear.git] / src / Main / fg_props.hxx
index 0e5f311ac34706f844b2e34467d6616225e01f83..4a58229970adf016f832012c841c1b16848a60db 100644 (file)
@@ -65,11 +65,18 @@ extern bool fgLoadFlight (istream &input);
 
 
 /**
- * Load properties from a file relative to $FG_ROOT.
- *
- * @param file The file name relative to $FG_ROOT.
- */
-extern void fgLoadProps (const char * path, SGPropertyNode * props);
+ * Load properties from a file.
+ *
+ * @param file The relative or absolute filename.
+ * @param props The property node to load the properties into.
+ * @param in_fg_root If true, look for the file relative to
+ *        $FG_ROOT; otherwise, look for the file relative to the
+ *        current working directory.
+ * @return true if the properties loaded successfully, false
+ *         otherwise.
+ */
+extern bool fgLoadProps (const char * path, SGPropertyNode * props,
+                         bool in_fg_root = true);
 
 
 \f