Support hardcoded environment variables

This commit is contained in:
momo5502
2024-10-23 18:41:29 +02:00
parent c992d17300
commit 1446d9193a
2 changed files with 11 additions and 0 deletions

View File

@@ -226,6 +226,10 @@ namespace
proc_params.StandardInput = STDIN_HANDLE.h;
proc_params.StandardError = proc_params.StandardOutput;
proc_params.Environment = allocator.copy_string(L"=::=::\\");
allocator.copy_string(L"EMULATOR=1");
allocator.copy_string(L"COMPUTERNAME=momo");
allocator.copy_string(L"");
std::wstring command_line = L"\"" + file.wstring() + L"\"";