Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Added optional messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lnx00 committed Jun 10, 2022
1 parent 586021b commit d242f13
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Fedoraloader/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ private void Inject(Process pProcess, string pFileName)

case InjectionResult.Success:
UpdateStatus("Injection successful!");
if (Properties.Settings.Default.successMsg)
{
MessageBox.Show("Fedoraloader was successful!\nUse the INSERT key to open the menu.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Thread.Sleep(1000);
Application.Exit();
break;

Expand Down
6 changes: 3 additions & 3 deletions Fedoraloader/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="VAC-Bypass" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\VAC-Bypass.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\img\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand All @@ -130,4 +127,7 @@
<data name="settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\img\settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="VAC-Bypass" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\VAC-Bypass.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
12 changes: 12 additions & 0 deletions Fedoraloader/Properties/Settings.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 Fedoraloader/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
<Setting Name="steamArgs" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="successMsg" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>
Binary file modified Fedoraloader/Resources/VAC-Bypass.dll
Binary file not shown.
14 changes: 14 additions & 0 deletions Fedoraloader/Settings.Designer.cs

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

2 changes: 2 additions & 0 deletions Fedoraloader/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ private void btnCancel_Click(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
{
Properties.Settings.Default.steamArgs = txtLaunchArgs.Text;
Properties.Settings.Default.successMsg = chkSuccess.Checked;
Properties.Settings.Default.Save();
Close();
}

private void Settings_Load_1(object sender, EventArgs e)
{
txtLaunchArgs.Text = Properties.Settings.Default.steamArgs;
chkSuccess.Checked = Properties.Settings.Default.successMsg;
}
}
}
2 changes: 1 addition & 1 deletion VAC-Bypass/VAC-Bypass.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down

0 comments on commit d242f13

Please sign in to comment.