From 8152586e7775de94215d7de7beaba67c9fa7bb5c Mon Sep 17 00:00:00 2001 From: Peter Hoddie Date: Thu, 10 Mar 2022 11:32:31 -0800 Subject: [PATCH] mcsim respects manifest option for main module --- build/simulators/modules/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/simulators/modules/screen.c b/build/simulators/modules/screen.c index 4da07dc1c0..9c17e470e9 100644 --- a/build/simulators/modules/screen.c +++ b/build/simulators/modules/screen.c @@ -396,7 +396,7 @@ void fxScreenLaunch(txScreen* screen) xsSet(xsVar(0), xsID_when, xsNumber(C_NAN)); xsSet(xsGlobal, xsID_screen, xsVar(0)); - xsVar(1) = xsAwaitImport("main", XS_IMPORT_DEFAULT); + xsVar(1) = xsAwaitImport(((txPreparation *)xsPreparationAndCreation(NULL))->main, XS_IMPORT_DEFAULT); if (xsTest(xsVar(1))) { if (xsIsInstanceOf(xsVar(1), xsFunctionPrototype)) { xsCallFunction0(xsVar(1), xsGlobal);