2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. See the file COPYING.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #define MAXMSGLEN 2048
29 char filenamebuf
[MAXFILENAME
];
30 char msgbuf
[MAXMSGLEN
];
32 char *spif_get_filename(void)
36 /* should be implemented when adding ability */
37 /* to open snapshots from within zxbox */
40 s
= get_filename_line();
41 for(; *s
&& isspace((int) *s
); s
++);
43 for(; *s
&& isgraph((int) *s
); s
++);
47 printf("Canceled!\n");
54 char *spif_get_tape_fileinfo(int *startp
, int *nump
)
59 /* should be implemented when adding ability */
60 /* to tapes snapshots from within zxbox */
65 s
= get_filename_line();
66 for(; *s
&& isspace((int) *s
); s
++);
68 for(; *s
&& isgraph((int) *s
); s
++);
70 if(name
!= s
) res
= 1;
79 r1
= sscanf(s
, "%d %d", startp
, nump
);
85 printf("Canceled!\n");
89 if(res
< 2) *startp
= -1;
90 if(res
< 3) *nump
= -1;
95 void put_msg(const char *msg
)
98 rb
->splash (HZ
/2, msg
);
106 void put_tmp_msg(const char *msg
)
109 rb
->splash (HZ
/10, msg
);