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

Make current file name known to the plugin. #855

Merged

Conversation

hoehermann
Copy link
Contributor

Hi all

I just came up with this addition. This is useful if the plug-in wants to load additional resources relative to its location.

This is approach is quite daft. For a more intricate solution, we could also create a table with all the paths from UPathUtils. I am up for discussion. What do you think?

Kind Regards
Hermann

This is useful if the plugin wants to load additional resources relative to its location.
Copy link
Member

@barbeque-squared barbeque-squared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine! I'm personally really not a fan of party mode but this isn't related specifically to that, so fair enough.
I also started a wiki page (which sadly can't be edited through PR's) to at least document this global variable: https://github.com/UltraStar-Deluxe/USDX/wiki/Lua-plugins

@barbeque-squared barbeque-squared merged commit 77467b2 into UltraStar-Deluxe:master Jul 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants