mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: move update page checks from platform-specific ShellExecute implementation to gameui call (platform_update_page isn't fully used yet, might get on Android some time later)
This commit is contained in:
@@ -1096,6 +1096,9 @@ UI_ShellExecute
|
||||
*/
|
||||
static void GAME_EXPORT UI_ShellExecute( const char *path, const char *parms, int shouldExit )
|
||||
{
|
||||
if( !Q_strcmp( path, GENERIC_UPDATE_PAGE ) || !Q_strcmp( path, PLATFORM_UPDATE_PAGE ))
|
||||
path = DEFAULT_UPDATE_PAGE;
|
||||
|
||||
Platform_ShellExecute( path, parms );
|
||||
|
||||
if( shouldExit )
|
||||
|
||||
@@ -28,9 +28,6 @@ void Platform_ShellExecute( const char *path, const char *parms )
|
||||
const char *argv[] = { OPEN_COMMAND, path, NULL };
|
||||
pid_t id;
|
||||
|
||||
if( !Q_strcmp( path, GENERIC_UPDATE_PAGE ) || !Q_strcmp( path, PLATFORM_UPDATE_PAGE ))
|
||||
path = DEFAULT_UPDATE_PAGE;
|
||||
|
||||
id = fork();
|
||||
|
||||
if( id == 0 )
|
||||
|
||||
@@ -111,9 +111,6 @@ qboolean Platform_DebuggerPresent( void )
|
||||
|
||||
void Platform_ShellExecute( const char *path, const char *parms )
|
||||
{
|
||||
if( !Q_strcmp( path, GENERIC_UPDATE_PAGE ) || !Q_strcmp( path, PLATFORM_UPDATE_PAGE ))
|
||||
path = DEFAULT_UPDATE_PAGE;
|
||||
|
||||
ShellExecuteA( NULL, "open", path, parms, NULL, SW_SHOW );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user