Exemple #1
0
        public AppSettings()
        {
            _instance = this;

            string config;
            try
            {
                System.IO.StreamReader rd = new System.IO.StreamReader(AppSettings.BaseDirectory+"\\App.cfg");
                config = rd.ReadToEnd();
                rd.Close();
            }
            catch
            {
                config = @"
            Dev
            Defines
            proj=..\..\#exe#
            Prod
            Defines
            proj=#exe#
            All
            Media
            #exe#Media";
            }

            this._root = this.Load(AppSettings.RunMode, config);

            string[] paths = this["Media"];
        }
Exemple #2
0
        private Form _startupForm; //TODO: shouldn't have such a thing, console startup rather...

        #endregion Fields

        #region Constructors

        public EndogineHub(string a_sApplicationPath)
        {
            m_sApplicationPath = a_sApplicationPath;

            m_pntMouseLoc = new EPoint();
            m_endogine = this;

            AppSettings app = new AppSettings();

            string s = AppSettings.Instance.GetNodeText("DisplayMode.Fullscreen");
            if (s != null)
                m_bFullscreen = Convert.ToBoolean(s);

            s = AppSettings.Instance.GetNodeText("DisplayMode.Renderer");
            if (s != null)
                this._renderStrategy = s;
        }