Skip to content

Commit

Permalink
#6 Directly launch the game
Browse files Browse the repository at this point in the history
ゲームの直接起動モードと設定の追加
  • Loading branch information
anon5r committed Dec 30, 2021
1 parent 81b7fd9 commit dc0d9a3
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 7 deletions.
15 changes: 15 additions & 0 deletions KsGameLauncher/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@
<setting name="MenuIconSize_Default" serializeAs="String">
<value>16</value>
</setting>
<setting name="ErrorReporterPath" serializeAs="String">
<value>launcher\modules\errorreporter.exe</value>
</setting>
<setting name="ErrorReporterPath_2dx" serializeAs="String">
<value>launcher\modules\bm2dx_er.exe</value>
</setting>
<setting name="LauncherPath" serializeAs="String">
<value>launcher\modules\launcher.exe</value>
</setting>
<setting name="LauncherPath_2dx" serializeAs="String">
<value>launcher\modules\bm2dx_launcher.exe</value>
</setting>
</KsGameLauncher.Properties.Settings>
<KonaStaGameLauncher.Properties.Settings>
<setting name="appInfoLocal" serializeAs="String">
Expand Down Expand Up @@ -123,6 +135,9 @@
<setting name="NewGameFormSize" serializeAs="String">
<value>400, 300</value>
</setting>
<setting name="RunGameDirect" serializeAs="String">
<value>False</value>
</setting>
</KsGameLauncher.Properties.Settings>
<KonaStaGameLauncher.Properties.Settings>
<setting name="appInfoURL" serializeAs="String">
Expand Down
31 changes: 24 additions & 7 deletions KsGameLauncher/Forms/OptionsForm.Designer.cs

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

3 changes: 3 additions & 0 deletions KsGameLauncher/Forms/OptionsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand All @@ -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();

Expand Down
48 changes: 48 additions & 0 deletions KsGameLauncher/Properties/Settings.Designer.cs

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

15 changes: 15 additions & 0 deletions KsGameLauncher/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,20 @@
<Setting Name="NewGameFormSize" Type="System.Drawing.Size" Scope="User">
<Value Profile="(Default)">400, 300</Value>
</Setting>
<Setting Name="ErrorReporterPath" Type="System.String" Scope="Application">
<Value Profile="(Default)">launcher\modules\errorreporter.exe</Value>
</Setting>
<Setting Name="RunGameDirect" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="ErrorReporterPath_2dx" Type="System.String" Scope="Application">
<Value Profile="(Default)">launcher\modules\bm2dx_er.exe</Value>
</Setting>
<Setting Name="LauncherPath" Type="System.String" Scope="Application">
<Value Profile="(Default)">launcher\modules\launcher.exe</Value>
</Setting>
<Setting Name="LauncherPath_2dx" Type="System.String" Scope="Application">
<Value Profile="(Default)">launcher\modules\bm2dx_launcher.exe</Value>
</Setting>
</Settings>
</SettingsFile>
18 changes: 18 additions & 0 deletions KsGameLauncher/Resources.Designer.cs

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

6 changes: 6 additions & 0 deletions KsGameLauncher/Resources.ja-JP.resx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
<data name="ButtonUpdate_Register" xml:space="preserve">
<value>登録 (&amp;G)</value>
</data>
<data name="CannotFindErrorReporter" xml:space="preserve">
<value>ゲーム実行ファイルが見つからないためランチャーを起動します。</value>
</data>
<data name="CannotSaveGameList" xml:space="preserve">
<value>ファイルへの書き込みが許可されていないため
ゲーム一覧を保存できませんでした。</value>
Expand Down Expand Up @@ -279,6 +282,9 @@
<data name="OptionsWindowTitle" xml:space="preserve">
<value>オプション</value>
</data>
<data name="RunGameDirectly" xml:space="preserve">
<value>ランチャーをスキップ</value>
</data>
<data name="ServiceIsTemporaryUnavailable" xml:space="preserve">
<value>サービスが一時的に停止しているか、利用できません。</value>
</data>
Expand Down
6 changes: 6 additions & 0 deletions KsGameLauncher/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ You can try removing it from "Credential Manager" in Control Panel.\nIf you clic
<data name="ButtonUpdate_Register" xml:space="preserve">
<value>Re&amp;gister</value>
</data>
<data name="CannotFindErrorReporter" xml:space="preserve">
<value>Launcher launches because the game execution file cannot be found.</value>
</data>
<data name="CannotSaveGameList" xml:space="preserve">
<value>Could not be saved game list, because not allowed write files.</value>
</data>
Expand Down Expand Up @@ -283,6 +286,9 @@ This file may not exist or may be temporarily unavailable.</value>
<data name="OptionsWindowTitle" xml:space="preserve">
<value>Options</value>
</data>
<data name="RunGameDirectly" xml:space="preserve">
<value>Run the game directly</value>
</data>
<data name="ServiceIsTemporaryUnavailable" xml:space="preserve">
<value>Service is temporarily down or unavailable.</value>
</data>
Expand Down

0 comments on commit dc0d9a3

Please sign in to comment.