1
0
Fork 0

update canvas_efis/main.nas to get namespace via module API

This commit is contained in:
Henning Stahlke 2020-03-08 20:57:04 +01:00
parent a1664a4759
commit 8b0fa9a08d

View file

@ -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);
}