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

            _data = data;
        }
Ejemplo 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);
        }
Ejemplo 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);
            }
        }