Skip to content

Commit 300fdb3

Browse files
committed
Prevent double compile
Forces a recompile of scripts_compiled.lua after writing to it. This ensures that the .lua and .luac are the same and prevents a potential recompile the next time bf.lua is launched.
1 parent 968d5be commit 300fdb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SCRIPTS/BF/COMPILE/compile.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local function compile()
1515
local file = io.open("COMPILE/scripts_compiled.lua", 'w')
1616
io.write(file, "return true")
1717
io.close(file)
18+
assert(loadScript("COMPILE/scripts_compiled.lua", 'c'))
1819
return 1
1920
end
2021

0 commit comments

Comments
 (0)