From 7bca9910fb730c55e738fc55989a845b58c38825 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 7 Jul 2023 22:30:19 +0200 Subject: [PATCH] added replace argument to resmgr.loadbatch() --- resmgr.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resmgr.gd b/resmgr.gd index 0c70baa..83bd1f3 100644 --- a/resmgr.gd +++ b/resmgr.gd @@ -25,11 +25,11 @@ func unloadres(resname:String) -> void: return resources.erase(resname) -func loadbatch(batch:Dictionary) -> void: +func loadbatch(batch:Dictionary,replace:bool = false) -> void: if batch == {}: Logger.error("resmgr","Loading a batch failed: Batch is empty") for i in batch: - loadres(i,batch[i]) + loadres(i,batch[i],replace) func unloadbatch(batch:Array) -> void: if batch == []: