public string[] GetSavegameNames(IGameData gameData, out int current)
        {
            current = 0;

            if (File.Exists(savesPath))
            {
                return(SavegameSerializer.GetSavegameNames(new DataReader(File.ReadAllBytes(savesPath)), ref current));
            }
            else if (!gameData.Files.ContainsKey("Saves"))
            {
                return(Enumerable.Repeat("", 10).ToArray());
            }
            else
            {
                return(SavegameSerializer.GetSavegameNames(gameData.Files["Saves"].Files[1], ref current));
            }
        }
 public void WriteSavegameName(IGameData gameData, int slot, ref string name)
 {
     SavegameSerializer.WriteSavegameName(gameData, slot, ref name);
 }