private void B_Save_Click(object sender, EventArgs e)
{
byte[] puffarray = new byte[100];
int emptyslots = 0;
for (int i = 0; i < 100; i++)
{
string puff = dataGridView1.Rows[i].Cells[1].Value.ToString();
if (Array.IndexOf(pfa, puff) == 0)
{
emptyslots++;
continue;
}
puffarray[i - emptyslots] = (byte) Array.IndexOf(pfa, puff);
}
Array.Copy(puffarray, 0, sav, 0x5400 + savindex*0x7F000, 100);
Array.Copy(sav, m_parent.savefile, 0x100000);
m_parent.savedited = true;
Close();
}
}