diff --git a/doc/fixes34.4 b/doc/fixes34.4 index df1414a9c..3d67b11fa 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -204,6 +204,7 @@ winCE: disable processing of double-click messages if the first click X11: ensure vertical scrollbar shows up in text display windows X11: fix typo in mouse click sanity check; result might have pointed to spurious location after window resizing +unix/Qt: saved games were not found if nethack was built with prefixes in use General New Features diff --git a/src/files.c b/src/files.c index 09d0d5f3c..98371420f 100644 --- a/src/files.c +++ b/src/files.c @@ -1083,13 +1083,13 @@ get_saved_games() /* posixly correct version */ int myuid=getuid(); DIR *dir; - if((dir=opendir("save"))) { + if((dir=opendir(fqname("save", SAVEPREFIX, 0)))) { for(n=0; readdir(dir); n++) ; closedir(dir); if(n>0) { int i; - if(!(dir=opendir("save"))) + if(!(dir=opendir(fqname("save", SAVEPREFIX, 0)))) return 0; result = (char**)alloc((n+1)*sizeof(char*)); /* at most */ for (i=0, j=0; i