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

use enum for EnableActorBlur, EnablePlayerBlur, EnableIdleScript args #1104

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

Rainchus
Copy link
Contributor

No description provided.

src/18F340.c Outdated Show resolved Hide resolved
@ethteck ethteck linked an issue Jul 30, 2023 that may be closed by this pull request
Copy link
Member

@ethteck ethteck left a comment

Choose a reason for hiding this comment

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

Not sure if we also wanna rename the function(s) as mentioned in the issue too. @HailSanta thoughts?

@@ -6472,4 +6472,16 @@ enum Language {
LANGUAGE_ES = 3,
};

enum IdleScriptState {
Copy link
Member

@ethteck ethteck Jul 30, 2023

Choose a reason for hiding this comment

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

Per the original issue, I think we wanted this one in script_api.h

Copy link
Collaborator

Choose a reason for hiding this comment

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

I've considered renaming them in the past, but decided against it because the vast, vast majority of calls do not use the RESET/RESTART options (3/117) for EnableActorBlur and (67/1060) for EnableIdleScript. I haven't found any alternative names to be a sufficiently compelling improvement over EnableX for a function which is nearly always used to enable and disable.

@ethteck ethteck merged commit f8d6ccd into pmret:main Aug 3, 2023
2 checks passed
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.

EnableIdleScript needs an enum
3 participants