style: format code
This commit is contained in:
parent
3f15516985
commit
ea77c98c2f
7 changed files with 14 additions and 14 deletions
|
|
@ -29,4 +29,4 @@ public class GBSUClient : MonoBehaviour
|
|||
{
|
||||
GBNetUtils.DisconnectSelf(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,4 +191,4 @@ Please refer to the documentation for more information.");
|
|||
error_dialog = GUILayout.Window(122, error_dialog, ShowError, "An error occurred!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class Helper
|
|||
{
|
||||
string names = "";
|
||||
|
||||
foreach(FileInfo file in files)
|
||||
foreach (FileInfo file in files)
|
||||
{
|
||||
names = file.Name + " " + names;
|
||||
}
|
||||
|
|
@ -115,4 +115,4 @@ public class Helper
|
|||
LobbyManager.Instance.LobbyStates.SelfState = LobbyState.Game.Menu;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" />
|
||||
<PackageReference Include="UnityEngine.Modules" Version="2020.3.5" IncludeAssets="compile" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -19,17 +19,17 @@ class ConfigLoaderPatch
|
|||
|
||||
// Reading from file
|
||||
try
|
||||
{
|
||||
{
|
||||
text = File.ReadAllText(Helper.GameConfigPath);
|
||||
Plugin.Log.LogDebug("Provided rotation config:\n" + text);
|
||||
RotationConfig rc = JsonConvert.DeserializeObject<RotationConfig>(text);
|
||||
__result = rc;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
__result = rc;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
GBSUGui.PushError("Couldn't read game config file. A few details:\n" + e);
|
||||
}
|
||||
|
||||
return false; // skip
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class HandleScorePatch
|
|||
|
||||
Plugin.Log.LogDebug("Done processing all scores!");
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public class Plugin : BaseUnityPlugin
|
|||
public static Dictionary<string, int> GameScore = [];
|
||||
private static GameObject _gbsuCompContainer;
|
||||
internal static ManualLogSource Log;
|
||||
|
||||
|
||||
public static GameObject GBSUCompContainer
|
||||
{
|
||||
get
|
||||
|
|
@ -98,7 +98,7 @@ public class Plugin : BaseUnityPlugin
|
|||
foreach (var comp in comps)
|
||||
{
|
||||
Log.LogDebug("iterating thru singleton comps");
|
||||
if(comp is GBSUServer)
|
||||
if (comp is GBSUServer)
|
||||
{
|
||||
Log.LogDebug("GBSUServer component was found! Destroying it");
|
||||
Destroy(comp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue