Skip to content

Commit d5ec55b

Browse files
authored
Add files via upload
1 parent 6955d99 commit d5ec55b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

AMUMSS/MODBUILDER/LoadAndExecuteModScript.lua

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -229,25 +229,25 @@ function HandleModScript(MOD_DEF,Multi_pak)
229229
local src = [[.\_TEMP\DECOMPILED\]]..file
230230
if IsFileExist(src) then
231231
if _bRecreateMapFileTrees ~= nil then
232-
if _bAllowMapFileTreeCreator ~= nil then
233-
print(" MapFileTree creation/update on 2nd thread...")
234-
Report(""," MapFileTree creation/update done by 2nd thread")
232+
-- if _bAllowMapFileTreeCreator ~= nil then
233+
-- print(" MapFileTree creation/update on 2nd thread...")
234+
-- Report(""," MapFileTree creation/update done by 2nd thread")
235235

236-
--copy it to a temp folder for processing
237-
--because it may be removed later before creation is started/completed
238-
local src = [[.\_TEMP\DECOMPILED\]]..file
239-
local dest = [[.\_TEMP_MAP\]]..file
240-
CopyFile(src,dest)
236+
-- --copy it to a temp folder for processing
237+
-- --because it may be removed later before creation is started/completed
238+
-- local src = [[.\_TEMP\DECOMPILED\]]..file
239+
-- local dest = [[.\_TEMP_MAP\]]..file
240+
-- CopyFile(src,dest)
241241

242-
if IsFileExist([[MapFileTreeSharedList.txt]]) then
243-
WriteToFileAppend(file.."\n",[[MapFileTreeSharedList.txt]])
244-
else
245-
WriteToFile(file.."\n",[[MapFileTreeSharedList.txt]])
246-
end
247-
else
242+
-- if IsFileExist([[MapFileTreeSharedList.txt]]) then
243+
-- WriteToFileAppend(file.."\n",[[MapFileTreeSharedList.txt]])
244+
-- else
245+
-- WriteToFile(file.."\n",[[MapFileTreeSharedList.txt]])
246+
-- end
247+
-- else
248248
--in this thread processing
249249
DisplayMapFileTreeEXT(ParseTextFileIntoTable([[.\_TEMP\DECOMPILED\]]..file),file)
250-
end
250+
-- end
251251
else
252252
print(" Skipping MapFileTree creation/update")
253253
-- Report(""," Skipping MapFileTree creation/update")
@@ -3271,7 +3271,7 @@ function MapFileTree(TextFileTable,file)
32713271
local j = 0
32723272
repeat
32733273
j = j + 1
3274-
until string.find(TextFileTable[j],[[<Data template=]],1,true) ~= nil
3274+
until j > #TextFileTable or string.find(TextFileTable[j],[[<Data template=]],1,true) ~= nil
32753275

32763276
for i=j,#TextFileTable do
32773277
local text = TextFileTable[i]

0 commit comments

Comments
 (0)