Skip to content

Commit

Permalink
Update 1.34
Browse files Browse the repository at this point in the history
  • Loading branch information
XyLe-GBP committed Dec 19, 2024
1 parent e133f97 commit 405bcc3
Show file tree
Hide file tree
Showing 25 changed files with 6,172 additions and 2,681 deletions.
43 changes: 38 additions & 5 deletions src/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ public class Generic
public static int ProcessFlag = -1;
public static int ProgressMax = 0;
/// <summary>
/// 複数のファイルをエンコードする際にループポイントを作成するかのフラグ
/// エンコードする際にループポイントを作成するかのフラグ
/// </summary>
public static bool lpcreate = false;
/// <summary>
/// 変換設定ダイアログ用ループフラグ
/// </summary>
public static bool lpcreatev2 = false;
public static int files = 0;
/// <summary>
Expand All @@ -59,12 +62,14 @@ public class Generic
/// ファイルをWaveに変換したかどうかを判別するための変数
/// </summary>
public static bool IsATW = false;
public static bool IsATWCancelled = false;
/// <summary>
/// 変換先の形式を判別するための変数
/// </summary>
public static int WTAFlag = -1;
public static string[] OpenFilePaths = null!;
public static string[] pATRACOpenFilePaths = null!;
public static string[] OriginOpenFilePaths = null!;
//public static string[] OpenFilePathsWithMultiExt = null!;
public static bool IsOpenMulti = false;
public static string SavePath = null!;
Expand All @@ -87,6 +92,15 @@ public class Generic
public static StreamReader Log = null!;
public static Exception GlobalException = null!;

public static bool IsLPCStreamingReloaded = false;
public static long LPCTotalSamples = 0;

public static bool IsPlaybackATRAC = false;

/// <summary>
/// 設定ファイルエラー検知用変数
/// </summary>
public static bool IsConfigError = false;
/// <summary>
/// ダウンロード機能用変数
/// </summary>
Expand Down Expand Up @@ -290,17 +304,32 @@ public static void CheckExistsFile(string path)
/// IsATWがtrueならWaveに変換したファイルを削除
/// </summary>
/// <param name="flag">Generic.IsATW</param>
public static void ATWCheck(bool flag)
public static void ATWCheck(bool flag, bool IsCancelled = false)
{
switch (flag)
{
case true:
{
foreach (var file in Generic.OpenFilePaths)
if (IsCancelled)
{
if (Directory.Exists(Directory.GetCurrentDirectory() + @"\_tempAudio"))
{
Directory.Delete(Directory.GetCurrentDirectory() + @"\_tempAudio");
}
Utils.DeleteDirectoryFiles(Directory.GetCurrentDirectory() + @"\_temp");
}
else
{
if (File.Exists(file))
foreach (var file in Generic.OpenFilePaths)
{
File.Delete(file);
if (File.Exists(file))
{
File.Delete(file);
}
}
if (Directory.Exists(Directory.GetCurrentDirectory() + @"\_tempAudio"))
{
Directory.Delete(Directory.GetCurrentDirectory() + @"\_tempAudio");
}
}
break;
Expand Down Expand Up @@ -704,6 +733,10 @@ public static void InitConfig()
{
Config.Entry["PlaybackATRAC"].Value = "true";
}
if (Config.Entry["DisablePreviewWarning"].Value == null) // 警告メッセージ無効化 (bool)
{
Config.Entry["DisablePreviewWarning"].Value = "false";
}
if (Config.Entry["SplashImage"].Value == null) // スプラッシュスクリーン画像 (bool)
{
Config.Entry["SplashImage"].Value = "false";
Expand Down
41 changes: 41 additions & 0 deletions src/Controls/CustomTrackbar.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 405bcc3

Please sign in to comment.