From 91f32bd6f0a19c8abbc2dd096aa874c55d7f034c Mon Sep 17 00:00:00 2001 From: Rene Kjellerup Date: Thu, 29 Jun 2023 15:42:16 -0700 Subject: [PATCH] doesn't start with a recent version of lua from lua documentation to read all data from file the option is "*a" https://www.lua.org/pil/21.1.html --- bootstrap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.lua b/bootstrap.lua index 96afb9f..76a3b76 100644 --- a/bootstrap.lua +++ b/bootstrap.lua @@ -68,7 +68,7 @@ local function loadGameData() local mpqPath = baseDataDir .. "/" .. mpqFolderNames[i] local mpqLoadOrderFileName = mpqPath .. "/" .. ".loadorder" local file = io.open (mpqLoadOrderFileName, "r") - local fileData = file:read("a") + local fileData = file:read("*a") file:close() local mpqFiles = Split(fileData, ",") for _, mpqFile in ipairs(mpqFiles) do