From 8aa904f56c35a7211e44abe59d0f8949f789ec49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gilles=20Roudi=C3=A8re?= Date: Tue, 11 Oct 2022 11:40:04 +0200 Subject: Exposes ResourceFormatLoader.recognize_path to scripting --- doc/classes/ResourceFormatLoader.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/ResourceFormatLoader.xml b/doc/classes/ResourceFormatLoader.xml index 9b8c8d4d9d..2b6376f2cd 100644 --- a/doc/classes/ResourceFormatLoader.xml +++ b/doc/classes/ResourceFormatLoader.xml @@ -71,6 +71,15 @@ The [param cache_mode] property defines whether and how the cache should be used or updated when loading the resource. See [enum CacheMode] for details. + + + + + + Tells whether or not this loader should load a resource from its resource path for a given type. + If it is not implemented, the default behavior returns whether the path's extension is within the ones provided by [method _get_recognized_extensions], and if the type is within the ones provided by [method _get_resource_type]. + + -- cgit v1.2.3