Skip to content

Commit

Permalink
fixed problem found trying to play Enso
Browse files Browse the repository at this point in the history
  • Loading branch information
rahil627 committed Feb 14, 2012
1 parent 5b05a9b commit 83e67b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions GameHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ private Process runGame(GameConfiguration gameConfig, Boolean hideMouse, Boolean
//another work around, set the cursor graphic to a transparent one, http://forums.whirlpool.net.au/archive/1172326

ProcessStartInfo psi = new ProcessStartInfo(gameConfig.Path);
psi.WorkingDirectory = Path.GetDirectoryName(gameConfig.Path);

if (fullScreen)
psi.WindowStyle = ProcessWindowStyle.Maximized; //TODO: only maximizes fully if the taskbar is set to auto-hide

Expand Down
4 changes: 2 additions & 2 deletions Trollkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<PublisherName>Babycastles</PublisherName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.htm</WebPage>
<ApplicationRevision>51</ApplicationRevision>
<ApplicationVersion>0.1.0.%2a</ApplicationVersion>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationVersion>0.2.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
2 changes: 1 addition & 1 deletion UserGUI.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 UserGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ private void playButton_Click(object sender, EventArgs e) //rename button to som

private void gameComboBox_SelectedIndexChanged(object sender, EventArgs e) {
//if JoyToKey config file of selected game exists and has the same name, select that
if (gameComboBox.SelectedItem == null)
return;

String selectedGameTitle = ((GameConfiguration)gameComboBox.SelectedItem).Title;
if (joyToKeyConfigs.Any(c => c.Text == selectedGameTitle))
joyToKeyComboBox.SelectedItem = joyToKeyConfigs.First(c => c.Text == selectedGameTitle);
Expand Down

0 comments on commit 83e67b5

Please sign in to comment.