Menu-FN: Set up pkgname defaults for 'valve', so that the menu will go straight to the updater.
This commit is contained in:
parent
85cd67b798
commit
725a32a4d6
2 changed files with 14 additions and 4 deletions
|
@ -141,14 +141,12 @@ m_init(void)
|
|||
Music_MenuStart();
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (games[gameinfo_current].pkgfile != "")
|
||||
if (!whichpack(games[gameinfo_current].pkgfile) || autocvar_menu_updating) {
|
||||
if not (whichpack(games[gameinfo_current].pkgfile) || autocvar_menu_updating) {
|
||||
/* reload in case of video restarts? */
|
||||
shaderforname("logo_avi", "{\n{\nvideomap av:media/logo.avi\n}\n}");
|
||||
g_menupage = PAGE_UPDATES;
|
||||
}
|
||||
#endif
|
||||
|
||||
Menu_AutoScale();
|
||||
Menu_GammaHack();
|
||||
|
|
|
@ -32,7 +32,6 @@ CMainButton customgame_btnDone;
|
|||
int g_iModInstallCache;
|
||||
string g_strModInstallCache;
|
||||
|
||||
|
||||
#if 1
|
||||
/* get installing id */
|
||||
void
|
||||
|
@ -701,6 +700,16 @@ customgame_lbmods_changed(void)
|
|||
}
|
||||
}
|
||||
|
||||
/* set some sane default packages, so that we don't need to ship a custom liblist */
|
||||
void
|
||||
games_setdefaultpkgs(int id)
|
||||
{
|
||||
if (games[id].gamedir == "valve") {
|
||||
games[id].pkgname = "valve_dayone;valve_uplink;valve_realmedia;valve_opfordemo;valve_hlds;valve_patch1110;addon_furtherdata;addon_holidaymodels";
|
||||
games[id].pkgfile = "maps/crossfire.bsp";
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
games_init_2(void)
|
||||
{
|
||||
|
@ -764,6 +773,8 @@ games_init_2(void)
|
|||
games[id].pkgid = -1;
|
||||
games[id].steambg = 0;
|
||||
|
||||
games_setdefaultpkgs(id);
|
||||
|
||||
if (games_check_manifest(id, gamedirname) == 1) {
|
||||
NSLog("[MENU] Found manifest for %s", gamedirname);
|
||||
games[id].info_type = GAMEINFO_MANIFEST;
|
||||
|
@ -824,6 +835,7 @@ games_init(void)
|
|||
games[id].pkgid = -1;
|
||||
games[id].steambg = 0;
|
||||
gameinfo_current = 0;
|
||||
games_setdefaultpkgs(id);
|
||||
|
||||
#ifndef WEBMENU
|
||||
if (games_check_manifest(id, gamedirname) == 1) {
|
||||
|
|
Loading…
Reference in a new issue