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:
Alibek Omarov
2025-10-02 03:16:07 +08:00
parent 04f807ef2f
commit e830472010
3 changed files with 3 additions and 6 deletions

View File

@@ -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 )

View File

@@ -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 )

View File

@@ -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 );
}