Skip to content

Commit

Permalink
fixed issue with stepback server
Browse files Browse the repository at this point in the history
  • Loading branch information
ircluzar committed Nov 13, 2024
1 parent 77df7d7 commit 3013ce9
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 42 deletions.
28 changes: 14 additions & 14 deletions RTCLauncher/MainForm.Designer.cs

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

11 changes: 10 additions & 1 deletion RTCLauncher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal void SuggestInstallZip(object sender, MouseEventArgs e)
internal static DownloadForm dForm = null;
internal static Form lpForm = null;

public const int launcherVer = 34;
public const int launcherVer = 36;

internal static string SelectedVersion = null;
internal static string lastSelectedVersion = null;
Expand Down Expand Up @@ -188,6 +188,15 @@ private void MainForm_Load(object sender, EventArgs e)
if (sideversionForm.lbVersions.Items.Count > 0)
{
sideversionForm.lbVersions.SelectedIndex = 0;

if (MainForm.webResourceDomain == MainForm.stepbackServer)
{
if (File.Exists(MainForm.launcherDir + Path.DirectorySeparatorChar + "PACKAGES\\stepback.txt"))
File.Delete(MainForm.launcherDir + Path.DirectorySeparatorChar + "PACKAGES\\stepback.txt");

MainForm.webResourceDomain = MainForm.releaseServer;
MainForm.mf.RefreshMotd();
}
}
else
{
Expand Down
20 changes: 0 additions & 20 deletions RTCLauncher/Properties/Resources.Designer.cs

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

6 changes: 0 additions & 6 deletions RTCLauncher/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@
<data name="paradox ED32-6" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\RESOURCES\paradox ED32-6.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="MusicBack1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\RESOURCES\MusicBack1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="discord" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\discord.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand All @@ -148,9 +145,6 @@
<data name="corruptwiki" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\corruptwiki.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="MusicBack" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\RESOURCES\MusicBack.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="youtube" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\youtube.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
2 changes: 1 addition & 1 deletion RTCLauncher/Properties/Settings.Designer.cs

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

23 changes: 23 additions & 0 deletions RTCLauncher/RTCLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,24 @@
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
<Title>RTC Launcher</Title>
<PlatformTarget>AnyCPU</PlatformTarget>
<SignAssembly>False</SignAssembly>
<ErrorReport>none</ErrorReport>
<Authors>Redscientist Labs</Authors>
<Company>Redscientist Labs</Company>
<Product>RTC Launcher</Product>
<Description>Application Launcher and Downloader by Redscientist Labs</Description>
<Copyright>Redscientist Labs</Copyright>
<PackageProjectUrl>http://redscientist.com</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>bin\</OutputPath>
<Deterministic>False</Deterministic>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>bin\</OutputPath>
<Deterministic>False</Deterministic>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.IO.Compression" />
Expand Down Expand Up @@ -69,6 +81,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Update="SidebarInfoPanel.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -112,4 +129,10 @@
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
</Project>
10 changes: 10 additions & 0 deletions RTCLauncher/SidebarVersionsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ void hide()

if (lbVersions.Items.Count > 0)
lbVersions.SelectedIndex = 0;

if (MainForm.webResourceDomain == MainForm.stepbackServer)
{
if (File.Exists(MainForm.launcherDir + Path.DirectorySeparatorChar + "PACKAGES\\stepback.txt"))
File.Delete(MainForm.launcherDir + Path.DirectorySeparatorChar + "PACKAGES\\stepback.txt");

MainForm.webResourceDomain = MainForm.releaseServer;
MainForm.mf.RefreshMotd();
}

}
else
{
Expand Down

0 comments on commit 3013ce9

Please sign in to comment.