install zip game while browsing using games_sw

This commit is contained in:
p.kosyh 2010-06-15 11:20:41 +00:00
parent 637a14637c
commit cabe1c67c5
2 changed files with 2 additions and 1 deletions

View file

@ -2417,7 +2417,7 @@ int game_from_disk(void)
b = basename(b);
/* fprintf(stderr,"%s:%s\n", d, b); */
#ifdef _USE_UNPACK
p = game_local_games_path(1);
p = games_sw ? games_sw:game_local_games_path(1);
fprintf(stderr,"Trying to install: %s\n", g);
if (!unpack(g, p)) {
if (!zip_game_dirname[0])

View file

@ -17,6 +17,7 @@ extern int fullscreen_sw;
extern int window_sw;
extern int nopause_sw;
extern int game_own_theme; /* current game has own theme */
extern char *games_sw;
extern char *err_msg; /* last error message */
extern char game_cwd[PATH_MAX]; /* current game cwd */
extern char *curgame_dir;