private void restoreToolStripMenuItem_Click(object sender, EventArgs e) { try { Dank.SetMeme(restoreGame, restore); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public static void ChangeString(uint freemem, byte[] value, string inputBox, uint pointer) { Dank.SetMeme(freemem, clearmem); Dank.WriteString(freemem, inputBox); Dank.SetMeme(pointer, value); }
public static void SetName(uint Offset, string Text) { byte[] bytes = Encoding.ASCII.GetBytes(Text); Array.Resize <byte>(ref bytes, bytes.Length + 1); Dank.SetMeme(Offset, bytes); }