add VC_HEADLESS constant

This commit is contained in:
MihailRis 2026-04-19 19:36:36 +03:00
parent 82e8cc991f
commit 711f6963d4

View file

@ -144,6 +144,9 @@ void lua::initialize(const EnginePaths& paths, const CoreParameters& params) {
); );
lua::pushstring(main_thread, params.scriptFile.stem().u8string()); lua::pushstring(main_thread, params.scriptFile.stem().u8string());
lua::setglobal(main_thread, "__VC_SCRIPT_NAME"); lua::setglobal(main_thread, "__VC_SCRIPT_NAME");
lua::pushboolean(main_thread, params.headless);
lua::setglobal(main_thread, "VC_HEADLESS");
} }
void lua::finalize() { void lua::finalize() {