Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: get acf path #7

Open
todirbg opened this issue Feb 17, 2022 · 4 comments
Open

Feature request: get acf path #7

todirbg opened this issue Feb 17, 2022 · 4 comments

Comments

@todirbg
Copy link

todirbg commented Feb 17, 2022

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!

@Danita
Copy link
Member

Danita commented Feb 17, 2022

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

@todirbg
Copy link
Author

todirbg commented Feb 17, 2022

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.

@Danita
Copy link
Member

Danita commented Mar 28, 2022

Better in which way? What would be the advantage?

@todirbg
Copy link
Author

todirbg commented Apr 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants