install zip game while browsing using games_sw
This commit is contained in:
parent
637a14637c
commit
cabe1c67c5
|
@ -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])
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue