style: format code
This commit is contained in:
parent
3f15516985
commit
ea77c98c2f
7 changed files with 14 additions and 14 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,14 +19,14 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue