fn tryOpenSoftwareKeyWithPrecedence(registry: *Registry, variants: []const Software, sub_path: []const u16) error
registry: *Registry
variants: []const Software
sub_path: []const u16
309 310 311 312 313 314
fn tryOpenSoftwareKeyWithPrecedence(registry: *Registry, variants: []const Software, sub_path: []const u16) error{KeyNotFound}!Key { for (variants) |variant| { return registry.openSoftwareKey(variant, sub_path) catch continue; } return error.KeyNotFound; }