Ejemplo n.º 1
0
        private static void ConfigureEnvironment()
        {
            ConsoleBackend.Instance.WindowTitle = "Renode";

            string configFile = null;
            string emul8Dir;

            if (Misc.TryGetEmul8Directory(out emul8Dir))
            {
                var localConfig = Path.Combine(emul8Dir, "renode.config");
                if (File.Exists(localConfig))
                {
                    configFile = localConfig;
                }
            }

            Emulator.UserDirectoryPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), ".renode");
            ConfigurationManager.Initialize(configFile ?? Path.Combine(Emulator.UserDirectoryPath, "config"));
            TemporaryFilesManager.Initialize(Path.GetTempPath(), "renode-");
        }