Esempio n. 1
0
        public UnrealIniWriter(UnrealIniData data)
        {
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            _data = data;
        }
Esempio n. 2
0
        public UnrealConfig(string iniPath)
        {
            if (string.IsNullOrEmpty(iniPath))
                throw new ArgumentException("iniPath");

            _iniPath = iniPath;

            if (File.Exists(_iniPath))
            {
                using(var stream = new FileStream(_iniPath, FileMode.Open))
                {
                    _data = new UnrealIniParser(stream).Data;
                }
            }
            else
                throw new FileNotFoundException("Unable to locate " + _iniPath);
        }
Esempio n. 3
0
        public UnrealConfig(string iniPath)
        {
            if (string.IsNullOrEmpty(iniPath))
            {
                throw new ArgumentException("iniPath");
            }

            _iniPath = iniPath;

            if (File.Exists(_iniPath))
            {
                using (var stream = new FileStream(_iniPath, FileMode.Open))
                {
                    _data = new UnrealIniParser(stream).Data;
                }
            }
            else
            {
                throw new FileNotFoundException("Unable to locate " + _iniPath);
            }
        }