RecentFiles - Fix so that the most recent file is on top, also remove a bug from the Remove() method

This commit is contained in:
andres.delikat 2011-01-18 03:56:31 +00:00
parent df4a69cc8b
commit 54b676fcca
2 changed files with 4 additions and 5 deletions

View File

@ -42,7 +42,7 @@ namespace BizHawk.MultiClient
recentlist.Remove(newFile); //intentionally keeps iterating after this to remove duplicate instances, though those should never exist in the first place
}
}
recentlist.Add(newFile);
recentlist.Insert(0, newFile);
if (recentlist.Count > MAX_RECENT_FILES)
recentlist.Remove(recentlist[0]);
}
@ -58,8 +58,7 @@ namespace BizHawk.MultiClient
removed = true;
}
}
recentlist.Add(newFile);
}
return removed;
}

View File

@ -1,7 +1,7 @@
SoundEnabled True
LastRomPath D:\TAS\adelikatTAS\Archive
LastRomPath D:\TAS\adelikatTAS\zFun
AutoLoadMostRecentRom True
RecentRoms 8@"D:\TAS\adelikatTAS\Archive\Ninja Gaiden (U) [!].gg"|
RecentRoms 8@"D:\TAS\adelikatTAS\Archive\Ninja Gaiden (U) [!].gg"|"D:\TAS\adelikatTAS\zFun\Alien 3 (E) [!].sms"|
HardResetBinding LeftShift+Tab
FastForwardBinding J1 B6
RewindBinding J1 B5