Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Apr 17, 2021
1 parent f15ac11 commit 289a370
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions SoD_Enable_Logging/SodEnableLogging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace SoD_Enable_Logging
{
[PublicAPI]
[BepInPlugin(pluginGuid, pluginName, pluginVersion)]
class SodEnableLogging : BaseUnityPlugin
public class SodEnableLogging : BaseUnityPlugin
{
public const string pluginGuid = "blazingtwist.enablelogging";
public const string pluginName = "BlazingTwist SoD EnableLogging";
Expand All @@ -18,21 +18,6 @@ class SodEnableLogging : BaseUnityPlugin
public static readonly string basePath = Application.dataPath + "/BlazingTwist/";

public void Awake() {
/*if(enableServiceCallLogging.Value) {
filteredServiceCalls = Config.Bind(
"Logging",
"FilteredServiceCalls",
string.Join(", ", new[]{
WsServiceType.GET_STORE,
WsServiceType.GET_COMMON_INVENTORY,
WsServiceType.GET_ALL_RANKS,
WsServiceType.GET_DETAILED_CHILD_LIST,
WsServiceType.GET_USER_UPCOMING_MISSION_STATE,
WsServiceType.GET_USER_ACTIVE_MISSION_STATE
}.Select(type => type.ToString())),
"List of the ServiceCalls to ignore when logging.");
}*/

Harmony harmony = new Harmony(pluginGuid);
harmony.PatchAll();
RuntimePatcherUtils.RunPatchers(Logger, harmony, RuntimePatcherUtils.GetTypesInNamespace(Assembly.GetExecutingAssembly(), "SoD_Enable_Logging.AsmFirstpass"));
Expand Down

0 comments on commit 289a370

Please sign in to comment.