premake/util/sdl_gen_config.lua
changeset 10422 34fb2e531f7c
parent 9998 f67cf37e9cd4
     1.1 --- a/premake/util/sdl_gen_config.lua	Sat Oct 01 12:54:48 2016 -0700
     1.2 +++ b/premake/util/sdl_gen_config.lua	Sat Oct 01 12:56:28 2016 -0700
     1.3 @@ -33,8 +33,8 @@
     1.4  -- This function begins config header generation given the name of the generated
     1.5  -- file and the name of the template file to use.
     1.6  function startGeneration(file, template)
     1.7 -	configFile = fileopen(file, "wt")
     1.8 -	templateFileContents = readfile(template, "rt")
     1.9 +	configFile = fileopen(file, "w")
    1.10 +	templateFileContents = readfile(template, "r")
    1.11  	insertLocation = templateFileContents:find(searchKey)
    1.12  	if insertLocation then
    1.13  		configFile:write(templateFileContents:sub(1, insertLocation - 1))