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.
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 beforegodot_ffi::is_initialized()istrue.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 thegodotcrate could expose it somewhere, such that I can rely on a SemVer guarantee?For example,
godotcould exposegodot::is_initialized(). This would call intogodot_ffi::is_initialized()- or whatever function is appropriate for that version - for us.