From 69c1805735df2a7a35e826e2f1bd40bac7dc1058 Mon Sep 17 00:00:00 2001 From: Phischermen Date: Thu, 5 Mar 2020 22:11:38 -0800 Subject: [PATCH] Added parameters to Load() (cherry picked from commit 1b0819bd595f6ca41ac6f357369ca4805c41c01e) --- .../GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs index 684d160b57c..5f64c09a898 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs @@ -2,9 +2,9 @@ namespace Godot { public static partial class ResourceLoader { - public static T Load(string path) where T : class + public static T Load(string path, string typeHint = null, bool noCache = false) where T : class { - return (T)(object)Load(path); + return (T)(object)Load(path, typeHint, noCache); } } }