Exemple #1
0
        public DeCompiler()
        {
            FunctionTable.LoadData();

            this.Analyse = new Analyse();

            //this.Analyse.NewBase = 605;
            //this.ValueList = new List<ValueViewModel>();
        }
        public MainWindowViewModel()
        {
            FunctionTable.LoadData();

            this.Analyse = new Analyse();

            this.ValueList = new List <ValueViewModel>();

            //this.FileName = @"F:\Games\Call Of Cthulhu DCoTE\Scripts\gamescripts\08_boat\yithmindswaps\ms_caproomdeepattack.bin";
            //this.FileName = @"S:\Games\Call Of Cthulhu DCoTE\Scripts\bin\scripts\10_air_filled_tunnels\tunnelsstartup.bin";
            this.FileName = @"C:\workspaces\DCoTEIDE\DCoTE\originalbin\gamescripts\07_esoteric_order\health_monitoring\monitor_crawling_health.bin";
            //this.NewBase = 760;
        }
Exemple #3
0
        static void Main(string[] args)
        {
            FunctionTable.LoadData();

            Analyse analyse = new Analyse();

            //analyse.Files.Add(@"F:\Games\Call Of Cthulhu DCoTE\Testing\0.bin");
            //analyse.Files.Add(@"F:\Games\Call Of Cthulhu DCoTE\Testing\1.bin");
            //analyse.Files.Add(@"F:\Games\Call Of Cthulhu DCoTE\Testing\2.bin");
            //analyse.Files.Add(@"F:\Games\Call Of Cthulhu DCoTE\Testing\3.bin");
            //analyse.Files.Add(@"F:\Games\Call Of Cthulhu DCoTE\Testing\4.bin");
            //analyse.Files.Add(args[0]);

            if (args.Length > 1)
            {
                analyse.SaveAsNew = (args[1] != "asold");
                analyse.BuildNew  = (args[1] == "buildnew");
            }

            analyse.NewBase = 605;
            //1AE = 430
            //25D = 605
            //2F8 = 760
            if (args.Length > 2)
            {
                short parseShort = 0;
                short.TryParse(args[2], out parseShort);
                analyse.NewBase = parseShort;
            }

            ParsedContent parsedContent = analyse.AnalyseFile(args[0]);

            analyse.PostAnalysis(parsedContent);

            Console.WriteLine("Finished.");
            //Console.ReadLine();
        }