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

Implement Check* Hooks #963

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

JohanCorn
Copy link

  • CheckGameOver
  • CheckTimeLimit
  • CheckFragLimit
  • CheckMaxRounds
  • CheckWinLimit

- CheckGameOver
- CheckTimeLimit
- CheckFragLimit
- CheckMaxRounds
- CheckWinLimit
@dystopm
Copy link
Contributor

dystopm commented May 25, 2024

Question, why are you declaring hook function as VFUNC?

@JohanCorn
Copy link
Author

Question, why are you declaring hook function as VFUNC?

I made a mistake, but thank you for pointing it out.

@JohanCorn JohanCorn marked this pull request as draft May 25, 2024 23:40
@JohanCorn
Copy link
Author

Question, why are you declaring hook function as VFUNC?

I have changed the VFUNC BOOL declarations to BOOL. However, I'm not sure if it is also necessary to change the bool type BOOL (int) as I did. Could you please review this aspect as well? Thank you!

@JohanCorn JohanCorn marked this pull request as ready for review June 11, 2024 08:41
@s1lentq s1lentq force-pushed the master branch 4 times, most recently from a363cba to 79cfd71 Compare July 14, 2024 19:18
s1lentq and others added 17 commits August 16, 2024 09:53
chore(ci): standardize and update CI workflows for compatibility and consistency

- Updated action versions (`checkout@v4`, `upload-artifact@v4`, `download-artifact@v4`) for enhanced compatibility and security
- Removed unsecure Node.js version allowance to align with *-latest OS requirements
- Migrated test demos to `rehldsorg/testdemos:latest` container with a streamlined testing approach via matrix strategy and `runTest.sh`
- Standardized Linux dependency installation for consistent build environment across jobs
- Unified CI workflow structure with `rehlds` and `regamedll` repositories for better consistency
- Optimized artifact deployment steps and removed unnecessary cleanup operations

Co-authored-by: s1lentq <[email protected]>
@dystopm
Copy link
Contributor

dystopm commented Jan 9, 2025

Question, why are you declaring hook function as VFUNC?

I have changed the VFUNC BOOL declarations to BOOL. However, I'm not sure if it is also necessary to change the bool type BOOL (int) as I did. Could you please review this aspect as well? Thank you!

Sorry for the late answer. Don't use BOOL, because it is the same as int, and they will not matching origin structure size (int=4, bool=1), leading to unexpected behaviour with addons. Original functions return type were bool -> keep bool :)

- CheckGameOver
- CheckTimeLimit
- CheckFragLimit
- CheckMaxRounds
- CheckWinLimit
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.

9 participants