Allow simulator to be loaded with multiple scripts.

This commit is contained in:
M4x1m3
2020-02-29 14:22:11 +01:00
committed by Quentin
parent d589107e01
commit ac75bfd0fc

View File

@@ -49,8 +49,10 @@ bool App::Snapshot::lockOnConsole() const {
}
void App::Snapshot::setOpt(const char * name, const char * value) {
if (strcmp(name, "script") == 0) {
if (strcmp(name, "wipe") == 0) {
m_scriptStore.deleteAllScripts();
}
if (strcmp(name, "script") == 0) {
char * separator = const_cast<char *>(UTF8Helper::CodePointSearch(value, ':'));
if (*separator == 0) {
return;