XLua icon indicating copy to clipboard operation
XLua copied to clipboard

Feature request: get acf path

Open todirbg opened this issue 3 years ago • 4 comments

Hello, great to see xLua is updated! Can we have a function to get the path to the current acf like in this fork https://github.com/aeroc7/XLua ? This is extremely useful for read/write config files from the acf folder for example. Regards!

todirbg avatar Feb 17 '22 06:02 todirbg

@todirbg On XP12 there's the sim/aircraft/view/acf_relative_path you can use for this.

Danita avatar Feb 17 '22 11:02 Danita

This is great news :) I still think it will be better if we could have direct access to that in xlua as a function or as a global variable like SIM_PERIOD is.

todirbg avatar Feb 17 '22 19:02 todirbg

Better in which way? What would be the advantage?

Danita avatar Mar 28 '22 14:03 Danita

For one it will be backward compatible with xp11. I just think it is a cleaner solution.

todirbg avatar Apr 01 '22 14:04 todirbg