mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 11:11:35 +02:00
... actually update.
This commit is contained in:
@@ -33,8 +33,8 @@ local insertLocation
|
||||
-- This function begins config header generation given the name of the generated
|
||||
-- file and the name of the template file to use.
|
||||
function startGeneration(file, template)
|
||||
configFile = fileopen(file, "wt")
|
||||
templateFileContents = readfile(template, "rt")
|
||||
configFile = fileopen(file, "w")
|
||||
templateFileContents = readfile(template, "r")
|
||||
insertLocation = templateFileContents:find(searchKey)
|
||||
if insertLocation then
|
||||
configFile:write(templateFileContents:sub(1, insertLocation - 1))
|
||||
|
||||
Reference in New Issue
Block a user