medfall

A super great game engine
Log | Files | Refs

commit f27a64c5a378a6b92543559cff29eebbf8d8d90c
parent 895077e83d7423593d9d96b35a93d2f30994bce7
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon, 30 Oct 2017 23:22:42 +0200

exec_and_quit command line hack on Windows

Diffstat:
win32_exec.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/win32_exec.h b/win32_exec.h @@ -4,13 +4,13 @@ #include "log.h" -void exec_and_quit( const char * path ) { +void exec_and_quit( const char * path, char * command_line = NULL ) { STARTUPINFOA startup_info = { }; startup_info.cb = sizeof( startup_info ); PROCESS_INFORMATION process_info = { }; - if( CreateProcessA( path, NULL, 0, 0, FALSE, 0, NULL, NULL, &startup_info, &process_info ) == 0 ) { + if( CreateProcessA( path, command_line, 0, 0, FALSE, 0, NULL, NULL, &startup_info, &process_info ) == 0 ) { FATAL( "CreateProcess" ); }