Skip to content

Commit 8d036fd

Browse files
committed
v1.3.6
Fixed an infinite loop message box that occurred if you tried to run the launcher without having Rocket League installed.
1 parent f62c95d commit 8d036fd

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

Architecture/Path.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace CodeRedLauncher.Architecture
66
{
77
// This is a custom class I made just so I could use something that was similar to "std::filesystem::path" which I am more familiar with.
88
// Unnecessary but I like working with it anyway because of the "append" function and divide operator overloads, there is room for improvement in some areas for sure but I don't care.
9+
910
public class Path
1011
{
1112
private string IndirectPath { get; set; } = "";

Framework/Assembly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static class Assembly
88
private static readonly string m_description = "Manages and injects the CodeRed module for Rocket League. ";
99
private static readonly string m_product = "CodeRedLauncher";
1010
private static readonly string m_copyright = "CodeRedModding 2024";
11-
private static readonly string m_version = "1.3.5";
11+
private static readonly string m_version = "1.3.6";
1212
private static readonly bool m_termsOfUse = false;
1313
private static readonly bool m_privatePolicy = false;
1414

Framework/Storage.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static class Storage
2020
{
2121
private static bool m_initialized = false;
2222
private static bool m_versionsValid = false;
23+
private static bool m_directoriesValid = true;
2324
private static PrivateSetting m_emptySetting = new PrivateSetting();
2425
private static PrivateSetting m_gamesFolder = new PrivateSetting();
2526
private static PrivateSetting m_logFile = new PrivateSetting();
@@ -321,7 +322,7 @@ public static bool HasCoderedRegistry()
321322

322323
public static bool FindDirectories()
323324
{
324-
if (!m_initialized)
325+
if (!m_initialized && m_directoriesValid)
325326
{
326327
Architecture.Path gamesFolder = (new Architecture.Path(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)) / "My Games" / "Rocket League");
327328

@@ -349,7 +350,9 @@ public static bool FindDirectories()
349350
}
350351
else
351352
{
352-
MessageBox.Show("Error: Failed to find the Rocket League games folder!", Assembly.GetTitle(), MessageBoxButtons.OK, MessageBoxIcon.Error);
353+
m_directoriesValid = false;
354+
MessageBox.Show("Error: Failed to find your Rocket League games folder, have you never run Rocket League before? Cannot continue!", Assembly.GetTitle(), MessageBoxButtons.OK, MessageBoxIcon.Error);
355+
Environment.Exit(0);
353356
}
354357
}
355358

Properties/PublishProfiles/FolderProfile.pubxml.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
44
-->
55
<Project>
66
<PropertyGroup>
7-
<History>True|2024-04-03T10:47:45.9088839Z;True|2024-02-27T19:00:12.7481260-05:00;True|2024-02-05T12:33:56.3871704-05:00;True|2024-02-05T12:33:40.9055040-05:00;True|2024-02-05T12:14:05.2718245-05:00;True|2024-01-11T22:34:10.0545942-05:00;True|2023-12-14T11:42:08.7749851-05:00;True|2023-12-11T04:37:59.0581676-05:00;True|2023-12-07T20:21:05.0260676-05:00;True|2023-12-07T20:15:40.7222580-05:00;True|2023-12-06T22:55:16.4882440-05:00;True|2023-12-06T22:53:36.1925636-05:00;True|2023-11-17T06:42:46.9521154-05:00;True|2023-11-17T06:36:00.5885901-05:00;True|2023-11-16T22:32:34.0407922-05:00;True|2023-10-25T18:05:44.6144276-04:00;True|2023-10-19T21:35:47.3332415-04:00;True|2023-09-29T15:21:56.0574702-04:00;True|2023-09-16T19:07:06.5515071-04:00;True|2023-09-16T19:06:08.9803131-04:00;True|2023-09-13T19:11:25.4534084-04:00;True|2023-09-12T15:15:53.5080335-04:00;True|2023-09-12T11:21:47.2201303-04:00;True|2023-09-11T17:53:54.1085377-04:00;True|2023-07-03T19:19:37.2984651-04:00;True|2023-06-23T12:19:10.5480937-04:00;True|2023-06-07T16:24:13.6686440-04:00;True|2023-06-07T16:19:33.2384233-04:00;True|2023-06-02T14:20:34.8667609-04:00;True|2023-06-02T14:19:16.9938932-04:00;True|2023-05-17T17:31:36.2391578-04:00;True|2023-05-13T13:56:01.0765277-04:00;True|2023-04-26T17:18:01.3003846-04:00;True|2023-04-17T18:09:22.0218857-04:00;True|2023-04-15T08:12:25.4751548-04:00;True|2023-02-23T17:42:55.3711325-05:00;True|2023-01-26T05:55:54.7338406-05:00;True|2023-01-14T16:37:43.9661254-05:00;True|2023-01-11T15:04:57.9184587-05:00;True|2023-01-01T06:51:43.9653309-05:00;True|2022-12-29T03:28:57.5161186-05:00;True|2022-12-25T20:55:07.0626032-05:00;True|2022-12-24T18:45:18.2492814-05:00;True|2022-12-24T17:58:05.8108440-05:00;True|2022-12-23T00:36:55.2356565-05:00;True|2022-12-22T20:46:31.3667454-05:00;True|2022-12-22T20:36:59.8978942-05:00;True|2022-12-22T20:32:40.9627042-05:00;True|2022-12-22T20:27:45.7845417-05:00;True|2022-12-22T20:08:26.4442830-05:00;True|2022-12-22T20:07:06.2254198-05:00;True|2022-12-22T20:01:04.3986967-05:00;True|2022-12-22T19:57:34.6741553-05:00;True|2022-12-22T19:46:09.3566048-05:00;True|2022-12-22T19:45:03.2884935-05:00;True|2022-12-22T19:36:42.2434776-05:00;True|2022-12-22T19:31:21.4738973-05:00;True|2022-12-22T19:27:34.9406205-05:00;False|2022-12-22T19:27:27.7152676-05:00;True|2022-12-22T19:14:05.9421852-05:00;True|2022-12-22T18:02:42.2130135-05:00;</History>
7+
<History>True|2024-04-12T17:00:36.7074137Z;True|2024-04-03T06:47:45.9088839-04:00;True|2024-02-27T19:00:12.7481260-05:00;True|2024-02-05T12:33:56.3871704-05:00;True|2024-02-05T12:33:40.9055040-05:00;True|2024-02-05T12:14:05.2718245-05:00;True|2024-01-11T22:34:10.0545942-05:00;True|2023-12-14T11:42:08.7749851-05:00;True|2023-12-11T04:37:59.0581676-05:00;True|2023-12-07T20:21:05.0260676-05:00;True|2023-12-07T20:15:40.7222580-05:00;True|2023-12-06T22:55:16.4882440-05:00;True|2023-12-06T22:53:36.1925636-05:00;True|2023-11-17T06:42:46.9521154-05:00;True|2023-11-17T06:36:00.5885901-05:00;True|2023-11-16T22:32:34.0407922-05:00;True|2023-10-25T18:05:44.6144276-04:00;True|2023-10-19T21:35:47.3332415-04:00;True|2023-09-29T15:21:56.0574702-04:00;True|2023-09-16T19:07:06.5515071-04:00;True|2023-09-16T19:06:08.9803131-04:00;True|2023-09-13T19:11:25.4534084-04:00;True|2023-09-12T15:15:53.5080335-04:00;True|2023-09-12T11:21:47.2201303-04:00;True|2023-09-11T17:53:54.1085377-04:00;True|2023-07-03T19:19:37.2984651-04:00;True|2023-06-23T12:19:10.5480937-04:00;True|2023-06-07T16:24:13.6686440-04:00;True|2023-06-07T16:19:33.2384233-04:00;True|2023-06-02T14:20:34.8667609-04:00;True|2023-06-02T14:19:16.9938932-04:00;True|2023-05-17T17:31:36.2391578-04:00;True|2023-05-13T13:56:01.0765277-04:00;True|2023-04-26T17:18:01.3003846-04:00;True|2023-04-17T18:09:22.0218857-04:00;True|2023-04-15T08:12:25.4751548-04:00;True|2023-02-23T17:42:55.3711325-05:00;True|2023-01-26T05:55:54.7338406-05:00;True|2023-01-14T16:37:43.9661254-05:00;True|2023-01-11T15:04:57.9184587-05:00;True|2023-01-01T06:51:43.9653309-05:00;True|2022-12-29T03:28:57.5161186-05:00;True|2022-12-25T20:55:07.0626032-05:00;True|2022-12-24T18:45:18.2492814-05:00;True|2022-12-24T17:58:05.8108440-05:00;True|2022-12-23T00:36:55.2356565-05:00;True|2022-12-22T20:46:31.3667454-05:00;True|2022-12-22T20:36:59.8978942-05:00;True|2022-12-22T20:32:40.9627042-05:00;True|2022-12-22T20:27:45.7845417-05:00;True|2022-12-22T20:08:26.4442830-05:00;True|2022-12-22T20:07:06.2254198-05:00;True|2022-12-22T20:01:04.3986967-05:00;True|2022-12-22T19:57:34.6741553-05:00;True|2022-12-22T19:46:09.3566048-05:00;True|2022-12-22T19:45:03.2884935-05:00;True|2022-12-22T19:36:42.2434776-05:00;True|2022-12-22T19:31:21.4738973-05:00;True|2022-12-22T19:27:34.9406205-05:00;False|2022-12-22T19:27:27.7152676-05:00;True|2022-12-22T19:14:05.9421852-05:00;True|2022-12-22T18:02:42.2130135-05:00;</History>
88
<LastFailureDetails />
99
</PropertyGroup>
1010
</Project>

0 commit comments

Comments
 (0)