Exemplo n.º 1
0
        private void saveData()
        {
            int i = friendList.SelectedIndex;

            savePlayer(i);

            for (int g = 0; g < PlayersData.Length; g++)
            {
                Array.Copy(PlayersData[g].Write(), 0, Save.Data, 0x4 + g * 0x14B0, 0x14B0);
            }

            Main.SaveData = Save.Write();

            Verification.fixChecksums(ref Main.SaveData);
            File.WriteAllBytes(path, Main.SaveData);
        }
Exemplo n.º 2
0
 private void saveData()
 {
     Main.SaveData = Save.Write();
 }