Exemple #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;
 }
Exemple #2
0
        public static void Main(string[] args)
        {
            MKL.Version("ScenLang - Creation Wizard - ScenLangCreate.cs", "18.10.23");
            MKL.Lic("ScenLang - Creation Wizard - ScenLangCreate.cs", "GNU General Public License 3");
            JCR6_lzma.Init();
            Application.Init();
            MainWindow win = new MainWindow();

            win.ModifyBg(StateType.Normal, new Gdk.Color(0, 0, 25));
            win.Title = "ScenLang Creator - version " + MKL.Newest;
            win.SetSizeRequest(1000, 500);
            var mainbox = new HBox(); win.Add(mainbox);

            mainbox.SetSizeRequest(400, 500);
            var mascot = new Image();

            mascot.SetAlignment(0, 1);
            mainbox.Add(mascot);
            LoadMascot(mascot);
            mascot.SetSizeRequest(400, 500);
            workbox = new VBox(); mainbox.Add(workbox);
            workbox.SetSizeRequest(600, 500);
            AddEntry("Project", "Project directory:", true);
            AddEntry("Author", "Author:");
            AddEntry("License", "License:");
            var langbox = new HBox();

            langbox.SetSizeRequest(600, 380);
            var langlabel = new Label("Laguages:\n(Put every language on a new line)");

            langlabel.SetSizeRequest(300, 380);
            langlabel.SetAlignment(0, 0);
            langlabel.ModifyFg(StateType.Normal, new Gdk.Color(255, 255, 0));
            var scroll = new ScrolledWindow();

            Languages = new TextView();
            scroll.Add(Languages);
            scroll.SetSizeRequest(300, 380);
            Languages.ModifyBase(StateType.Normal, new Gdk.Color(0, 18, 25));
            Languages.ModifyText(StateType.Normal, new Gdk.Color(0, 180, 255));
            langbox.Add(langlabel);
            langbox.Add(scroll);
            workbox.Add(langbox);
            var finbox  = new HBox();
            var goforit = new Button("Create Project");

            finbox.Add(new HBox());
            finbox.Add(goforit);
            goforit.Clicked += OnGoForIt;
            workbox.Add(finbox);
            win.ShowAll();
            Application.Run();
        }
Exemple #3
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
        }
Exemple #4
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();
 }
Exemple #5
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();
 }
Exemple #6
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();
 }
Exemple #7
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);
        }
Exemple #8
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();
        }
Exemple #9
0
 public static void Go()
 {
     JCR6_lzma.Init();
     JCR6_jxsrcca.Init();
     JCR6_zlib.Init();
 }
Exemple #10
0
 private static void InitArgs()
 {
     JCR6_lzma.Init();
     MyArgs.CrBool("version", false);
     MyArgs.CrBool("help", false);
     MyArgs.CrBool("h", false);
     if (!MyArgs.Parse(true))
     {
         throw new Exception("Invalid input");
     }
     if (MyArgs.GetBool("version"))
     {
         Head();
         Console.WriteLine(MKL.All(true));
         Environment.Exit(0);
     }
     if (MyArgs.GetBool("h") || MyArgs.GetBool("help"))
     {
         Head();
         Console.ForegroundColor = ConsoleColor.Cyan;
         Console.Write("MKL_Update ");
         Console.ForegroundColor = ConsoleColor.Yellow;
         Console.WriteLine("[<dir1> [<dir2> [<dir3>....]]]");
         Console.ForegroundColor = ConsoleColor.Gray;
         Console.WriteLine("\tUpdates the MKL data and license blocks in given directories. If none given, the current directory will be done");
         Console.ForegroundColor = ConsoleColor.Cyan;
         Console.Write("MKL_Update ");
         Console.ForegroundColor = ConsoleColor.Magenta;
         Console.WriteLine("-h");
         Console.ForegroundColor = ConsoleColor.Cyan;
         Console.Write("MKL_Update ");
         Console.ForegroundColor = ConsoleColor.Magenta;
         Console.WriteLine("-help");
         Console.ForegroundColor = ConsoleColor.Gray;
         Console.WriteLine("\tShows this help text");
         Console.ForegroundColor = ConsoleColor.Cyan;
         Console.Write("MKL_Update ");
         Console.ForegroundColor = ConsoleColor.Magenta;
         Console.WriteLine("-version");
         Console.ForegroundColor = ConsoleColor.Gray;
         Console.WriteLine("\tShows detailed version information");
         Console.WriteLine("\n\n\nThe next programming languages are supported by MKL_Update");
         foreach (string k in JCR.Entries.Keys)
         {
             if (qstr.Prefixed(k, "EXT/"))
             {
                 TGINI T = GINI.ReadFromLines(JCR.ReadLines(k));
                 // Console.WriteLine($"{k} => {qstr.Prefixed(k, "EXT/")}"); // debug line
                 Console.ForegroundColor = ConsoleColor.Yellow;
                 Console.BackgroundColor = ConsoleColor.Blue;
                 Console.Write(k.ToLower());
                 for (int i = k.Length; i < 30; i++)
                 {
                     Console.Write(" ");
                 }
                 Console.BackgroundColor = ConsoleColor.Black;
                 Console.ForegroundColor = ConsoleColor.Magenta;
                 Console.WriteLine($" {T.C("LANGUAGE")}");
             }
         }
         Console.ResetColor();
         Environment.Exit(0);
     }
 }