Remove useless menu options, improve config menu japanese translations, regroup file format calls into a single variable
This commit is contained in:
parent
2bc3340f06
commit
9a058527f6
@ -9,6 +9,7 @@ namespace FDK
|
||||
/// <summary>
|
||||
/// 汎用的な .iniファイルを扱う。
|
||||
/// </summary>
|
||||
|
||||
public class CIniFile
|
||||
{
|
||||
// プロパティ
|
||||
@ -54,7 +55,7 @@ namespace FDK
|
||||
CSection section = null;
|
||||
try
|
||||
{
|
||||
sr = new StreamReader( this.strファイル名, Encoding.GetEncoding( "Shift_JIS" ) ); // ファイルが存在しない場合は例外発生。
|
||||
sr = new StreamReader( this.strファイル名, Encoding.GetEncoding("Shift_JIS") ); // ファイルが存在しない場合は例外発生。
|
||||
|
||||
string line;
|
||||
while( ( line = sr.ReadLine() ) != null )
|
||||
|
@ -1483,7 +1483,7 @@ namespace TJAPlayer3
|
||||
}
|
||||
public void t書き出し( string iniファイル名 )
|
||||
{
|
||||
StreamWriter sw = new StreamWriter( iniファイル名, false, Encoding.GetEncoding( "Shift_JIS" ) );
|
||||
StreamWriter sw = new StreamWriter( iniファイル名, false, Encoding.GetEncoding(TJAPlayer3.sEncType) );
|
||||
sw.WriteLine( ";-------------------" );
|
||||
|
||||
#region [ System ]
|
||||
@ -2052,7 +2052,7 @@ namespace TJAPlayer3
|
||||
{
|
||||
string str;
|
||||
this.tキーアサインを全部クリアする();
|
||||
using ( StreamReader reader = new StreamReader( this.ConfigIniファイル名, Encoding.GetEncoding( "Shift_JIS" ) ) )
|
||||
using ( StreamReader reader = new StreamReader( this.ConfigIniファイル名, Encoding.GetEncoding(TJAPlayer3.sEncType) ) )
|
||||
{
|
||||
str = reader.ReadToEnd();
|
||||
}
|
||||
|
@ -953,7 +953,7 @@ namespace TJAPlayer3
|
||||
public void LoadSkinConfigFromFile(string path, ref string work)
|
||||
{
|
||||
if (!File.Exists(Path(path))) return;
|
||||
using (var streamReader = new StreamReader(Path(path), Encoding.GetEncoding("Shift_JIS")))
|
||||
using (var streamReader = new StreamReader(Path(path), Encoding.GetEncoding(TJAPlayer3.sEncType)))
|
||||
{
|
||||
while (streamReader.Peek() > -1) // 一行ずつ読み込む。
|
||||
{
|
||||
|
@ -395,6 +395,9 @@ namespace TJAPlayer3
|
||||
this.t起動処理();
|
||||
}
|
||||
|
||||
public static string sEncType = "Shift_JIS";
|
||||
|
||||
|
||||
|
||||
// メソッド
|
||||
|
||||
@ -1997,7 +2000,7 @@ for (int i = 0; i < 3; i++) {
|
||||
{
|
||||
try
|
||||
{
|
||||
Trace.Listeners.Add( new CTraceLogListener( new StreamWriter( System.IO.Path.Combine( strEXEのあるフォルダ, "TJAPlayer3.log" ), false, Encoding.GetEncoding( "Shift_JIS" ) ) ) );
|
||||
Trace.Listeners.Add( new CTraceLogListener( new StreamWriter( System.IO.Path.Combine( strEXEのあるフォルダ, "TJAPlayer3.log" ), false, Encoding.GetEncoding(TJAPlayer3.sEncType) ) ) );
|
||||
}
|
||||
catch ( System.UnauthorizedAccessException ) // #24481 2011.2.20 yyagi
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ namespace TJAPlayer3
|
||||
[5] = "曲データの一覧情報を取得し直します。",
|
||||
[6] = "プレイ人数",
|
||||
[7] = "プレイ人数切り替え:\n2にすると演奏画面が2人プレイ専用のレイアウトになり、\n2P専用譜面を読み込むようになります。",
|
||||
[8] = "Risky",
|
||||
[8] = "完璧モード",
|
||||
[9] = "Riskyモードの設定:\n1以上の値にすると、その回数分の\n可/不可でFAILEDとなります。\n0にすると無効になり、\nDamageLevelに従ったゲージ増減と\nなります。\nStageFailedの設定と併用できます。",
|
||||
[10] = "再生速度",
|
||||
[11] = "曲の演奏速度を、速くしたり遅くした\n" +
|
||||
@ -127,78 +127,78 @@ namespace TJAPlayer3
|
||||
[54] = "スキン切替:\n" +
|
||||
"スキンを切り替えます。\n",
|
||||
[55] = "システムのキー入力に関する項目を設\n定します。",
|
||||
[56] = "AUTO PLAY",
|
||||
[56] = "AUTO 1P",
|
||||
[57] = "すべての音符を自動で演奏します。\n",
|
||||
[58] = "AUTO PLAY 2P",
|
||||
[58] = "AUTO 2P",
|
||||
[59] = "すべての音符を自動で演奏します。\n",
|
||||
[60] = "AUTO Roll",
|
||||
[60] = "AUTO連打",
|
||||
[61] = "OFFにするとAUTO先生が黄色連打を\n" +
|
||||
"叩かなくなります。",
|
||||
[62] = "ScrollSpeed",
|
||||
[62] = "スクロール速度",
|
||||
[63] = "演奏時のドラム譜面のスクロールの\n" +
|
||||
"速度を指定します。\n" +
|
||||
"x0.1 ~ x200.0 を指定可能です。",
|
||||
[64] = "Risky",
|
||||
[64] = "完璧モード",
|
||||
[65] = "Riskyモードの設定:\n" +
|
||||
"1以上の値にすると、その回数分の\n" +
|
||||
"不可で演奏が強制終了します。\n" +
|
||||
"0にすると無効になり、\n" +
|
||||
"ノルマゲージのみになります。\n" +
|
||||
"\n",
|
||||
[66] = "Random",
|
||||
[66] = "出鱈目",
|
||||
[67] = "いわゆるランダム。\n RANDOM: ちょっと変わる\n MIRROR: あべこべ \n SUPER: そこそこヤバい\n HYPER: 結構ヤバい\nなお、実装は適当な模様",
|
||||
[68] = "Stealth",
|
||||
[68] = "ドロン",
|
||||
[69] = "DORON:ドロン\n"+
|
||||
"STEALTH:ステルス",
|
||||
[70] = "NoInfo",
|
||||
[70] = "情報なし",
|
||||
[71] = "有効にすると曲情報などが見えなくなります。\n",
|
||||
[72] = "JUST",
|
||||
[72] = "厳密",
|
||||
[73] = "有効にすると「良」以外の判定が全て不可になります。\n",
|
||||
[74] = "Tight",
|
||||
[74] = "タイト",
|
||||
[75] = "ドラムチップのないところでパッドを\n" +
|
||||
"叩くとミスになります。",
|
||||
[76] = "D-MinCombo",
|
||||
[76] = "最低表示コンボ",
|
||||
[77] = "表示可能な最小コンボ数(ドラム):\n" +
|
||||
"画面に表示されるコンボの最小の数\n" +
|
||||
"を指定します。\n" +
|
||||
"1 ~ 99999 の値が指定可能です。",
|
||||
[78] = "InputAdjust",
|
||||
[78] = "入力微調整",
|
||||
[79] = "ドラムの入力タイミングの微調整を\n" +
|
||||
"行います。\n" +
|
||||
"-99 ~ 99ms まで指定可能です。\n" +
|
||||
"入力ラグを軽減するためには、負の\n" +
|
||||
"値を指定してください。\n",
|
||||
[80] = "DefaultCourse",
|
||||
[80] = "デフォルト難易度",
|
||||
[81] = "デフォルトで選択される難易度\n",
|
||||
[82] = "ScoreMode",
|
||||
[82] = "スコア計算方法",
|
||||
[83] = "スコア計算方法\n" +
|
||||
"TYPE-A: 旧配点\n" +
|
||||
"TYPE-B: 旧筐体配点\n" +
|
||||
"TYPE-C: 新配点\n",
|
||||
[84] = "真打モードを有効にする。",
|
||||
[85] = "BranchGuide",
|
||||
[85] = "譜面分岐ガイド",
|
||||
[86] = "譜面分岐の参考になる数値などを表示します。\n" +
|
||||
"オートプレイだと表示されません。",
|
||||
[87] = "BranchAnime",
|
||||
[87] = "譜面分岐時アニメーション",
|
||||
[88] = "譜面分岐時のアニメーション\n" +
|
||||
"TYPE-A: 太鼓7~太鼓14\n" +
|
||||
"TYPE-B: 太鼓15~\n" +
|
||||
" \n",
|
||||
[89] = "GameMode",
|
||||
[89] = "ゲームモード",
|
||||
[90] = "ゲームモード\n" +
|
||||
"(1人プレイ専用)\n" +
|
||||
"TYPE-A: 完走!叩ききりまショー!\n" +
|
||||
"TYPE-B: 完走!叩ききりまショー!(激辛)\n" +
|
||||
" \n",
|
||||
[91] = "BigNotesJudge",
|
||||
[91] = "大音符判定",
|
||||
[92] = "大音符の両手判定を有効にします。",
|
||||
[93] = "JudgeCountDisp",
|
||||
[93] = "判定数表示",
|
||||
[94] = "左下に判定数を表示します。\n" +
|
||||
"(1人プレイ専用)",
|
||||
[95] = "KEY CONFIG",
|
||||
[95] = "入力設定",
|
||||
[96] = "ドラムのキー入力に関する項目を設\n"+
|
||||
"定します。",
|
||||
[97] = "Capture",
|
||||
[97] = "キャプチャ",
|
||||
[98] = "キャプチャキー設定:\n画面キャプチャのキーの割り当てを設\n定します。",
|
||||
[99] = "LeftRed",
|
||||
[10000] = "左側の面へのキーの割り当てを設\n定します。",
|
||||
@ -216,43 +216,43 @@ namespace TJAPlayer3
|
||||
[10012] = "左側のふちへのキーの\n割り当てを設定します。",
|
||||
[10013] = "RightBlue2P",
|
||||
[10014] = "右側のふちへのキーの\n割り当てを設定します。",
|
||||
[10018] = "TimeStretch",
|
||||
[10019] = "Fullscreen",
|
||||
[10018] = "タイムストレッチ",
|
||||
[10019] = "全画面モード",
|
||||
[10020] = "StageFailed",
|
||||
[10021] = "RandSubBox",
|
||||
[10022] = "VSyncWait",
|
||||
[10022] = "垂直帰線同期",
|
||||
[10023] = "AVI",
|
||||
[10024] = "BGA",
|
||||
[10025] = "PreSoundWait",
|
||||
[10026] = "PreImageWait",
|
||||
[10027] = "Debug Info",
|
||||
[10028] = "BG Alpha",
|
||||
[10029] = "BGM Sound",
|
||||
[10030] = "SaveScore",
|
||||
[10027] = "デバグ情報",
|
||||
[10028] = "BG透明度",
|
||||
[10029] = "音源使用",
|
||||
[10030] = "スコア保存",
|
||||
[10031] = "Apply Loudness Metadata",
|
||||
[10032] = "Target Loudness",
|
||||
[10033] = "Apply SONGVOL",
|
||||
[10034] = "Sound Effect Level",
|
||||
[10035] = "Voice Level",
|
||||
[10036] = "Song Playback Level",
|
||||
[10037] = "Keyboard Level Increment",
|
||||
[10033] = "SONGVOL使用",
|
||||
[10034] = "効果音音量",
|
||||
[10035] = "ボイス音量",
|
||||
[10036] = "音源音量",
|
||||
[10037] = "キーボード音量調整",
|
||||
[10038] = "MusicPreTimeMs",
|
||||
[10039] = "Autosaveresult",
|
||||
[10040] = "SendDiscordPlayingInformation",
|
||||
[10041] = "BufferedInput",
|
||||
[10042] = "TraceLog",
|
||||
[10043] = "SoundType",
|
||||
[10044] = "WASAPIBufSize",
|
||||
[10045] = "ASIO device",
|
||||
[10046] = "UseOSTimer",
|
||||
[10047] = "ShowChara",
|
||||
[10048] = "ShowDancer",
|
||||
[10049] = "ShowMob",
|
||||
[10050] = "ShowRunner",
|
||||
[10051] = "ShowFooter",
|
||||
[10039] = "リザルト画像自動保存",
|
||||
[10040] = "Discord送信",
|
||||
[10041] = "バッファ入力モード",
|
||||
[10042] = "Traceログ出力",
|
||||
[10043] = "サウンド出力方式",
|
||||
[10044] = "WASAPIバッファサイズ",
|
||||
[10045] = "ASIOデバイス",
|
||||
[10046] = "OSタイマー使用",
|
||||
[10047] = "キャラクター表示",
|
||||
[10048] = "踊り子表示",
|
||||
[10049] = "モブ表示",
|
||||
[10050] = "ランナー表示",
|
||||
[10051] = "フッター表示",
|
||||
[10052] = "FastRender",
|
||||
[10053] = "ShowPuchiChara",
|
||||
[10054] = "Skin (全体)",
|
||||
[10053] = "プチキャラ表示",
|
||||
[10054] = "スキン (全体)",
|
||||
[10055] = "キー設定",
|
||||
[10084] = "真打モード",
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace TJAPlayer3
|
||||
|
||||
public void t読み込み( string boxdefファイル名 )
|
||||
{
|
||||
StreamReader reader = new StreamReader( boxdefファイル名, Encoding.GetEncoding( "Shift_JIS" ) );
|
||||
StreamReader reader = new StreamReader( boxdefファイル名, Encoding.GetEncoding(TJAPlayer3.sEncType) );
|
||||
string str = null;
|
||||
while( ( str = reader.ReadLine() ) != null )
|
||||
{
|
||||
|
@ -1957,12 +1957,12 @@ namespace TJAPlayer3
|
||||
//TimeSpan span;
|
||||
string[] files = Directory.GetFiles(this.strフォルダ名, "*.tja");
|
||||
|
||||
StreamReader reader = new StreamReader(strファイル名, Encoding.GetEncoding("Shift_JIS"));
|
||||
StreamReader reader = new StreamReader(strファイル名, Encoding.GetEncoding(TJAPlayer3.sEncType));
|
||||
string str2 = reader.ReadToEnd();
|
||||
reader.Close();
|
||||
|
||||
//StreamReader reader2 = new StreamReader( this.strフォルダ名 + "test.tja", Encoding.GetEncoding( "Shift_JIS" ) );
|
||||
StreamReader reader2 = new StreamReader(files[0], Encoding.GetEncoding("Shift_JIS"));
|
||||
StreamReader reader2 = new StreamReader(files[0], Encoding.GetEncoding(TJAPlayer3.sEncType));
|
||||
string str3 = reader2.ReadToEnd();
|
||||
reader2.Close();
|
||||
|
||||
@ -1978,7 +1978,7 @@ namespace TJAPlayer3
|
||||
//DateTime timeBeginLoad = DateTime.Now;
|
||||
//TimeSpan span;
|
||||
|
||||
StreamReader reader = new StreamReader(strファイル名, Encoding.GetEncoding("Shift_JIS"));
|
||||
StreamReader reader = new StreamReader(strファイル名, Encoding.GetEncoding(TJAPlayer3.sEncType));
|
||||
string str2 = reader.ReadToEnd();
|
||||
reader.Close();
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace TJAPlayer3
|
||||
// To begin finding the right file, we first need to get the raw
|
||||
// bytes that would comprise the file name if encoded into
|
||||
// Shift-JIS.
|
||||
var encodedCompanionFileNameBytes = Encoding.GetEncoding("Shift_JIS").GetBytes(expectedCompanionFileName);
|
||||
var encodedCompanionFileNameBytes = Encoding.GetEncoding(TJAPlayer3.sEncType).GetBytes(expectedCompanionFileName);
|
||||
|
||||
// Here we have a helper method that will be used to try finding
|
||||
// the file by interpreting the byte representation encoded
|
||||
|
@ -583,7 +583,7 @@ namespace TJAPlayer3
|
||||
if( File.Exists( iniファイル名 ) )
|
||||
{
|
||||
string str;
|
||||
StreamReader reader = new StreamReader( iniファイル名, Encoding.GetEncoding( "Shift_JIS" ) );
|
||||
StreamReader reader = new StreamReader( iniファイル名, Encoding.GetEncoding(TJAPlayer3.sEncType) );
|
||||
while( ( str = reader.ReadLine() ) != null )
|
||||
{
|
||||
str = str.Replace( '\t', ' ' ).TrimStart( new char[] { '\t', ' ' } );
|
||||
@ -1217,7 +1217,7 @@ namespace TJAPlayer3
|
||||
this.iniファイルのあるフォルダ名 = Path.GetDirectoryName( iniファイル名 );
|
||||
this.iniファイル名 = Path.GetFileName( iniファイル名 );
|
||||
|
||||
StreamWriter writer = new StreamWriter( iniファイル名, false, Encoding.GetEncoding( "Shift_JIS" ) );
|
||||
StreamWriter writer = new StreamWriter( iniファイル名, false, Encoding.GetEncoding(TJAPlayer3.sEncType) );
|
||||
writer.WriteLine( "[File]" );
|
||||
writer.WriteLine( "Title={0}", this.stファイル.Title );
|
||||
writer.WriteLine( "Name={0}", this.stファイル.Name );
|
||||
@ -1496,7 +1496,7 @@ namespace TJAPlayer3
|
||||
builder.Append( cc.strDTXManiaのバージョン );
|
||||
builder.Append( cc.最終更新日時 );
|
||||
|
||||
byte[] bytes = Encoding.GetEncoding( "Shift_JIS" ).GetBytes( builder.ToString() );
|
||||
byte[] bytes = Encoding.GetEncoding(TJAPlayer3.sEncType).GetBytes( builder.ToString() );
|
||||
StringBuilder builder2 = new StringBuilder(0x21);
|
||||
{
|
||||
MD5CryptoServiceProvider m = new MD5CryptoServiceProvider();
|
||||
|
@ -113,9 +113,13 @@ namespace TJAPlayer3
|
||||
this.iSystemFullscreen = new CItemToggle(CLangManager.LangInstance.GetString(10019), TJAPlayer3.ConfigIni.b全画面モード,
|
||||
CLangManager.LangInstance.GetString(19));
|
||||
this.list項目リスト.Add( this.iSystemFullscreen );
|
||||
|
||||
/*
|
||||
this.iSystemStageFailed = new CItemToggle(CLangManager.LangInstance.GetString(10020), TJAPlayer3.ConfigIni.bSTAGEFAILED有効,
|
||||
CLangManager.LangInstance.GetString(20));
|
||||
this.list項目リスト.Add( this.iSystemStageFailed );
|
||||
*/
|
||||
|
||||
this.iSystemRandomFromSubBox = new CItemToggle(CLangManager.LangInstance.GetString(10021), TJAPlayer3.ConfigIni.bランダムセレクトで子BOXを検索対象とする,
|
||||
CLangManager.LangInstance.GetString(21));
|
||||
this.list項目リスト.Add( this.iSystemRandomFromSubBox );
|
||||
@ -177,6 +181,7 @@ namespace TJAPlayer3
|
||||
CLangManager.LangInstance.GetString(30));
|
||||
this.list項目リスト.Add( this.iSystemSaveScore );
|
||||
|
||||
/*
|
||||
this.iSystemApplyLoudnessMetadata = new CItemToggle(CLangManager.LangInstance.GetString(10031), TJAPlayer3.ConfigIni.ApplyLoudnessMetadata,
|
||||
CLangManager.LangInstance.GetString(31));
|
||||
this.list項目リスト.Add( this.iSystemApplyLoudnessMetadata );
|
||||
@ -184,6 +189,7 @@ namespace TJAPlayer3
|
||||
this.iSystemTargetLoudness = new CItemInteger(CLangManager.LangInstance.GetString(10032), (int)Math.Round(CSound.MinimumLufs.ToDouble() * 10.0), (int)Math.Round(CSound.MaximumLufs.ToDouble() * 10.0), (int)Math.Round(TJAPlayer3.ConfigIni.TargetLoudness * 10.0),
|
||||
CLangManager.LangInstance.GetString(32));
|
||||
this.list項目リスト.Add( this.iSystemTargetLoudness );
|
||||
*/
|
||||
|
||||
this.iSystemApplySongVol = new CItemToggle(CLangManager.LangInstance.GetString(10033), TJAPlayer3.ConfigIni.ApplySongVol,
|
||||
CLangManager.LangInstance.GetString(33));
|
||||
@ -1458,7 +1464,7 @@ namespace TJAPlayer3
|
||||
TJAPlayer3.ConfigIni.n演奏速度 = this.iCommonPlaySpeed.n現在の値;
|
||||
|
||||
TJAPlayer3.ConfigIni.b全画面モード = this.iSystemFullscreen.bON;
|
||||
TJAPlayer3.ConfigIni.bSTAGEFAILED有効 = this.iSystemStageFailed.bON;
|
||||
// TJAPlayer3.ConfigIni.bSTAGEFAILED有効 = this.iSystemStageFailed.bON;
|
||||
TJAPlayer3.ConfigIni.bランダムセレクトで子BOXを検索対象とする = this.iSystemRandomFromSubBox.bON;
|
||||
|
||||
//CDTXMania.ConfigIni.bWave再生位置自動調整機能有効 = this.iSystemAdjustWaves.bON;
|
||||
@ -1476,8 +1482,8 @@ namespace TJAPlayer3
|
||||
//CDTXMania.ConfigIni.eダメージレベル = (Eダメージレベル) this.iSystemDamageLevel.n現在選択されている項目番号;
|
||||
TJAPlayer3.ConfigIni.bScoreIniを出力する = this.iSystemSaveScore.bON;
|
||||
|
||||
TJAPlayer3.ConfigIni.ApplyLoudnessMetadata = this.iSystemApplyLoudnessMetadata.bON;
|
||||
TJAPlayer3.ConfigIni.TargetLoudness = this.iSystemTargetLoudness.n現在の値 / 10.0;
|
||||
// TJAPlayer3.ConfigIni.ApplyLoudnessMetadata = this.iSystemApplyLoudnessMetadata.bON;
|
||||
// TJAPlayer3.ConfigIni.TargetLoudness = this.iSystemTargetLoudness.n現在の値 / 10.0;
|
||||
TJAPlayer3.ConfigIni.ApplySongVol = this.iSystemApplySongVol.bON;
|
||||
TJAPlayer3.ConfigIni.SoundEffectLevel = this.iSystemSoundEffectLevel.n現在の値;
|
||||
TJAPlayer3.ConfigIni.VoiceLevel = this.iSystemVoiceLevel.n現在の値;
|
||||
|
BIN
Test/dll/FDK.dll
BIN
Test/dll/FDK.dll
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user