Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
Version 1.4.269
Browse files Browse the repository at this point in the history
Fixed trying to edit actions with Xbox Game DVR
Fixed Hide DS4 crashing DS4Windows on 64-bit machines
  • Loading branch information
Jays2Kings committed Aug 1, 2015
1 parent f5c9dbf commit 0cbcccc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions DS4Windows/DS4Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
10 changes: 5 additions & 5 deletions DS4Windows/DS4Windows/SpecActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public partial class SpecActions : Form
int editIndex;
protected String m_Actions = Global.appdatapath + "\\Actions.xml";
string oldprofilename;
bool loadingThings;
bool loadingAction = true;
public SpecActions(Options opt, string edit = "", int editindex = -1)
{
InitializeComponent();
Expand All @@ -53,12 +53,12 @@ public SpecActions(Options opt, string edit = "", int editindex = -1)
oldprofilename = edit;
tBName.Text = edit;
LoadAction();
loadingAction = false;
}
}

void LoadAction()
{
loadingThings = true;
SpecialAction act = Global.GetAction(oldprofilename);
string[] dets;
foreach (string s in act.controls.Split('/'))
Expand Down Expand Up @@ -131,7 +131,7 @@ void LoadAction()
case "XboxGameDVR":
cBActions.SelectedIndex = 7;
dets = act.details.Split(',');
if (int.Parse(dets[0]) == 0)
if (int.Parse(dets[3]) == 0)
btnCustomDVRKey.Text = "Custom Key";
else
btnCustomDVRKey.Text = ((Keys)(int.Parse(dets[3]))).ToString();
Expand Down Expand Up @@ -348,7 +348,7 @@ private void lVTrigger_ItemChecked(object sender, ItemCheckedEventArgs e)
if (cBActions.SelectedIndex == 7 && e.Item.Checked)
{
foreach (ListViewItem lvi in lVTrigger.Items)
if (lvi.Checked && lvi != e.Item)
if (lvi != null && lvi.Checked && lvi != e.Item)
lvi.Checked = false;
}
}
Expand Down Expand Up @@ -442,7 +442,7 @@ private void cBDVR_SelectedIndexChanged(object sender, EventArgs e)
{
if (((ComboBox)sender).SelectedIndex == 3)
{
if (!loadingThings)
if (!loadingAction)
new KBM360(this, btnCustomDVRKey, false).ShowDialog();
cBTapDVR.Items.RemoveAt(3);
cBTapDVR.Items.Insert(3, "Take Screenshot (" + btnCustomDVRKey.Text + ")");
Expand Down
4 changes: 2 additions & 2 deletions DS4Windows/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.267")]
[assembly: AssemblyFileVersion("1.4.267")]
[assembly: AssemblyVersion("1.4.269")]
[assembly: AssemblyFileVersion("1.4.269")]

0 comments on commit 0cbcccc

Please sign in to comment.