From bfe1f9a8d563bf1a8900cba5e5d52da74c027855 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 11 May 2024 12:07:28 +0200 Subject: [PATCH] Fix presentation loading bug --- src/loader.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loader.gd b/src/loader.gd index 4025998..5a70257 100644 --- a/src/loader.gd +++ b/src/loader.gd @@ -153,11 +153,12 @@ Further arguments: processed["presentation"] = true # Check if file exists - if !FileAccess.file_exists(arg): + if !FileAccess.file_exists(arg) and !DirAccess.dir_exists_absolute(arg): logger.error(core.misc.stringify_variables("Unable to parse argument %arg%: Invalid file path %arg%", { "arg": arg })) continue # Update 'args' + args["load_presentation"] = true args["presentation_path"] = arg return args