Debug: Now prints revision into console
This commit is contained in:
parent
d2b4564460
commit
386caf10ae
1 changed files with 2 additions and 1 deletions
|
@ -113,8 +113,9 @@ spinning.start();
|
|||
init_dlg.open();
|
||||
|
||||
http.load("https://raw.githubusercontent.com/it0uchpods/IDG-A32X/master/revision.txt").done(func(r) setprop("/systems/acconfig/new-revision", r.response));
|
||||
var revisionFile = (getprop("/sim/aircraft-dir")~"/revision.txt");
|
||||
var revisionFile = (getprop("/sim/aircraft-dir") ~ "/revision.txt");
|
||||
var current_revision = io.readfile(revisionFile);
|
||||
print("IDG A32X Revision: " ~ current_revision);
|
||||
setprop("/systems/acconfig/revision", current_revision);
|
||||
|
||||
setlistener("/systems/acconfig/new-revision", func {
|
||||
|
|
Reference in a new issue