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

Random includes only for mmd files

This commit is contained in:
Królik Uszasty
2022-09-16 22:47:31 +02:00
committed by Milek7
parent 027f7c69e9
commit d191d9e5e7
4 changed files with 9 additions and 2 deletions

View File

@@ -8671,6 +8671,7 @@ bool TTrain::InitializeCab(int NewCabNo, std::string const &asFileName)
std::string cabstr("cab" + std::to_string(cabindex) + "definition:");
cParser parser( asFileName, cParser::buffer_FILE, DynamicObject->asBaseDir );
parser.allowRandomIncludes = true;
// NOTE: yaml-style comments are disabled until conflict in use of # is resolved
// parser.addCommentStyle( "#", "\n" );
std::string token;