Skip to content

Commit

Permalink
1.6 update
Browse files Browse the repository at this point in the history
  • Loading branch information
rex706 committed Jun 2, 2016
1 parent 430c02c commit 3593369
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 45 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# RocketLauncher
Easily change Rocket League's resolution to work with dual-monitor split screen.
Easily change Rocket League's settings to work with dual-monitor split screen and enable some hidden features.

![alt tag](http://i.imgur.com/TnUFnKU.png)
![alt tag](http://i.imgur.com/L0o7q7f.png) ![alt tag](http://i.imgur.com/Rs4SW0g.png)

[Download](https://drive.google.com/file/d/0BzKq8PEZkdhSOGFGcTZ0SWlmSTA/view?usp=sharing)

Latest version: 1.5
Latest version: 1.6
- visual overhaul
- advanced options

- Uncap FPS
- Force MSAA

1.5
- support for fullscreen and windowed modes separately
- save resolution option if horizontal or vertical do not work correctly or as expected
- visual improvements
Expand Down
64 changes: 32 additions & 32 deletions Rocket Launcher/MainForm.Designer.cs

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

38 changes: 31 additions & 7 deletions Rocket Launcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public partial class MainForm : Form
private string exePath;
private string split;
private string WindowString;
private string UnlockFPS;
private string ForceMSAA;

private static Version latest;

Expand Down Expand Up @@ -132,6 +134,9 @@ private async void MainForm_Load(object sender, EventArgs e)
split = RocketSettings.Read("Split", "Settings");
WindowString = RocketSettings.Read("Window", "Settings");

UnlockFPS = RocketSettings.Read("UnlockFPS", "Advanced");
ForceMSAA = RocketSettings.Read("ForceMSAA", "Advanced");

if (WindowString == "Borderless")
{
BorderlessCheckBox.Checked = true;
Expand All @@ -144,6 +149,16 @@ private async void MainForm_Load(object sender, EventArgs e)
{
WindowedCheckBox.Checked = true;
}

if (UnlockFPS == "True")
{
UnlockFPSCheckBox.Checked = true;
}

if (ForceMSAA == "True")
{
ForceMSAACheckBox.Checked = true;
}
}
catch (Exception m)
{
Expand Down Expand Up @@ -382,12 +397,11 @@ private static async Task<int> CheckForUpdate()
{
Version current = Assembly.GetExecutingAssembly().GetName().Version;
StreamReader reader = new StreamReader(stream);
//latest = Version.Parse(reader.ReadToEnd());
latest = Version.Parse("1.6.0.0");
latest = Version.Parse(reader.ReadToEnd());

if (latest != current)
{
DialogResult answer = MessageBox.Show("A new version of RocketLauncher is available!\n\nCurrent Version " + current + "\nLatest Version " + latest + "\n\nUpdate Now?", "RocketLauncher Update", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
DialogResult answer = MessageBox.Show("A new version of RocketLauncher is available!\n\nCurrent Version " + current + "\nLatest Version " + latest + "\n\nUpdate now?", "RocketLauncher Update", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (answer == DialogResult.Yes)
{
//TODO: Later on, remove this and replace with automated process of downloading new binaries.
Expand All @@ -414,11 +428,11 @@ private static async Task<int> CheckForUpdate()
private void UnlockFPSCheckBox_CheckedChanged(object sender, EventArgs e)
{
var RocketSettings = new IniFile("RocketSettings.ini");
string UnlockFPS = RocketSettings.Read("UnlockFPS", "Advanced");
UnlockFPS = RocketSettings.Read("UnlockFPS", "Advanced");

if (UnlockFPSCheckBox.Checked == true)
if (UnlockFPSCheckBox.Checked == true && UnlockFPS != "True")
{
DialogResult ans = MessageBox.Show("Some users have reported camera bugs with this enabled. \nDisable this if you experience any camera issues.", "Warning", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
DialogResult ans = MessageBox.Show("Some users have reported camera bugs with this enabled. \n\nYou may need to turn on vsync in your video control panel (AMD or NVIDIA) to achieve desired framerate. \n\nDisable this option if you experience any camera issues.", "Warning", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
if (ans == DialogResult.OK)
{
//edit ini file from exe path
Expand All @@ -433,6 +447,16 @@ private void UnlockFPSCheckBox_CheckedChanged(object sender, EventArgs e)
BaseSettings.Write("AllowPerFrameSleep", "False", "SystemSettings");
}
}
else if (UnlockFPSCheckBox.Checked == true && UnlockFPS == "True")
{
//delete last two directories of exePath and append "Engine\\Config\\BaseSystemSettings.ini"
DirectoryInfo d = new DirectoryInfo(exePath);
string path = d.Parent.Parent.Parent.FullName;
path += "\\Engine\\Config\\BaseSystemSettings.ini";

var BaseSettings = new IniFile(path);
BaseSettings.Write("AllowPerFrameSleep", "False", "SystemSettings");
}
else if (UnlockFPSCheckBox.Checked == false && UnlockFPS == "")
{
//do nothing because this setting has not been used yet and therefore we do not need to change anything. this way user settings are preserved
Expand All @@ -456,7 +480,7 @@ private void ForceMSAACheckBox_CheckedChanged(object sender, EventArgs e)
{
var SettingsIni = new IniFile(settingsPath);
var RocketSettings = new IniFile("RocketSettings.ini");
string ForceMSAA = RocketSettings.Read("ForceMSAA", "Advanced");
ForceMSAA = RocketSettings.Read("ForceMSAA", "Advanced");

if (ForceMSAACheckBox.Checked == true)
{
Expand Down
10 changes: 10 additions & 0 deletions Rocket Launcher/Properties/Resources.Designer.cs

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

9 changes: 6 additions & 3 deletions Rocket Launcher/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
<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="header" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\header.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Rocket Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Rocket Icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="header" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\header.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="line" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\line.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="rocketlauncherheader" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\rocketlauncherheader.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Rocket Launcher/RocketLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
<ItemGroup>
<None Include="Resources\line.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\rocketlauncherheader.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 3593369

Please sign in to comment.