\83\95ã\82©ã\83«ã\83\80.cs - RSS feed" href="/view?p=strokestylet/CsWin10Desktop3.git;a=rss;f=StrokeStyleT/%C3%A3%C2%83%C2%95%C3%A3%C2%82%C2%A9%C3%A3%C2%83%C2%AB%C3%A3%C2%83%C2%80.cs" type="application/rss+xml" /> \83\95ã\82©ã\83«ã\83\80.cs - RSS feed (no merges)" href="/view?p=strokestylet/CsWin10Desktop3.git;a=rss;f=StrokeStyleT/%C3%A3%C2%83%C2%95%C3%A3%C2%82%C2%A9%C3%A3%C2%83%C2%AB%C3%A3%C2%83%C2%80.cs;opt=--no-merges" type="application/rss+xml" /> \83\95ã\82©ã\83«ã\83\80.cs - Atom feed" href="/view?p=strokestylet/CsWin10Desktop3.git;a=atom;f=StrokeStyleT/%C3%A3%C2%83%C2%95%C3%A3%C2%82%C2%A9%C3%A3%C2%83%C2%AB%C3%A3%C2%83%C2%80.cs" type="application/atom+xml" /> \83\95ã\82©ã\83«ã\83\80.cs - Atom feed (no merges)" href="/view?p=strokestylet/CsWin10Desktop3.git;a=atom;f=StrokeStyleT/%C3%A3%C2%83%C2%95%C3%A3%C2%82%C2%A9%C3%A3%C2%83%C2%AB%C3%A3%C2%83%C2%80.cs;opt=--no-merges" type="application/atom+xml" />

OSDN Git Service

SoundTimer を廃止し、デバイス位置取得機能を Device に組み込む。
[strokestylet/CsWin10Desktop3.git] / StrokeStyleT / ã\83\95ã\82©ã\83«ã\83\80.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Diagnostics;
4 using System.IO;
5 using System.Linq;
6 using System.Reflection;
7
8 namespace SST
9 {
10         class フォルダ : FDK.フォルダ
11         {
12                 /// <summary>
13                 /// 静的な(アプリを通じて不変の)リソースファイルが置かれる場所のルートフォルダ。絶対パス。
14                 /// 具体的には、exe のあるフォルダ。
15                 /// </summary>
16                 public string StaticFolder => Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location );
17
18                 /// <summary>
19                 /// 共通データが保存される場所のルートフォルダ。絶対パス。
20                 /// 具体的には、%APPDATA%\StrokeStyleT\ 。
21                 /// </summary>
22                 public string AppDataFolder => Path.Combine(
23                         Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData, Environment.SpecialFolderOption.Create ),
24                         @"StrokeStyleT\" );
25
26                 /// <summary>
27                 /// SSTユーザごとに用意されたデータの保存場所。絶対パス表記。
28                 /// 具体的には %APPDATA%\StrokeStyleT\Users\SSTユーザ名\ 。
29                 /// </summary>
30                 public string UserFolder( string SSTユーザ名 ) => Path.Combine( this.AppDataFolder, $@"Users\{SSTユーザ名}\" );
31         }
32 }