Skip to content

Commit 52b198a

Browse files
committed
Add extra class docs for ResourceFormatLoader
1 parent 9ae2d36 commit 52b198a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

godot-codegen/src/special_cases/special_cases.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,11 @@ pub fn get_class_extra_docs(class_name: &TyName) -> Option<&'static str> {
773773
"ScriptExtension" => {
774774
Some("Use this in combination with the [`obj::script` module][crate::obj::script].")
775775
}
776-
776+
"ResourceFormatLoader" => {
777+
Some("Enable the `experimental-threads` feature when using custom `ResourceFormatLoader`s. \
778+
Otherwise the application will panic when the custom `ResourceFormatLoader` is used by Godot \
779+
in a thread other than the main thread.")
780+
}
777781
_ => None,
778782
}
779783
}

0 commit comments

Comments
 (0)