public void Start()
        {
            BuildEnvironment();
            BuildLogger();

            CheckForLegacyArchive();

            var assemblies = AssemblyLoader.loadedAssemblies.Where(a => a.dllName.StartsWith("kOS.") || a.dllName.Equals("kOS") || a.dependencies.Where(d => d.name.Equals("kOS")).Any()).Select(a => a.assembly).ToArray();

            AssemblyWalkAttribute.Walk(assemblies);
        }
Exemple #2
0
        public void Start()
        {
            legacyArchiveFolder = GameDatabase.Instance.PluginDataFolder + "/Plugins/PluginData/Archive/";
            backupFolder        = GameDatabase.Instance.PluginDataFolder + "/GameData/kOS/Backup_" + DateTime.Now.ToFileTimeUtc();
            BuildEnvironment();
            BuildLogger();

            CheckForLegacyArchive();

            CheckForUnpickedFont();

            var assemblies = AssemblyLoader.loadedAssemblies.Where(a => a.dllName.StartsWith("kOS.") || a.dllName.Equals("kOS") || a.dependencies.Where(d => d.name.Equals("kOS")).Any()).Select(a => a.assembly).ToArray();

            AssemblyWalkAttribute.Walk(assemblies);
        }
Exemple #3
0
        public void Setup()
        {
            SafeHouse.Init(new Config(), new VersionInfo(0, 0, 0, 0), "", false, "./");
            SafeHouse.Logger = new NoopLogger();

            try
            {
                AssemblyWalkAttribute.Walk();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.WriteLine(e.StackTrace);
                throw;
            }
        }
Exemple #4
0
        static void Main(string[] args)
        {
            SafeHouse.Init(new Execution.Config(), new VersionInfo(0, 0, 0, 0), "", false, Directory.GetCurrentDirectory());
            SafeHouse.Logger = new NoopLogger();

            try
            {
                AssemblyWalkAttribute.Walk();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.WriteLine(e.StackTrace);
                throw;
            }

            MainAsync(args).Wait();
        }
Exemple #5
0
        public void Setup()
        {
            SafeHouse.Init(new Config(), new VersionInfo(0, 0, 0, 0), "", false, "");
            SafeHouse.Logger = new NoopLogger();

            try
            {
                AssemblyWalkAttribute.Walk();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.WriteLine(e.StackTrace);
                throw;
            }

            baseDir = Directory.GetCurrentDirectory();

            screen = new Execution.Screen();

            shared = new SafeSharedObjects();
            shared.FunctionManager          = new FunctionManager(shared);
            shared.GameEventDispatchManager = new NoopGameEventDispatchManager();
            shared.Processor     = new NoopProcessor();
            shared.ScriptHandler = new KSScript();
            shared.Screen        = screen;
            shared.UpdateHandler = new UpdateHandler();
            shared.VolumeMgr     = new VolumeManager();
            shared.Logger        = new TerminalLogger();

            shared.FunctionManager.Load();

            Archive archive = new Archive(baseDir);

            shared.VolumeMgr.Add(archive);
            shared.VolumeMgr.SwitchTo(archive);

            cpu = new CPU(shared);
        }