File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,10 @@ pub(crate) fn is_class_deleted(class_name: &TyName) -> bool {
53
53
54
54
// OpenXR has not been available for macOS before 4.2.
55
55
// See e.g. https://github.com/GodotVR/godot-xr-tools/issues/479.
56
+ // Do not hardcode a list of OpenXR classes, as more may be added in future Godot versions; instead use prefix.
56
57
#[ cfg( all( before_api = "4.2" , target_os = "macos" ) ) ]
57
- match class_name {
58
- | "OpenXRHand"
59
- | "OpenXRAction"
60
- | "OpenXRActionMap"
61
- | "OpenXRActionSet"
62
- | "OpenXRInteractionProfile"
63
- | "OpenXRIPBinding"
64
- | "OpenXRInterface"
65
-
66
- => return true ,
67
- _ => { }
58
+ if class_name. starts_with ( "OpenXR" ) {
59
+ return true ;
68
60
}
69
61
70
62
// ThemeDB was previously loaded lazily
You can’t perform that action at this time.
0 commit comments