Fix presentation loading bug

This commit is contained in:
JeremyStar™ 2024-05-11 12:07:28 +02:00
parent cc98984ce4
commit bfe1f9a8d5
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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