mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add VC_HEADLESS constant
This commit is contained in:
parent
82e8cc991f
commit
711f6963d4
1 changed files with 3 additions and 0 deletions
|
|
@ -144,6 +144,9 @@ void lua::initialize(const EnginePaths& paths, const CoreParameters& params) {
|
|||
);
|
||||
lua::pushstring(main_thread, params.scriptFile.stem().u8string());
|
||||
lua::setglobal(main_thread, "__VC_SCRIPT_NAME");
|
||||
|
||||
lua::pushboolean(main_thread, params.headless);
|
||||
lua::setglobal(main_thread, "VC_HEADLESS");
|
||||
}
|
||||
|
||||
void lua::finalize() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue