Skip to content

Commit

Permalink
Updated: Use library path instead of FORM_PREFIXDSV
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Nov 24, 2024
1 parent aa6fc11 commit 0443b31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions data/trackassembly/set/z_autorun_[trackassembly].txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ local myScript = tostring(debug.getinfo(1).source or "N/A")

-- Store a reference to disable symbol
local gsMissDB = asmlib.GetOpVar("MISS_NOSQL")
local gsDirDSV = asmlib.GetOpVar("DIRPATH_DSV")
local gsToolPF = asmlib.GetOpVar("TOOLNAME_PU")
local gsSymOff = asmlib.GetOpVar("OPSYM_DISABLE")
local gsFormPF = asmlib.GetOpVar("FORM_PREFIXDSV")

-- This is the path to your DSV
local myDsv = asmlib.GetOpVar("DIRPATH_BAS")..
asmlib.GetOpVar("DIRPATH_DSV")..
gsFormPF:format(myPrefix, gsToolPF.."PIECES")
local myDsv = asmlib.GetLibraryPath(gsDirDSV, myPrefix, gsToolPF.."PIECES")

--[[
* This flag is used when the track pieces list needs to be processed.
Expand Down
6 changes: 2 additions & 4 deletions data/trackassembly/set/z_autoset_[trackassembly].txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@ end
if(asmlib) then
-- Store a reference to disable symbol
local gsMissDB = asmlib.GetOpVar("MISS_NOSQL")
local gsDirDSV = asmlib.GetOpVar("DIRPATH_DSV")
local gsToolPF = asmlib.GetOpVar("TOOLNAME_PU")
local gsSymOff = asmlib.GetOpVar("OPSYM_DISABLE")
local gsModeDB = asmlib.GetOpVar("MODE_DATABASE")
local gsFormPF = asmlib.GetOpVar("FORM_PREFIXDSV")

-- This is the path to your DSV
local myDsv = asmlib.GetOpVar("DIRPATH_BAS")..
asmlib.GetOpVar("DIRPATH_DSV")..
gsFormPF:format(myPrefix, gsToolPF.."PIECES")
local myDsv = asmlib.GetLibraryPath(gsDirDSV, myPrefix, gsToolPF.."PIECES")

-- Evaluated to TRUE when the global database is exported
local myFlag = file.Exists(myDsv, "DATA")
Expand Down
6 changes: 2 additions & 4 deletions lua/autorun/z_autorun_[shinji85_s_rails].lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ local myScript = tostring(debug.getinfo(1).source or "N/A")

-- Store a reference to disable symbol
local gsMissDB = asmlib.GetOpVar("MISS_NOSQL")
local gsDirDSV = asmlib.GetOpVar("DIRPATH_DSV")
local gsToolPF = asmlib.GetOpVar("TOOLNAME_PU")
local gsSymOff = asmlib.GetOpVar("OPSYM_DISABLE")
local gsFormPF = asmlib.GetOpVar("FORM_PREFIXDSV")

-- This is the path to your DSV
local myDsv = asmlib.GetOpVar("DIRPATH_BAS")..
asmlib.GetOpVar("DIRPATH_DSV")..
gsFormPF:format(myPrefix, gsToolPF.."PIECES")
local myDsv = asmlib.GetLibraryPath(gsDirDSV, myPrefix, gsToolPF.."PIECES")

--[[
* This flag is used when the track pieces list needs to be processed.
Expand Down

0 comments on commit 0443b31

Please sign in to comment.