Esempio n. 1
0
        internal static void Boot(params string[] args)
        {
            ModContentManager.OnGuessType += ContentGuessType;

            ModManager.Boot("FEZMod", VersionString, new CoreModule());

            string modContent = Path.Combine(ModManager.PathGame, "ModContent");

            if (!Directory.Exists(modContent))
            {
                Directory.CreateDirectory(modContent);
            }
            ModContentManager.Crawl(new DirectoryModContent(modContent));
            ModContentManager.Crawl(new AssemblyModContent(Assembly.GetEntryAssembly()));

            FNAHooks.Initialize();

            Queue <string> queue = new Queue <string>(args);

            while (queue.Count > 0)
            {
                string arg = queue.Dequeue();

                if (arg == "--dump-all")
                {
                    DumpAllPacks();
                }
            }
        }