-
Notifications
You must be signed in to change notification settings - Fork 740
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
Common - Use CBA addons instead of activatedAddons #6802
Conversation
Does this break anything due to case sensitivity? |
We look for |
Yes. Also find a3_ is kinda bad. Shouldn't we just select the first 3 characters and compare if it's a3_ or ace? |
How about this? |
Co-Authored-By: dedmen <[email protected]>
Thanks for making commy happy |
} forEach activatedAddons; | ||
private _aceWhitelist = missionNamespace getVariable ["ACE_Version_Whitelist", []]; | ||
private _files = CBA_common_addons select { | ||
(_x select [0,3] != "a3_") && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(_x select [0,3] != "a3_") && | |
_x select [0,3] != "a3_" && |
private _files = CBA_common_addons select { | ||
(_x select [0,3] != "a3_") && | ||
{_x select [0,4] != "ace_"} && | ||
{!((toLower _x) in _aceWhitelist)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{!((toLower _x) in _aceWhitelist)} | |
{!(toLower _x in _aceWhitelist)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree, less readable.
Not so fast. |
I accidentally merged it before we could apply those changes |
boo |
* Use CBA addons instead of activatedAddons * Better checks * Betterest checks * Delay call to toLower until needed * Apply suggestions from code review Co-Authored-By: dedmen <[email protected]>
Ref: CBATeam/CBA_A3#1051 (comment)
Related: #6800