File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -336,11 +336,13 @@ function main:LoadDatSource(value)
336
336
self .leagueLabel = nil
337
337
local reExportState = self .reExportGGPKData
338
338
self .reExportGGPKData = true
339
+ if self .datSource then
340
+ local out = io.open (self .datSource .spec .. (self .datSource .spec :match (" %.lua$" ) and " " or " .lua" ), " w" )
341
+ out :write (' return ' )
342
+ writeLuaTable (out , self .datSpecs , 1 )
343
+ out :close ()
344
+ end
339
345
self .datSource = value
340
- local out = io.open (self .datSource .spec .. (self .datSource .spec :match (" %.lua$" ) and " " or " .lua" ), " w" )
341
- out :write (' return ' )
342
- writeLuaTable (out , self .datSpecs , 1 )
343
- out :close ()
344
346
self .datSpecs = LoadModule (self .datSource .spec )
345
347
self :InitGGPK ()
346
348
if USE_DAT64 then
You can’t perform that action at this time.
0 commit comments