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

Customizing module types initialization outdated #9220

Open
progsource opened this issue Apr 12, 2024 · 0 comments
Open

Customizing module types initialization outdated #9220

progsource opened this issue Apr 12, 2024 · 0 comments
Labels
area:contributing Issues and PRs related to the Contributing/Development section of the documentation bug

Comments

@progsource
Copy link
Contributor

progsource commented Apr 12, 2024

Your Godot version: stable (4.x)

Issue description:

URL to the documentation page: https://docs.godotengine.org/en/stable/contributing/development/core_and_modules/custom_modules_in_cpp.html#customizing-module-types-initialization

The preregister_{module_name}_types() does not work anymore. Instead probably if (p_level == MODULE_INITIALIZATION_LEVEL_CORE) inside of the initialize_{module_name}_module() should be used.

It would be awesome to have some documentation about when to use what value from the ModuleInitializationLevel enum.
This then also could be referenced in https://docs.godotengine.org/en/stable/classes/class_gdextension.html or vice versa.

@progsource progsource added the bug label Apr 12, 2024
@skyace65 skyace65 added the area:contributing Issues and PRs related to the Contributing/Development section of the documentation label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:contributing Issues and PRs related to the Contributing/Development section of the documentation bug
Projects
None yet
Development

No branches or pull requests

2 participants