Skip to content

Commit a612e31

Browse files
committed
1.2.4
- Renamed the settings file from "Injector.cr" to "Launcher.cr". - Fixed some inconsistencies with capitalizations and text formatting. - Fixed a crash that happened if your settings file was parsed wrong, resulting in settings getting stuck not saving.
1 parent 275f28e commit a612e31

10 files changed

Lines changed: 83 additions & 48 deletions

File tree

Architecture/Path.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ public Path CreateDirectory()
6161
return this;
6262
}
6363

64+
public void DeleteFile()
65+
{
66+
if (IsFile() && Exists())
67+
{
68+
File.Delete(GetPath());
69+
}
70+
}
71+
6472
// Modifies the current path with the given string. If you wish to return/add on to the path by creating a new one instead of modifying it, see down below for the divide operator overload.
6573
public Path Append(string str)
6674
{

Controls/CRChangelog.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ public CRChangelog()
9999

100100
private string Format(string str)
101101
{
102-
return ("- " + str.Replace("\\n", "\n- "));
102+
str = ("- " + str.Replace("\\n", "\n- "));
103+
str = str.Replace("`", "\"");
104+
return str;
103105
}
104106

105107
public void SetTheme(ControlTheme control, IconTheme icon)

Controls/CROffline.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,16 @@ public void UpdateTheme()
164164
{
165165
if (OfflineType == OfflineLayouts.Default)
166166
{
167-
TitleLbl.Text = "no connection";
168-
DescriptionLbl.Text = "failed to connect to the remote server, would you like to start in offline mode? version checking, changelog info, and news will all be disabled.";
167+
TitleLbl.Text = "No Connection";
168+
DescriptionLbl.Text = "Failed to connect to the remote server, would you like to start in offline mode? version checking, changelog info, and news will all be disabled.";
169169
AcceptBtn.Visible = true;
170170
DenyBtn.Visible = true;
171171
AltBtn.Visible = false;
172172
}
173173
else if (OfflineType == OfflineLayouts.Installer)
174174
{
175-
TitleLbl.Text = "no connection";
176-
DescriptionLbl.Text = "an active internet connection is required to install codered, please try again later";
175+
TitleLbl.Text = "No Connection";
176+
DescriptionLbl.Text = "An active internet connection is required to install codered, please try again!";
177177
AcceptBtn.Visible = false;
178178
DenyBtn.Visible = false;
179179
AltBtn.Visible = true;

Controls/CRUpdate.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,39 +175,39 @@ public void UpdateTheme()
175175
{
176176
if (UpdateType == UpdateLayouts.Running)
177177
{
178-
DescriptionLbl.Text = "a new version of the codered was found but Rocket League needs to be closed first in order to install!";
178+
DescriptionLbl.Text = "A new version of the codered was found but Rocket League needs to be closed first in order to install!";
179179
_buttonsEnabled = true;
180180
AcceptBtn.Visible = false;
181181
DenyBtn.Visible = false;
182182
GameBtn.Visible = true;
183183
}
184184
else if (UpdateType == UpdateLayouts.Downloading)
185185
{
186-
DescriptionLbl.Text = "downloading and installing updates, please wait...";
186+
DescriptionLbl.Text = "Downloading and installing updates, please wait...";
187187
_buttonsEnabled = false;
188188
AcceptBtn.Visible = true;
189189
DenyBtn.Visible = true;
190190
GameBtn.Visible = false;
191191
}
192192
else if (UpdateType == UpdateLayouts.Module)
193193
{
194-
DescriptionLbl.Text = "a new version of the module was found, would you like to automatically install it now?";
194+
DescriptionLbl.Text = "A new version of the module was found, would you like to automatically install it now?";
195195
_buttonsEnabled = true;
196196
AcceptBtn.Visible = true;
197197
DenyBtn.Visible = true;
198198
GameBtn.Visible = false;
199199
}
200200
else if (UpdateType == UpdateLayouts.Launcher)
201201
{
202-
DescriptionLbl.Text = "a new version of the launcher was found, would you like to automatically install it now?";
202+
DescriptionLbl.Text = "A new version of the launcher was found, would you like to automatically install it now?";
203203
_buttonsEnabled = true;
204204
AcceptBtn.Visible = true;
205205
DenyBtn.Visible = true;
206206
GameBtn.Visible = false;
207207
}
208208
else if (UpdateType == UpdateLayouts.Both)
209209
{
210-
DescriptionLbl.Text = "a new version both the launcher and module were found, would you like to automatically install it now?";
210+
DescriptionLbl.Text = "A new version both the launcher and module were found, would you like to automatically install it now?";
211211
_buttonsEnabled = true;
212212
AcceptBtn.Visible = true;
213213
DenyBtn.Visible = true;

Controls/Palette.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class GPalette
8383
public static readonly Color CodeBlue_Highlight = Color.FromArgb(80, 80, 191); // #5050bf
8484
// Greyscale
8585
public static readonly Color PureBlack = Color.FromArgb(20, 22, 24); // #141618
86-
public static readonly Color Black = Color.FromArgb(30, 30, 32); // #1e1e20
86+
public static readonly Color Black = Color.FromArgb(30, 30, 31); // #1e1e1f
8787
public static readonly Color LightBlack = Color.FromArgb(40, 42, 45); // #282a2d
8888
public static readonly Color DarkGrey = Color.FromArgb(50, 50, 55); // #323237
8989
public static readonly Color LightGrey = Color.FromArgb(128, 128, 130); // #808082

Forms/MainFrm.Designer.cs

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Forms/MainFrm.resx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,19 +273,19 @@
273273
<metadata name="DashboardTabBtn.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
274274
<value>True</value>
275275
</metadata>
276-
<metadata name="TermsPopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
276+
<metadata name="OfflinePopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
277277
<value>True</value>
278278
</metadata>
279-
<metadata name="PolicyPopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
279+
<metadata name="InstallPopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
280280
<value>True</value>
281281
</metadata>
282-
<metadata name="OfflinePopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
282+
<metadata name="UpdatePopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
283283
<value>True</value>
284284
</metadata>
285-
<metadata name="InstallPopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
285+
<metadata name="TermsPopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
286286
<value>True</value>
287287
</metadata>
288-
<metadata name="UpdatePopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
288+
<metadata name="PolicyPopup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
289289
<value>True</value>
290290
</metadata>
291291
<metadata name="ProcessTmr.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

Framework/Assembly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class Assembly
1010
private static readonly string _product = "CodeRed Launcher";
1111
private static readonly string _copyright = "CodeRedModding 2023";
1212
private static readonly string _license = "MIT License";
13-
private static readonly string _version = "1.2.3";
13+
private static readonly string _version = "1.2.4";
1414
private static readonly bool _termsOfUse = false;
1515
private static readonly bool _privatePolicy = false;
1616

0 commit comments

Comments
 (0)