diff --git a/KsGameLauncher/App.config b/KsGameLauncher/App.config index 4aaebda..9ffb258 100644 --- a/KsGameLauncher/App.config +++ b/KsGameLauncher/App.config @@ -36,6 +36,18 @@ 16 + + launcher\modules\errorreporter.exe + + + launcher\modules\bm2dx_er.exe + + + launcher\modules\launcher.exe + + + launcher\modules\bm2dx_launcher.exe + @@ -123,6 +135,9 @@ 400, 300 + + False + diff --git a/KsGameLauncher/Forms/OptionsForm.Designer.cs b/KsGameLauncher/Forms/OptionsForm.Designer.cs index 0a23da6..b9d8073 100644 --- a/KsGameLauncher/Forms/OptionsForm.Designer.cs +++ b/KsGameLauncher/Forms/OptionsForm.Designer.cs @@ -37,6 +37,7 @@ private void InitializeComponent() this.label_ContextMenuSize = new System.Windows.Forms.Label(); this.button_SyncAppInfo = new System.Windows.Forms.Button(); this.checkBox_DisplayInstalledGamesOnly = new System.Windows.Forms.CheckBox(); + this.checkBox_RunDirect = new System.Windows.Forms.CheckBox(); this.SuspendLayout(); // // checkBox_UseProxy @@ -52,6 +53,7 @@ private void InitializeComponent() // // linkLabel_OpenProxySettings // + this.linkLabel_OpenProxySettings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkLabel_OpenProxySettings.AutoSize = true; this.linkLabel_OpenProxySettings.Location = new System.Drawing.Point(112, 43); this.linkLabel_OpenProxySettings.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); @@ -66,7 +68,7 @@ private void InitializeComponent() // button_Save // this.button_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.button_Save.Location = new System.Drawing.Point(166, 224); + this.button_Save.Location = new System.Drawing.Point(171, 255); this.button_Save.Margin = new System.Windows.Forms.Padding(2); this.button_Save.Name = "button_Save"; this.button_Save.Size = new System.Drawing.Size(54, 25); @@ -101,17 +103,19 @@ private void InitializeComponent() // // comboBox_ContextMenuSize // + this.comboBox_ContextMenuSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.comboBox_ContextMenuSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox_ContextMenuSize.FormattingEnabled = true; - this.comboBox_ContextMenuSize.Location = new System.Drawing.Point(10, 159); + this.comboBox_ContextMenuSize.Location = new System.Drawing.Point(12, 184); this.comboBox_ContextMenuSize.Name = "comboBox_ContextMenuSize"; - this.comboBox_ContextMenuSize.Size = new System.Drawing.Size(121, 20); + this.comboBox_ContextMenuSize.Size = new System.Drawing.Size(125, 20); this.comboBox_ContextMenuSize.TabIndex = 5; // // label_ContextMenuSize // + this.label_ContextMenuSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label_ContextMenuSize.AutoSize = true; - this.label_ContextMenuSize.Location = new System.Drawing.Point(10, 144); + this.label_ContextMenuSize.Location = new System.Drawing.Point(12, 169); this.label_ContextMenuSize.Name = "label_ContextMenuSize"; this.label_ContextMenuSize.Size = new System.Drawing.Size(100, 12); this.label_ContextMenuSize.TabIndex = 6; @@ -119,9 +123,10 @@ private void InitializeComponent() // // button_SyncAppInfo // - this.button_SyncAppInfo.Location = new System.Drawing.Point(10, 196); + this.button_SyncAppInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button_SyncAppInfo.Location = new System.Drawing.Point(12, 225); this.button_SyncAppInfo.Name = "button_SyncAppInfo"; - this.button_SyncAppInfo.Size = new System.Drawing.Size(100, 23); + this.button_SyncAppInfo.Size = new System.Drawing.Size(125, 23); this.button_SyncAppInfo.TabIndex = 7; this.button_SyncAppInfo.TabStop = false; this.button_SyncAppInfo.Text = "Sync with server"; @@ -140,12 +145,23 @@ private void InitializeComponent() this.checkBox_DisplayInstalledGamesOnly.Text = "Display installed games only"; this.checkBox_DisplayInstalledGamesOnly.UseVisualStyleBackColor = true; // + // checkBox_RunDirect + // + this.checkBox_RunDirect.AutoSize = true; + this.checkBox_RunDirect.Location = new System.Drawing.Point(12, 137); + this.checkBox_RunDirect.Name = "checkBox_RunDirect"; + this.checkBox_RunDirect.Size = new System.Drawing.Size(117, 16); + this.checkBox_RunDirect.TabIndex = 8; + this.checkBox_RunDirect.Text = "Run game directly"; + this.checkBox_RunDirect.UseVisualStyleBackColor = true; + // // OptionsForm // this.AcceptButton = this.button_Save; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(227, 257); + this.ClientSize = new System.Drawing.Size(232, 288); + this.Controls.Add(this.checkBox_RunDirect); this.Controls.Add(this.button_SyncAppInfo); this.Controls.Add(this.label_ContextMenuSize); this.Controls.Add(this.comboBox_ContextMenuSize); @@ -180,5 +196,6 @@ private void InitializeComponent() private System.Windows.Forms.Label label_ContextMenuSize; private System.Windows.Forms.Button button_SyncAppInfo; private System.Windows.Forms.CheckBox checkBox_DisplayInstalledGamesOnly; + private System.Windows.Forms.CheckBox checkBox_RunDirect; } } \ No newline at end of file diff --git a/KsGameLauncher/Forms/OptionsForm.cs b/KsGameLauncher/Forms/OptionsForm.cs index 5866d97..358758c 100644 --- a/KsGameLauncher/Forms/OptionsForm.cs +++ b/KsGameLauncher/Forms/OptionsForm.cs @@ -36,6 +36,7 @@ private void OptionsForm_Load(object sender, EventArgs e) checkBox_Notification.Checked = Properties.Settings.Default.EnableNotification; checkBox_ConfirmExit.Checked = Properties.Settings.Default.ShowConfirmExit; checkBox_DisplayInstalledGamesOnly.Checked = Properties.Settings.Default.ShowOnlyInstalledGames; + checkBox_RunDirect.Checked = Properties.Settings.Default.RunGameDirect; comboBox_ContextMenuSize.SelectedIndex = Properties.Settings.Default.ContextMenuSize; // String @@ -45,6 +46,7 @@ private void OptionsForm_Load(object sender, EventArgs e) checkBox_Notification.Text = Resources.OptionsDisplayNotification; checkBox_ConfirmExit.Text = Resources.ShowConfirmExit; checkBox_DisplayInstalledGamesOnly.Text = Resources.ShowOnlyInstalledGames; + checkBox_RunDirect.Text = Resources.RunGameDirectly; linkLabel_OpenProxySettings.Text = Resources.OptionsProxySettingsLink; button_Save.Text = Resources.ButtonSave; button_SyncAppInfo.Text = Resources.SynchWithServerButton; @@ -66,6 +68,7 @@ private void Button_Save_Click(object sender, EventArgs e) Properties.Settings.Default.EnableNotification = checkBox_Notification.Checked; Properties.Settings.Default.ShowConfirmExit = checkBox_ConfirmExit.Checked; Properties.Settings.Default.ShowOnlyInstalledGames = checkBox_DisplayInstalledGamesOnly.Checked; + Properties.Settings.Default.RunGameDirect = checkBox_RunDirect.Checked; Properties.Settings.Default.ContextMenuSize = comboBox_ContextMenuSize.SelectedIndex; Properties.Settings.Default.Save(); diff --git a/KsGameLauncher/Properties/Settings.Designer.cs b/KsGameLauncher/Properties/Settings.Designer.cs index a529a6a..50c9204 100644 --- a/KsGameLauncher/Properties/Settings.Designer.cs +++ b/KsGameLauncher/Properties/Settings.Designer.cs @@ -255,5 +255,53 @@ public bool ShowOnlyInstalledGames { this["NewGameFormSize"] = value; } } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("launcher\\modules\\errorreporter.exe")] + public string ErrorReporterPath { + get { + return ((string)(this["ErrorReporterPath"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool RunGameDirect { + get { + return ((bool)(this["RunGameDirect"])); + } + set { + this["RunGameDirect"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("launcher\\modules\\bm2dx_er.exe")] + public string ErrorReporterPath_2dx { + get { + return ((string)(this["ErrorReporterPath_2dx"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("launcher\\modules\\launcher.exe")] + public string LauncherPath { + get { + return ((string)(this["LauncherPath"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("launcher\\modules\\bm2dx_launcher.exe")] + public string LauncherPath_2dx { + get { + return ((string)(this["LauncherPath_2dx"])); + } + } } } diff --git a/KsGameLauncher/Properties/Settings.settings b/KsGameLauncher/Properties/Settings.settings index 5cf324f..81cd0a2 100644 --- a/KsGameLauncher/Properties/Settings.settings +++ b/KsGameLauncher/Properties/Settings.settings @@ -65,5 +65,20 @@ 400, 300 + + launcher\modules\errorreporter.exe + + + False + + + launcher\modules\bm2dx_er.exe + + + launcher\modules\launcher.exe + + + launcher\modules\bm2dx_launcher.exe + \ No newline at end of file diff --git a/KsGameLauncher/Resources.Designer.cs b/KsGameLauncher/Resources.Designer.cs index b637d0d..baa2c30 100644 --- a/KsGameLauncher/Resources.Designer.cs +++ b/KsGameLauncher/Resources.Designer.cs @@ -187,6 +187,15 @@ internal static string ButtonUpdate_Register { } } + /// + /// Launcher launches because the game execution file cannot be found. に類似しているローカライズされた文字列を検索します。 + /// + internal static string CannotFindErrorReporter { + get { + return ResourceManager.GetString("CannotFindErrorReporter", resourceCulture); + } + } + /// /// Could not be saved game list, because not allowed write files. に類似しているローカライズされた文字列を検索します。 /// @@ -521,6 +530,15 @@ internal static string OptionsWindowTitle { } } + /// + /// Run the game directly に類似しているローカライズされた文字列を検索します。 + /// + internal static string RunGameDirectly { + get { + return ResourceManager.GetString("RunGameDirectly", resourceCulture); + } + } + /// /// Service is temporarily down or unavailable. に類似しているローカライズされた文字列を検索します。 /// diff --git a/KsGameLauncher/Resources.ja-JP.resx b/KsGameLauncher/Resources.ja-JP.resx index e3dd506..a69affa 100644 --- a/KsGameLauncher/Resources.ja-JP.resx +++ b/KsGameLauncher/Resources.ja-JP.resx @@ -161,6 +161,9 @@ 登録 (&G) + + ゲーム実行ファイルが見つからないためランチャーを起動します。 + ファイルへの書き込みが許可されていないため ゲーム一覧を保存できませんでした。 @@ -279,6 +282,9 @@ オプション + + ランチャーをスキップ + サービスが一時的に停止しているか、利用できません。 diff --git a/KsGameLauncher/Resources.resx b/KsGameLauncher/Resources.resx index 4573fc2..c4d5fb3 100644 --- a/KsGameLauncher/Resources.resx +++ b/KsGameLauncher/Resources.resx @@ -162,6 +162,9 @@ You can try removing it from "Credential Manager" in Control Panel.\nIf you clic Re&gister + + Launcher launches because the game execution file cannot be found. + Could not be saved game list, because not allowed write files. @@ -283,6 +286,9 @@ This file may not exist or may be temporarily unavailable. Options + + Run the game directly + Service is temporarily down or unavailable.