From 01a4f36398bfe66a7286a83fdd797c8b20541681 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Jul 2018 14:30:32 -0700 Subject: Minor changes. --- nomsu_compiler.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nomsu_compiler.lua') diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index 1de8fbb..ada6c12 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -355,6 +355,9 @@ do source = nil end source = source or (to_run.source or Source(to_run, 1, #to_run)) + if type(source) == 'string' then + source = Source:from_string(source) + end if not files.read(source.filename) then files.spoof(source.filename, to_run) end -- cgit v1.2.3