Пример #1
0
 static void Init()
 {
     MKL.Lic("NJCR - NJCR.cs", "GNU General Public License 3");
     MKL.Version("NJCR - NJCR.cs", "21.03.09");
     JCR6_lzma.Init();
     JCR6_zlib.Init();
     JCR6_jxsrcca.Init();
     JCR_JCR5.Init();
     JCR6_JXSDA.Init();
     new JCR6_WAD();
     new JCR_QuakePack();
     new JCR_a();
     new JCR_QuickLink();
     new JCR_WestwoodPAK();
     Dirry.InitAltDrives();
     Register("ADD", new F_Add());
     Register("DELETE", new F_Delete());
     Register("EXTRACT", new F_Extract());
     Register("TYPE", new F_Type());
     Register("HEX", new F_HEX());
     {
         var V = new F_Verbose();
         Register("VIEW", V);
         Register("LIST", V);
         Register("VERBOSE", V);
     }
     Register("SHOW", new F_Show());
     Register("SCRIPT", new F_Script());
     Register("SUPPORT", new F_Support());
     //Register("QUHELP", new F_QU_Help());
     QCol.DoingTab = 20;
 }
Пример #2
0
        static void Main(string[] args)
        {
            JCR6_lzma.Init();
            JCR6_zlib.Init();
            MKL_Run.MKL_See();
            Extension.VER();
            License.VER();
            MKL.Lic("MKL Update - Main.cs", "GNU General Public License 3");
            MKL.Version("MKL Update - Main.cs", "20.04.28");
#if argdebug
            for (int i = 0; i < args.Length; i++)
            {
                Console.Write(qstr.sprintf("%d:%s", i, args[i]));
            }
#endif
            MyArgs = new FlagParse(args);
            InitArgs();
            Head();
            string[] dirs;
            if (MyArgs.Args.Length == 0)
            {
                dirs = new string[] { System.IO.Directory.GetCurrentDirectory() }
            }
            ; else
            {
                dirs = MyArgs.Args;
            }
            foreach (string q in dirs)
            {
                Console.Write("Will process:      ");
                Console.ForegroundColor = ConsoleColor.Magenta;
                Console.WriteLine(q);
                Console.ResetColor();
            }
            foreach (string dir in dirs)
            {
                MKL_Run.Run(dir);
            }

#if DEBUG
            // Only meant for running in debug mode, as in release mode this doesn't matter.
            // Visual Studio closes the window immediately and I may need the last output, you see!
            Console.WriteLine("Hit any key");
            Console.ReadKey();
#else
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Ok"); // Homage to my old P2000T experiences!
            Console.ForegroundColor = ConsoleColor.Gray;
#endif
        }
Пример #3
0
 void main(string[] args)
 {
     MKL.Version("TeddyBear - TeddyXPort.cs", "19.04.05");
     MKL.Lic("TeddyBear - TeddyXPort.cs", "GNU General Public License 3");
     cwrite(ConsoleColor.Yellow, "TeddyBear Exporter ");
     cwriteln(ConsoleColor.Cyan, "\tCoded by: Jeroen P. Broks");
     cwriteln(ConsoleColor.Magenta, $"(c) {MKL.CYear(2019)} Jeroen P. Broks, Released under the terms of the GPL 3\n");
     XPort.init();
     JCR6_lzma.Init();
     JCR6_zlib.Init();
     LoadMainConfig();
     SetupProject(args);
     CreateTo();
     TranslateMaps();
 }
Пример #4
0
 static void Main(string[] args)
 {
     Dirry.InitAltDrives();
     JCR6_lzma.Init();
     JCR6_zlib.Init();
     if (args.Length != 1)
     {
         Console.WriteLine("Usage: KthuraConvert <Project>");
     }
     else
     {
         var M = new Program(args[0]);
         M.Run();
     }
     TrickyDebug.AttachWait();
 }
Пример #5
0
 static Core()
 {
     MKL.Lic("Stach - Core.cs", "GNU General Public License 3");
     MKL.Version("Stach - Core.cs", "21.03.09");
     FFS.Hello();
     Debug.WriteLine($"Running on {Platform}");
     Dirry.InitAltDrives();
     Config = GINIE.FromFile($"{Dirry.C("$AppSupport$/Stach.ini")}");
     Config.AutoSaveSource = $"{Dirry.C("$AppSupport$/Stach.ini")}";
     JCR6_lzma.Init();
     JCR6_jxsrcca.Init();
     JCR6_zlib.Init();
     new JCR_QuakePack();
     new JCR_a();
     new JCR_QuickLink();
     JCR_JCR5.Init();
     new JCR6_WAD();
     new JCR_WestwoodPAK();
 }
Пример #6
0
        static void Main(string[] args)
        {
            JCR6_lzma.Init();
            JCR6_zlib.Init();
            JCR6_jxsrcca.Init();
            SBubble.Init("CLI", ErrorHandler);
            var mainfile = "";

            foreach (string e in SBubble.ResFiles)
            {
                var ce = e.ToUpper();
                if (ce == "MAIN.LUA" || qstr.Suffixed(ce, "/MAIN.LUA"))
                {
                    mainfile = e;
                }
            }
            if (mainfile == "")
            {
                ErrorHandler("Bubble", "No main script could be found", "");
            }
            SBubble.NewState("MAIN", mainfile);
            object[] r   = null;
            string   cmd = "";

            try {
                cmd = $"assert(main and type(main)==\"function\",\"No 'main' function found!\")\nreturn main({SBubble.StringArray2Lua(args)},\"{MKL.MyExe.Replace("\\", "/")}\")";
                r   = SBubble.State("MAIN").DoString(cmd);
            } catch (Exception e) {
                ErrorHandler("Main call", e.Message, cmd);
            }
            long exitcode = 0;

            try {
                if (r != null && r[0] != null)
                {
                    exitcode = (long)(r[0]);
                }
            } catch (Exception e) {
                ErrorHandler("Main Function", "Main function must either return 'nil' or an integer value!", $"{e.Message}\n\n{r[0].GetType()}");
            }
            Environment.Exit((int)exitcode);
        }
Пример #7
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here

            // JCR6
            JCR6_lzma.Init();
            JCR6_zlib.Init();
            JCR6_jxsrcca.Init();

            // I want 800x600
            graphics.PreferredBackBufferWidth  = 800; // set this value to the desired width of your window
            graphics.PreferredBackBufferHeight = 600; // set this value to the desired height of your window
            graphics.ApplyChanges();

            // Bubble
            // TODO: Link the error handler!
            SBubble.Init("MONOGAME", Error.GoError);
            this.Window.Title = SBubble.Title;



            base.Initialize();
        }
Пример #8
0
 public static void Go()
 {
     JCR6_lzma.Init();
     JCR6_jxsrcca.Init();
     JCR6_zlib.Init();
 }