Skip to content

Commit

Permalink
Configuration Recover on Connection Reestablish
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTech6 committed Dec 11, 2024
1 parent 4706b4a commit fd4f9ce
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
`latest`
- Fixed recovering configuration on reconnection established
- Removed dependencies on V Rising Unhallowed

`1.3.0`
- Changed Replace to return primary key int
- Added handled exception code list to insert parameters
- Removed Spam from checking Connect()
Expand Down
2 changes: 0 additions & 2 deletions CrimsonSQL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
<PackageReference Include="MySqlConnector" Version="2.4.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.7.0" />
<PackageReference Include="VRising.Unhollowed.Client" Version="1.0.*" />
<PackageReference Include="VRising.VampireCommandFramework" Version="0.9.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="images\" />
Expand Down
1 change: 0 additions & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using CrimsonSQL.API;
using CrimsonSQL.Services;
using CrimsonSQL.Structs;
using CrimsonSQL.Utility;
Expand Down
3 changes: 2 additions & 1 deletion Services/SQLService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public bool Connect()
{
reportConnection = false;
Plugin.LogInstance.LogInfo("Connected to MySQL database.");
Settings.MySQLConfigured = true;
}
return true;
}
Expand All @@ -42,7 +43,7 @@ public bool Connect()
$"\nError Code: {e.ErrorCode} " +
$"\nNumber: {e.Number} " +
$"\nMessage: {e.Message}" +
$"\nInner: {e.InnerException.Message}");
$"\nInner: {e.InnerException?.Message}");

reportConnection = true;
return false;
Expand Down
6 changes: 3 additions & 3 deletions thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ source = "./dist"
target = ""

[publish]
communities = ["v-rising"]
repository = "https://thunderstore.io"
communities = ["ultrakill"]
repository = "https://thunderstore.dev"
[publish.categories]
v-rising = ["1-0-update", "mods", "server"]
ultrakill = ["mods"]

0 comments on commit fd4f9ce

Please sign in to comment.