mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
fix windows build
This commit is contained in:
parent
48a09b10be
commit
099830d2fa
2 changed files with 2 additions and 2 deletions
|
|
@ -403,7 +403,7 @@ static int l_start_background_instance(lua::State* L) {
|
||||||
"--script", io::resolve(scriptPath).u8string(),
|
"--script", io::resolve(scriptPath).u8string(),
|
||||||
"--sub-depth", std::to_string(engine->getCoreParameters()
|
"--sub-depth", std::to_string(engine->getCoreParameters()
|
||||||
.subProcessDepth + 1),
|
.subProcessDepth + 1),
|
||||||
"--log", io::resolve(outputPath),
|
"--log", io::resolve(outputPath).u8string(),
|
||||||
};
|
};
|
||||||
args.emplace_back("--project");
|
args.emplace_back("--project");
|
||||||
args.emplace_back(io::resolve(engine->getProject().path).u8string());
|
args.emplace_back(io::resolve(engine->getProject().path).u8string());
|
||||||
|
|
|
||||||
|
|
@ -358,7 +358,7 @@ std::unique_ptr<Process> platform::new_engine_instance(
|
||||||
if (!outputFile.empty()) {
|
if (!outputFile.empty()) {
|
||||||
si.dwFlags |= STARTF_USESTDHANDLES;
|
si.dwFlags |= STARTF_USESTDHANDLES;
|
||||||
si.hStdOutput = CreateFileW(
|
si.hStdOutput = CreateFileW(
|
||||||
toWString(outputFile.empty() ? outputFile.u8string() : "NUL"s,).data(),
|
toWString(outputFile.empty() ? outputFile.u8string() : "NUL"s).data(),
|
||||||
GENERIC_WRITE,
|
GENERIC_WRITE,
|
||||||
FILE_SHARE_WRITE | FILE_SHARE_READ,
|
FILE_SHARE_WRITE | FILE_SHARE_READ,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue