Store plname in save files (and restore it).

Move get_saved_games() functionality to files.c
Use moved get_saved_games() functionality in Qt windowport.
[also some non-enabled perminv code in Qt windowport]
This commit is contained in:
warwick
2002-07-22 06:25:52 +00:00
parent 6bc604ecf3
commit 16b7d4a099
6 changed files with 95 additions and 48 deletions

View File

@@ -542,6 +542,8 @@ register int fd;
int rtmp;
struct obj *otmp;
mread(fd, (genericptr_t) plname, PL_NSIZ);
restoring = TRUE;
getlev(fd, 0, (xchar)0, FALSE);
if (!restgamestate(fd, &stuckid, &steedid)) {
@@ -621,6 +623,7 @@ register int fd;
(void) lseek(fd, (off_t)0, 0);
#endif
(void) uptodate(fd, (char *)0); /* skip version info */
mread(fd, (genericptr_t) plname, PL_NSIZ);
getlev(fd, 0, (xchar)0, FALSE);
(void) close(fd);