16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 23:19:19 +02:00

vehicle configuration file parsing enhancement

This commit is contained in:
tmj-fstate
2020-05-05 20:36:28 +02:00
parent 6112198610
commit 9c3fbf489d
2 changed files with 27 additions and 24 deletions

View File

@@ -9049,7 +9049,7 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
startWWLIST = false;
startLIGHTSLIST = false;
startCOMPRESSORLIST = false;
std::string file = chkpath + TypeName + ".fiz";
std::string file = TypeName + ".fiz";
WriteLog("LOAD FIZ FROM " + file);
/*
@@ -9060,7 +9060,7 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
return false;
}
*/
cParser fizparser( file, cParser::buffer_FILE );
cParser fizparser( file, cParser::buffer_FILE, chkpath );
if( false == fizparser.ok() ) {
WriteLog( "E8 - FIZ FILE NOT EXIST." );
return false;