예제 #1
0
 private void dumpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
     {
         using (Stream fileStream = File.Create(saveFileDialog.FileName))
         {
             byte[] memoryBuffer = new byte[0x1700];
             Wiimote.ReadMemory(0x000000, memoryBuffer, 0, (short)memoryBuffer.Length);
             fileStream.Write(memoryBuffer, 0, memoryBuffer.Length);
             fileStream.Close();
         }
     }
 }