Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. private void rickRoll_CheckedChanged(object sender, EventArgs e)
  2. {
  3. uint num;
  4. XboxConsole rick = manager.OpenConsole(manager.DefaultConsole);
  5. string lyricspath = @"c:\lyrics.txt";
  6. TextReader reader = new StreamReader(lyricspath);
  7. int start = 0;
  8. string[] read = File.ReadAllLines(lyricspath);
  9. string join = String.Join(" ", read);
  10. int number = join.Length;
  11. while (true)
  12. {
  13. if (rickRoll.Checked == true)
  14. {
  15. Application.DoEvents();
  16. Thread.Sleep(150);
  17. start++;
  18. if (start == number)
  19. {
  20. start = 0;
  21. }
  22. string str = join.Substring(start, 15);
  23. byte[] bytes = Encoding.BigEndianUnicode.GetBytes(str);
  24. rick.DebugTarget.SetMemory(0x81cfaafc, (uint)bytes.Length, bytes, out num);
  25. }
  26. else
  27. {
  28. break;
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment