From ba4793cef4abf76d771e5ca1840973a0ca8cac98 Mon Sep 17 00:00:00 2001 From: MtH Date: Tue, 7 Sep 2021 23:10:43 +0200 Subject: [PATCH] allow shared lib to be used without needing to have a level selected --- source/Paths.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Paths.hx b/source/Paths.hx index 6494de623..aa8c17fd5 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -25,12 +25,12 @@ class Paths var levelPath = getLibraryPathForce(file, currentLevel); if (OpenFlAssets.exists(levelPath, type)) return levelPath; - - levelPath = getLibraryPathForce(file, "shared"); - if (OpenFlAssets.exists(levelPath, type)) - return levelPath; } + var levelPath = getLibraryPathForce(file, "shared"); + if (OpenFlAssets.exists(levelPath, type)) + return levelPath; + return getPreloadPath(file); }