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

fix(client): Cleanup various static sig patterns and put them in Hook… #2400

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

osmium-cfx
Copy link

…Function's.

We had a few rare cases here where sigs would be resolved on-demand.

There is some small overhead from checking each local static variable, but really this was done so that all the sigs are done before going in-game.

Goal of this PR

Put Most if not all sigs into HookFunctions or function stubs that run at startup.

This means that sigs are ran less conditionally(without needing an option) and at startup time instead of 1st time called.

How is this PR achieving the goal

By changing some rare cases of sigs not doing this.

This PR applies to the following area(s)

Client

Successfully tested on

Did basic testing without hints file and it seemed OK

Game builds: Several

Platforms: Windows

Checklist

  • [x ] Code compiles and has been tested successfully.
  • [ x] Code explains itself well and/or is documented.
  • [ x] My commit message explains what the changes do and what they are for.
  • [ x] No extra compilation warnings are added by these changes.

@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Feb 24, 2024
@osmium-cfx osmium-cfx force-pushed the hookfunction_sigs_cleanup branch from d78368f to 7c308d8 Compare February 26, 2024 23:14
…Function's

We had a few rare cases here where sigs would be resolved on-demand.

There is some small overhead from checking each local static variable, but really this was done so that all the sigs are done before going in-game.
@osmium-cfx osmium-cfx force-pushed the hookfunction_sigs_cleanup branch from 7c308d8 to 3662878 Compare March 7, 2024 19:45
Copy link
Contributor

@gottfriedleibniz gottfriedleibniz left a comment

Choose a reason for hiding this comment

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

Moving code around. ItWorksOnMyMachine sticker certified.

@gottfriedleibniz gottfriedleibniz added ready-to-merge This PR is enqueued for merging and removed triage Needs a preliminary assessment to determine the urgency and required action labels Mar 14, 2024
@thorium-cfx thorium-cfx merged commit cc2af84 into citizenfx:master Mar 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants