Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Nov 22, 2024
1 parent d3d5740 commit 37e9254
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/buildactions/compose_files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ newaction {

-- Copy configs
os.copydir("Server/mods/deathmatch", OUTPUT_DIR.."/server/mods/deathmatch", "*.conf")
os.makeconfigtemplate(OUTPUT_DIR.."/server/mods/deathmatch/mtaserver.conf", OUTPUT_DIR.."/server/mods/deathmatch/mtaserver.conf.template")
makeconfigtemplate(OUTPUT_DIR.."/server/mods/deathmatch/mtaserver.conf", OUTPUT_DIR.."/server/mods/deathmatch/mtaserver.conf.template")
os.copydir("Server/mods/deathmatch", OUTPUT_DIR.."/server/mods/deathmatch", "*.xml")

-- Copy compiled binaries
Expand Down
2 changes: 1 addition & 1 deletion utils/buildactions/install_data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ newaction {
return
end

if not os.makeconfigtemplate(BIN_DIR.."/server/mods/deathmatch/mtaserver.conf", BIN_DIR.."/server/mods/deathmatch/mtaserver.conf.template") then
if not makeconfigtemplate(BIN_DIR.."/server/mods/deathmatch/mtaserver.conf", BIN_DIR.."/server/mods/deathmatch/mtaserver.conf.template") then
errormsg("ERROR: Could not copy mtaserver.conf to mtaserver.conf.template")
os.exit(1)
return
Expand Down
2 changes: 1 addition & 1 deletion utils/buildactions/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ end

-- Does a normal file copy and adds hardcoded text to the beginning of the resulting file
-- Used in compose_files.lua and install_data.lua
function os.makeconfigtemplate(file_path, result_path)
function makeconfigtemplate(file_path, result_path)
if not os.copyfile(file_path, result_path) then
return false
end
Expand Down

0 comments on commit 37e9254

Please sign in to comment.