private void SaveRecentGamesList()
{
RegistryKey key = Utilities.OpenAGSRegistryKey();
if (key == null)
{
Factory.GUIController.ShowMessage("Unable to access registry key: " + AGSEditor.AGS_REGISTRY_KEY, System.Windows.Forms.MessageBoxIcon.Warning);
}
else
{
int i = 0;
foreach (RecentlyEditedGame game in _recentGames)
{
key.SetValue("RecentPath" + i, game.DirectoryPath);
key.SetValue("RecentName" + i, game.GameName);
i++;
}
key.DeleteValue("RecentPath" + i, false);
key.Close();
}
}