prepend_scn feature

This commit is contained in:
milek7
2020-10-31 01:19:37 +01:00
parent f042eaf6b4
commit c9169edf72
4 changed files with 10 additions and 1 deletions

View File

@@ -91,6 +91,10 @@ state_serializer::deserialize_begin( std::string const &Scenariofile ) {
state->functionmap.emplace( function.first, std::bind( function.second, this, std::ref( state->input ), std::ref( state->scratchpad ) ) );
}
if (!Global.prepend_scn.empty()) {
state->input.injectString(Global.prepend_scn);
}
return state;
}