windows: spawn dooms with -nosound
This commit is contained in:
parent
5ddc95b4e9
commit
326db7e312
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ inline void spawn_doom(ControllerContext &ctx)
|
||||||
ZeroMemory(&pi, sizeof(pi));
|
ZeroMemory(&pi, sizeof(pi));
|
||||||
|
|
||||||
char cmdLine[256];
|
char cmdLine[256];
|
||||||
snprintf(cmdLine, sizeof(cmdLine), "%s", DOOM_EXECUTABLE);
|
snprintf(cmdLine, sizeof(cmdLine), "%s -nosound", DOOM_EXECUTABLE);
|
||||||
|
|
||||||
// Start the child process.
|
// Start the child process.
|
||||||
if (!CreateProcess(NULL, // No module name (use command line)
|
if (!CreateProcess(NULL, // No module name (use command line)
|
||||||
|
@ -239,7 +239,7 @@ void check_on_dooms(ControllerContext &ctx)
|
||||||
}
|
}
|
||||||
} while (pid > 0);
|
} while (pid > 0);
|
||||||
#else
|
#else
|
||||||
#warning "pid checking not implemented for Windows"
|
//#warning "pid checking not implemented for Windows"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Find dooms that are in Endoom state and remove them. This works for
|
// Find dooms that are in Endoom state and remove them. This works for
|
||||||
|
|
Loading…
Reference in a new issue