예제 #1
0
        void DumpShit()
        {
            unsafe
            {
                //IntPtr filePtr = IO.LoadLibrary("C:\\SteamLibrary\\steamapps\\common\\BloonsTD6\\GameAssembly.dll");

                //byte* peFile = (byte*)(filePtr);

                //Dictionary<string, UInt64> MemoryExports = PE.dumpSymbolsFromMemory(peFile);
                //// Works!

                //byte[] Bin = File.ReadAllBytes("C:\\SteamLibrary\\steamapps\\common\\BloonsTD6\\GameAssembly.dll");


                //Dictionary<string, UInt64> FileExports;

                //fixed (byte* pBin = Bin)
                //{
                //    FileExports = PE.dumpSymbolsFromFile(pBin);
                //}


                AheadOfTime.Initialise(launcherConfig);

                Logger.initialise(launcherConfig.configDir);

                int x = 5;
            }
        }
 public IEnumerable <int> GetSelectedAheadOfTimeValuesIDs()
 {
     return(AheadOfTime
            .Where(a => a.Selected == true)
            .Select(n => int.Parse(n.Value))
            .ToList());
 }
        public void SetAheadOfTimeValuesAsSelected(IEnumerable <int> aheadOfTimeValuesIds)
        {
            if (aheadOfTimeValuesIds == null)
            {
                return;
            }

            AheadOfTime
            .Where(a => aheadOfTimeValuesIds.Contains(int.Parse(a.Value)))
            .ToList()
            .ForEach(a => a.Selected = true);
        }