Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void rickRoll_CheckedChanged(object sender, EventArgs e)
- {
- uint num;
- XboxConsole rick = manager.OpenConsole(manager.DefaultConsole);
- string lyricspath = @"c:\lyrics.txt";
- TextReader reader = new StreamReader(lyricspath);
- int start = 0;
- string[] read = File.ReadAllLines(lyricspath);
- string join = String.Join(" ", read);
- int number = join.Length;
- while (true)
- {
- if (rickRoll.Checked == true)
- {
- Application.DoEvents();
- Thread.Sleep(150);
- start++;
- if (start == number)
- {
- start = 0;
- }
- string str = join.Substring(start, 15);
- byte[] bytes = Encoding.BigEndianUnicode.GetBytes(str);
- rick.DebugTarget.SetMemory(0x81cfaafc, (uint)bytes.Length, bytes, out num);
- }
- else
- {
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment