Skip to main content

parse_engine_version

Function parse_engine_version 

Source
pub fn parse_engine_version(text: &str) -> Option<(u32, u32)>
Expand description

Parse the Godot engine (major, minor) version from project.godot’s [application] config/features=PackedStringArray("4.3", "Forward Plus", …) line. Godot writes the engine version as the first <major>.<minor> entry of that array; the rest are rendering/feature tags. Returns the first version-shaped entry, or None if the line is absent or carries none. A deliberate minimal scan (not a VariantParser port); robust to malformed input (never panics).