예제 #1
0
        static void Main(string[] args)
        {
            LegendaryExplorerCoreLib.InitLib(TaskScheduler.Current);
            MEPackageHandler.GlobalSharedCacheEnabled = false;

            // Scratch projects here.
            var package = MEPackageHandler.OpenMEPackage(@"C:\users\mgamerz\desktop\BioD_Nor_100Cabin.pcc");

            var size1 = package.Imports[0].Header.Length;

            foreach (var v in package.Imports)
            {
                if (v.Header.Length != size1)
                {
                    Debugger.Break();
                }
            }

            var streamSaved = package.SaveToStream(true);

            streamSaved.Position = 0;
            var p2 = MEPackageHandler.OpenMEPackageFromStream(streamSaved);

            Console.WriteLine("Hello World!");
        }
예제 #2
0
        internal static void Init()
        {
            if (!initialized)
            {
                //Utilities.ExtractInternalFile("MassEffectModManagerCore.bundleddlls.sevenzipwrapper.dll", Path.Combine(Utilities.GetDllDirectory(), "sevenzipwrapper.dll"), false, Assembly.GetAssembly(typeof(GameTarget)));
                //Utilities.ExtractInternalFile("MassEffectModManagerCore.bundleddlls.lzo2wrapper.dll", Path.Combine(Utilities.GetDllDirectory(), "lzo2wrapper.dll"), false, Assembly.GetAssembly(typeof(GameTarget)));
                //Utilities.ExtractInternalFile("MassEffectModManagerCore.bundleddlls.zlibwrapper.dll", Path.Combine(Utilities.GetDllDirectory(), "zlibwrapper.dll"), false, Assembly.GetAssembly(typeof(GameTarget)));
                //SetDllDirectory(Utilities.GetDllDirectory());

                LegendaryExplorerCoreLib.InitLib(TaskScheduler.Default, null);

                Analytics.SetEnabledAsync(false);
                Crashes.SetEnabledAsync(false);
                Settings.LogModStartup = true;
                App.BuildNumber        = 105; //THIS NEEDS TO BE UPDATED FOR EVERY MOD THAT TARGETS A NEWER RELEASE
                Log.Logger             = new LoggerConfiguration().WriteTo.Console().WriteTo.Debug().CreateLogger();
                DeleteScratchDir();

                //BackupService.RefreshBackupStatus(null); // used in mixin testing

                initialized = true;
            }
        }