From c92cf76356129b69c15c3aeca30c745671874d88 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 27 Mar 2019 14:40:14 -0700 Subject: Fix for finding source files when they're in the NOMSUPATH --- nomsu_environment.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nomsu_environment.lua') diff --git a/nomsu_environment.lua b/nomsu_environment.lua index 9e57cc6..6671f38 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -360,6 +360,9 @@ nomsu_environment = Importer({ if not (self.SOURCE_MAP[source_key] or self.OPTIMIZATION >= 2) then local map = { } local file = Files.read(source.filename) + if not file and NOMSU_PREFIX then + file = Files.read(tostring(NOMSU_PREFIX) .. "/share/nomsu/" .. tostring(table.concat(NOMSU_VERSION, ".")) .. "/" .. tostring(source.filename)) + end if not file then error("Failed to find file: " .. tostring(source.filename)) end -- cgit v1.2.3