Small features fixed

This commit is contained in:
simon.kagstrom 2009-01-07 19:56:10 +00:00
parent c2787689a4
commit 11077b96b8
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
version 2:
* Only save prefs on exit
* Pause sound in the menu
* Handle very long filenames better (thanks Corey89 for pointing this out)
* Corrected file sorting
* Better Makefile
* More keycodes added (C=)

View File

@ -164,7 +164,7 @@ static const char **get_file_list(const char *base_dir)
}
}
closedir(d);
qsort(file_list, cur, sizeof(const char *), cmpstringp);
qsort(&file_list[1], cur-1, sizeof(const char *), cmpstringp);
return file_list;
}
@ -437,6 +437,7 @@ void C64::VBlank(bool draw_frame)
Prefs *np = Frodo::reload_prefs();
TheSID->PauseSound();
submenus[0] = np->JoystickSwap == true ? 1 : 0;
opt = menu_select(real_screen, &this->main_menu, submenus);
@ -464,6 +465,7 @@ void C64::VBlank(bool draw_frame)
break;
case 9: /* Quit */
quit_thyself = true;
ThePrefs.Save(PREFS_PATH);
break;
case -1:
default: