コード例 #1
0
ファイル: CommandContext.cs プロジェクト: wlclass/Photon
        public void Initialize()
        {
            var commonDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
            var appDataPath    = Path.Combine(commonDataPath, "Photon", "CLI");

            var serverDefinitionsFilename = Path.Combine(appDataPath, "servers.json");

            Servers = File.Exists(serverDefinitionsFilename)
                ? ServerCollection.Load(serverDefinitionsFilename)
                : new ServerCollection(serverDefinitionsFilename);
        }
コード例 #2
0
ファイル: CommandContext.cs プロジェクト: wlclass/Photon
 public CommandContext()
 {
     Servers = new ServerCollection();
 }