Support port and path mappings

This commit is contained in:
Maurice Heumann
2025-02-04 09:04:52 +01:00
parent 11dfc02c41
commit 0029582d12
7 changed files with 104 additions and 9 deletions

View File

@@ -838,6 +838,16 @@ windows_emulator::windows_emulator(const emulator_settings& settings, emulator_c
this->file_sys().set_working_directory(settings.application.parent());
}
for (const auto& mapping : settings.path_mappings)
{
this->file_sys().map(mapping.first, mapping.second);
}
for (const auto& mapping : settings.port_mappings)
{
this->map_port(mapping.first, mapping.second);
}
this->verbose_calls = settings.verbose_calls;
this->silent_until_main_ = settings.silent_until_main && !settings.disable_logging;
this->use_relative_time_ = settings.use_relative_time;