Compare commits

..

No commits in common. "main" and "1.1.0" have entirely different histories.

8 changed files with 15 additions and 15 deletions

View file

@ -29,4 +29,4 @@ public class GBSUClient : MonoBehaviour
{ {
GBNetUtils.DisconnectSelf(false); GBNetUtils.DisconnectSelf(false);
} }
} }

View file

@ -191,4 +191,4 @@ Please refer to the documentation for more information.");
error_dialog = GUILayout.Window(122, error_dialog, ShowError, "An error occurred!"); error_dialog = GUILayout.Window(122, error_dialog, ShowError, "An error occurred!");
} }
} }
} }

View file

@ -57,7 +57,7 @@ public class Helper
{ {
string names = ""; string names = "";
foreach (FileInfo file in files) foreach(FileInfo file in files)
{ {
names = file.Name + " " + names; names = file.Name + " " + names;
} }
@ -115,4 +115,4 @@ public class Helper
LobbyManager.Instance.LobbyStates.SelfState = LobbyState.Game.Menu; LobbyManager.Instance.LobbyStates.SelfState = LobbyState.Game.Menu;
} }
} }
} }

View file

@ -21,7 +21,7 @@
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" /> <PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" />
<PackageReference Include="UnityEngine.Modules" Version="2020.3.5" IncludeAssets="compile" /> <PackageReference Include="UnityEngine.Modules" Version="2020.3.5" IncludeAssets="compile" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'"> <ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" /> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup> </ItemGroup>

View file

@ -19,17 +19,17 @@ class ConfigLoaderPatch
// Reading from file // Reading from file
try try
{ {
text = File.ReadAllText(Helper.GameConfigPath); text = File.ReadAllText(Helper.GameConfigPath);
Plugin.Log.LogDebug("Provided rotation config:\n" + text); Plugin.Log.LogDebug("Provided rotation config:\n" + text);
RotationConfig rc = JsonConvert.DeserializeObject<RotationConfig>(text); RotationConfig rc = JsonConvert.DeserializeObject<RotationConfig>(text);
__result = rc; __result = rc;
} }
catch (Exception e) catch (Exception e)
{ {
GBSUGui.PushError("Couldn't read game config file. A few details:\n" + e); GBSUGui.PushError("Couldn't read game config file. A few details:\n" + e);
} }
return false; // skip return false; // skip
} }
} }

View file

@ -49,7 +49,7 @@ class HandleScorePatch
Plugin.Log.LogDebug("Done processing all scores!"); Plugin.Log.LogDebug("Done processing all scores!");
} }
return false; return false;
} }
} }

View file

@ -18,7 +18,7 @@ public class Plugin : BaseUnityPlugin
public static Dictionary<string, int> GameScore = []; public static Dictionary<string, int> GameScore = [];
private static GameObject _gbsuCompContainer; private static GameObject _gbsuCompContainer;
internal static ManualLogSource Log; internal static ManualLogSource Log;
public static GameObject GBSUCompContainer public static GameObject GBSUCompContainer
{ {
get get
@ -98,7 +98,7 @@ public class Plugin : BaseUnityPlugin
foreach (var comp in comps) foreach (var comp in comps)
{ {
Log.LogDebug("iterating thru singleton comps"); Log.LogDebug("iterating thru singleton comps");
if (comp is GBSUServer) if(comp is GBSUServer)
{ {
Log.LogDebug("GBSUServer component was found! Destroying it"); Log.LogDebug("GBSUServer component was found! Destroying it");
Destroy(comp); Destroy(comp);

View file

@ -79,4 +79,4 @@ Want a new feature? Found a bug? [Open an issue!](https://git.gaboule.com/Gaboul
- The mod is made for BepInEx 5 - The mod is made for BepInEx 5
- The targeted Unity version is `2020.3.5f1` - The targeted Unity version is `2020.3.5f1`
- The TFM is `netstandard2.0` - The TFM is `netstandard2.0`
- The mod is built using .NET SDK `9.0.304` - The mod is built using .NET SDK `9.0.103`