機能追加: Bakin・NW.jsエンジンおよびセーブ編集対応、ES3パスワード解決機能とRPGツクールMZ修正サービスの追加
This commit is contained in:
1 parent
f50976a6c0
commit
152abae1f8
33 files changed
+11356
-175
No files matched your search
@@ -105,6 +105,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
private bool _applyMod = true;
|
||||
private bool _hasCustomApplyMod;
|
||||
private bool _isInitializingApplyMod;
|
||||
private bool _hasSaveData;
|
||||
private ModPluginOptions _modOptions = new();
|
||||
|
||||
// app.asar 関連プロパティ
|
||||
@@ -130,6 +131,20 @@ namespace GameLauncher.Engines.Tkool
|
||||
private string? _evbBackupPath;
|
||||
private string _evbUnderlyingEngine = string.Empty;
|
||||
|
||||
/// <summary>セーブデータ検出フラグ</summary>
|
||||
public override bool HasSaveData
|
||||
{
|
||||
get => this._hasSaveData;
|
||||
set
|
||||
{
|
||||
if (this._hasSaveData != value)
|
||||
{
|
||||
this._hasSaveData = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Enigma Virtual Box でパックされた exe を持つゲームかどうか</summary>
|
||||
public override bool IsEvbPacked
|
||||
{
|
||||
@@ -306,6 +321,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
TkoolEngineType.Wolf => GameEngineKind.Wolf,
|
||||
TkoolEngineType.SrpgStudio => GameEngineKind.SrpgStudio,
|
||||
TkoolEngineType.Nwjs => GameEngineKind.Nwjs,
|
||||
TkoolEngineType.Bakin => GameEngineKind.Bakin,
|
||||
TkoolEngineType.Other => GameEngineKind.Other,
|
||||
_ => GameEngineKind.Tkool
|
||||
};
|
||||
@@ -331,17 +347,18 @@ namespace GameLauncher.Engines.Tkool
|
||||
public override bool IsSrpgStudio => this.EngineType == TkoolEngineType.SrpgStudio;
|
||||
public override bool IsRgss => this.EngineType is TkoolEngineType.VX or TkoolEngineType.VXAce;
|
||||
public override bool IsNwjs => this.EngineType == TkoolEngineType.Nwjs;
|
||||
public override bool IsBakin => this.EngineType == TkoolEngineType.Bakin;
|
||||
public override bool IsOther => this.EngineType == TkoolEngineType.Other;
|
||||
|
||||
/// <summary>
|
||||
/// スクリプト改造(プラグイン注入など)が適用可能な状態かどうか。
|
||||
/// 該当ゲームが改造非対応(ウディタ・SRPG・NW.js・その他・未解凍状態など)の場合は false を返します。
|
||||
/// 該当ゲームが改造非対応(ウディタ・SRPG・Bakin・NW.js・その他・未解凍状態など)の場合は false を返します。
|
||||
/// </summary>
|
||||
public override bool CanApplyScriptMod
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.IsWolf || this.IsNwjs || this.IsSrpgStudio || this.IsOther)
|
||||
if (this.IsWolf || this.IsSrpgStudio || this.IsBakin || this.IsOther)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -365,7 +382,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
}
|
||||
return !string.IsNullOrEmpty(this.PluginsJsPath) && File.Exists(this.PluginsJsPath);
|
||||
}
|
||||
if (this.IsMV || this.IsMZ || this.IsTyrano)
|
||||
if (this.IsMV || this.IsMZ || this.IsTyrano || this.IsNwjs)
|
||||
{
|
||||
return !string.IsNullOrEmpty(this.PluginsJsPath) && File.Exists(this.PluginsJsPath);
|
||||
}
|
||||
@@ -385,6 +402,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
TkoolEngineType.Tyrano => "ティラノ",
|
||||
TkoolEngineType.Wolf => "ウディタ",
|
||||
TkoolEngineType.SrpgStudio => "SRPG",
|
||||
TkoolEngineType.Bakin => "Bakin",
|
||||
_ => string.Empty
|
||||
};
|
||||
|
||||
@@ -398,6 +416,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
TkoolEngineType.Tyrano => new SolidColorBrush(Color.FromRgb(0xD3, 0x54, 0x00)),
|
||||
TkoolEngineType.Wolf => new SolidColorBrush(Color.FromRgb(0x8B, 0x57, 0x1E)),
|
||||
TkoolEngineType.SrpgStudio => new SolidColorBrush(Color.FromRgb(0x1E, 0x7A, 0x5F)),
|
||||
TkoolEngineType.Bakin => new SolidColorBrush(Color.FromRgb(0xD9, 0x77, 0x06)),
|
||||
_ => Brushes.Transparent
|
||||
};
|
||||
|
||||
@@ -562,6 +581,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
this.OnPropertyChanged(nameof(this.IsSrpgStudio));
|
||||
this.OnPropertyChanged(nameof(this.IsRgss));
|
||||
this.OnPropertyChanged(nameof(this.IsNwjs));
|
||||
this.OnPropertyChanged(nameof(this.IsBakin));
|
||||
this.OnPropertyChanged(nameof(this.IsOther));
|
||||
this.OnPropertyChanged(nameof(this.NwjsBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.NwjsBadgeVisibility));
|
||||
@@ -583,6 +603,44 @@ namespace GameLauncher.Engines.Tkool
|
||||
}
|
||||
}
|
||||
|
||||
// ================= ツクールMZ関連プロパティ =================
|
||||
private bool _mzPixiErrorFix = true;
|
||||
private bool _mzSpineErrorFix = true;
|
||||
|
||||
/// <summary>
|
||||
/// ツクールMZ専用: Pixi.jsのテクスチャ参照エラー(Cannot read property 'valid' of null)修復およびDevTools有効化フラグ。
|
||||
/// 初期値は true(チェックON)
|
||||
/// </summary>
|
||||
public override bool MzPixiErrorFix
|
||||
{
|
||||
get => this._mzPixiErrorFix;
|
||||
set
|
||||
{
|
||||
if (this._mzPixiErrorFix != value)
|
||||
{
|
||||
this._mzPixiErrorFix = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ツクールMZ専用: Spineアニメーション未定義エラー(Animation not found: 0_idle 等)修復フラグ。
|
||||
/// 初期値は true(チェックON)
|
||||
/// </summary>
|
||||
public override bool MzSpineErrorFix
|
||||
{
|
||||
get => this._mzSpineErrorFix;
|
||||
set
|
||||
{
|
||||
if (this._mzSpineErrorFix != value)
|
||||
{
|
||||
this._mzSpineErrorFix = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ================= WOLF RPGエディター関連プロパティ =================
|
||||
private bool _wolfProxyDll = false;
|
||||
private double _wolfSpeedMultiplier = 3.0;
|
||||
@@ -919,6 +977,15 @@ namespace GameLauncher.Engines.Tkool
|
||||
new() { Id = "RgssWindowResizeExternal", Name = "🪟 外部ツールでウィンドウ拡大 (Win32 API / Sizer等)", Description = "ゲーム側は無改造のまま、ランチャーがゲームウィンドウを検出してディスプレイに収まる最大の整数倍へ拡大します。外部ツールパス設定があればそちらを優先起動します。(既定OFF)" }
|
||||
];
|
||||
|
||||
/// <summary>NW.js (GameCreator / HTML5・JS) 用スクリプト改造定義一覧</summary>
|
||||
public static readonly ModPluginDefinition[] DefaultNwjsPlugins =
|
||||
[
|
||||
new() { Id = "NwjsCheatMenu", Name = "🎛 ゲーム内ステータス・変数・所持金チートメニュー ([F10] / 画面右上ボタン)", Description = "画面右上の『⚙ チート [F10]』ボタンまたはF10キーで、所持金・ステータス・変数・スイッチ・所持アイテムをリアルタイムに検索・書き換えできるオーバーレイメニューを表示します(GameCreator / HTML5ステート / 汎用NW.js自動認識)。" },
|
||||
new() { Id = "NwjsSpeedHack", Name = "⚡ ゲーム倍速・高速化ショートカット ([F6] 倍速切替 / [Ctrl] 5倍速ブースト)", Description = "F6キーでゲーム速度を 1x → 2x → 3x → 5x に切り替え、Ctrlキー押下中は一時的に5倍速へ加速します(LayaAir/GameCreatorタイマー・アニメーション・動画再生速度対応)。" },
|
||||
new() { Id = "NwjsUnlockGallery", Name = "🔓 全CG・ギャラリー・回想フラグの自動解放", Description = "GalleryStoreやGameCreatorのワールド永続スイッチ(life.gcdata)、localStorage内のギャラリー・回想解放フラグを解放します。" },
|
||||
new() { Id = "NwjsDevTools", Name = "🛠 開発者ツール (F12) の有効化", Description = "F12キーでNW.js / Chromiumの開発者ツールコンソールを開けるようにします。" }
|
||||
];
|
||||
|
||||
/// <summary>SRPG Studio用スクリプト改造定義一覧</summary>
|
||||
public static readonly ModPluginDefinition[] DefaultSrpgPlugins =
|
||||
[
|
||||
@@ -936,14 +1003,18 @@ namespace GameLauncher.Engines.Tkool
|
||||
this._commonPluginOptions.Clear();
|
||||
this._specificPluginOptions.Clear();
|
||||
|
||||
if (this.EngineType is TkoolEngineType.Wolf or TkoolEngineType.Nwjs)
|
||||
if (this.EngineType is TkoolEngineType.Wolf or TkoolEngineType.Bakin or TkoolEngineType.Other)
|
||||
{
|
||||
this.OnPropertyChanged(nameof(this.HasSpecificPlugins));
|
||||
return;
|
||||
}
|
||||
|
||||
IEnumerable<ModPluginDefinition> targetDefs;
|
||||
if (this.EngineType == TkoolEngineType.Tyrano)
|
||||
if (this.IsNwjs)
|
||||
{
|
||||
targetDefs = TkoolGameItem.DefaultNwjsPlugins;
|
||||
}
|
||||
else if (this.EngineType == TkoolEngineType.Tyrano)
|
||||
{
|
||||
targetDefs = DefaultTyranoPlugins;
|
||||
}
|
||||
@@ -1032,6 +1103,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
TkoolEngineType.Wolf => "WOLF RPGエディター",
|
||||
TkoolEngineType.SrpgStudio => "SRPG Studio",
|
||||
TkoolEngineType.Nwjs => "NW.js",
|
||||
TkoolEngineType.Bakin => "RPG Developer Bakin",
|
||||
_ => "ツクール/ティラノ"
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user