coolerfarmer

Untitled

Sep 25th, 2014
5,760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. SWFReader reader = new SWFReader("ClientLibCommon.dat");
  2. foreach (Tag tag in reader.Tags)
  3. {
  4. if (tag is DoABC)
  5. {
  6. DoABC abcTag = (DoABC)tag;
  7. if (abcTag.Name.Contains("riotgames/platform/gameclient/application/Version"))
  8. {
  9. var str = System.Text.Encoding.Default.GetString(abcTag.ABCData);
  10. //Ugly hack ahead - turn back now! (http://pastebin.com/yz1X4HBg)
  11. string[] firstSplit = str.Split((char)6);
  12. string[] secondSplit = firstSplit[0].Split((char)19);
  13. Client.Version = secondSplit[1];
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment