Skip to content

Add a means to check if the engine (and bindings) is initialized yet #1575

@LikeLakers2

Description

@LikeLakers2

Hi!

While working on my log crate adapter, I came across the realization that I can't exactly rely on information provided by singletons like OS. The reason: The log adapter may be running before godot_ffi::is_initialized() is true.

While checking what that function returns isn't too hard, it feels weird calling into godot_ffi - not to mention, there's no SemVer guarantee that that function will stay. So perhaps the godot crate could expose it somewhere, such that I can rely on a SemVer guarantee?

For example, godot could expose godot::is_initialized(). This would call into godot_ffi::is_initialized() - or whatever function is appropriate for that version - for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: engineGodot classes (nodes, resources, ...)featureAdds functionality to the library

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions