void RefreshSaveGames() { string[] files = Burntime.Platform.IO.FileSystem.GetFileNames("savegame/", ".sav"); for (int i = 0; i < 8; i++) { if (files.Length > i) { SaveGame game = new SaveGame("savegame/" + files[i]); savegames[i].Text = files[i].ToUpper(); savegames[i].Font = game.Version == BurntimeClassic.SavegameVersion ? green : disabled; savegames[i].SetTextOnly(); game.Close(); } else { savegames[i].Text = ""; } } }