コード例 #1
0
ファイル: Avd.cs プロジェクト: Xtremrules/dot42
        /// <summary>
        /// Default ctor
        /// </summary>
        public Avd(string rootFolder, string name)
        {
            this.rootFolder = rootFolder;
            this.name = name;

            var infoPath = Path.Combine(rootFolder, name + AvdConstants.AvdInfoExtension);
            infoFile = new InfoFile(infoPath);
            var avdFolder = infoFile.Path ?? Path.Combine(rootFolder, name + AvdConstants.AvdFolderExtension);
            configFile = new ConfigFile(avdFolder);
            if (infoFile.Path == null)
            {
                infoFile.Path = avdFolder;
            }
        }
コード例 #2
0
ファイル: Avd.cs プロジェクト: yuva2achieve/dot42
        /// <summary>
        /// Default ctor
        /// </summary>
        public Avd(string rootFolder, string name)
        {
            this.rootFolder = rootFolder;
            this.name       = name;

            var infoPath = Path.Combine(rootFolder, name + AvdConstants.AvdInfoExtension);

            infoFile = new InfoFile(infoPath);
            var avdFolder = infoFile.Path ?? Path.Combine(rootFolder, name + AvdConstants.AvdFolderExtension);

            configFile = new ConfigFile(avdFolder);
            if (infoFile.Path == null)
            {
                infoFile.Path = avdFolder;
            }
        }