update canvas_efis/main.nas to get namespace via module API
This commit is contained in:
parent
a1664a4759
commit
8b0fa9a08d
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# canvas-efis loader
|
||||
#
|
||||
var EFIS_namespace = "canvas_efis";
|
||||
var EFIS_namespace = "_uninitalized_";
|
||||
|
||||
var unload = func(module) {
|
||||
globals[EFIS_namespace].DisplayUnit.unload();
|
||||
|
@ -10,6 +10,7 @@ var unload = func(module) {
|
|||
}
|
||||
|
||||
var main = func(module) {
|
||||
EFIS_namespace = module.getNamespaceName();
|
||||
io.load_nasal(module.getFilePath()~"efis-framework.nas", EFIS_namespace);
|
||||
io.load_nasal(module.getFilePath()~"eicas-message-sys.nas", EFIS_namespace);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue