Howto:Creating a simple modding framework

From FlightGear wiki
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.


Status

Objective

Background

Proof of Concept

##
# $FG_ROOT/Nasal/mod/mod.nas

var fgroot = getprop("/sim/fg-root");
var modFolder = fgroot ~ '/'~ 'Mods/';
# http://wiki.flightgear.org/Nasal_library#directory.28.29
var modDirectories = directory( modFolder );

debug.dump( modDirectories );