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; }
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(); }
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); }
/// <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(); }
public static void Go() { JCR6_lzma.Init(); JCR6_jxsrcca.Init(); JCR6_zlib.Init(); }