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 == []: