Fixed profile parser so it gets the profile input file first

This commit is contained in:
GPayne
2020-01-10 15:22:26 -07:00
parent 3ef1b8d511
commit 1ac68f8236
3 changed files with 33 additions and 24 deletions
+5 -4
View File
@@ -464,10 +464,11 @@ parsingSections = {
{section = "MarkNodes", func = parseMarkNodes}
}
profileFilename = openspace.profile.getFilename()
profilePath = openspace.profile.getPath()
profilePathIn = openspace.profile.getProfileInputPath()
scenePathOut = openspace.profile.getSceneOutputPath()
assetOut = profilePath..".scene"
profileIn = profilePathIn..".profile"
assetOut = scenePathOut..".scene"
local resultTable = parseProfile(profilePath)
local resultTable = parseProfile(profileIn)
generateAsset(resultTable, assetOut)