medfall

A super great game engine
Log | Files | Refs

commit e8974017795617a7d1c000d851b7605a888dcfb8
parent 8a5d55686dac295602a1115b29eb1f089ba317dd
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Aug 27 17:16:09 +0100

replace_process_with -> exec_and_quit

Diffstat:
launcher/main.cc | 2+-
unix_exec.h | 2+-
win32_exec.h | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/launcher/main.cc b/launcher/main.cc @@ -719,7 +719,7 @@ int main() { ImGui::PopStyleColor( 3 ); if( launch ) { - replace_process_with( GAME_BINARY ); + exec_and_quit( GAME_BINARY ); } } else if( updater->state == UPDATER_NEED_UPDATE ) { diff --git a/unix_exec.h b/unix_exec.h @@ -4,7 +4,7 @@ #include "log.h" -void replace_process_with( const char * path ) { +void exec_and_quit( const char * path ) { execl( path, path, ( char * ) 0 ); FATAL( "execl" ); } diff --git a/win32_exec.h b/win32_exec.h @@ -4,7 +4,7 @@ #include "log.h" -void replace_process_with( const char * path ) { +void exec_and_quit( const char * path ) { STARTUPINFOA startup_info = { }; startup_info.cb = sizeof( startup_info );