Howto:Creating a simple modding framework: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
##
# $FG_ROOT/Nasal/mod/mod.nas
var fgroot = getprop("/sim/fg-root");
var modFolder = fgroot ~ '/'~ 'Mods/';
var modDirectories = directory( modFolder );
debug.dump(modDirectories);
</syntaxhighlight>
</syntaxhighlight>

Revision as of 21:21, 9 September 2016

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/';
var modDirectories = directory( modFolder );

debug.dump(modDirectories);