Skip to content

Commit b68c814

Browse files
committed
Remove Hook wording from debug text
1 parent ec155b9 commit b68c814

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Mappy/Controllers/IntegrationsController.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,33 +64,33 @@ private void DisableIntegrations() {
6464

6565
private void OnShowHook(AgentMap* agent, bool a1, bool a2)
6666
=> HookSafety.ExecuteSafe(() => {
67-
Service.Log.Debug("[OnShowHook] Hook Start");
67+
Service.Log.Debug("[OnShow] Beginning Show");
6868

6969
if (!ShouldShowMap()) {
70-
Service.Log.Debug("[OnShowHook] Condition to open map is rejected, aborting.");
70+
Service.Log.Debug("[OnShow] Condition to open map is rejected, aborting.");
7171
return;
7272
}
7373

7474
if (AgentMap.Instance()->AddonId is not 0 && AgentMap.Instance()->CurrentMapId != AgentMap.Instance()->SelectedMapId) {
7575
AgentMap.Instance()->Hide();
76-
Service.Log.Debug("[OnShowHook] Vanilla tried to return to current map, aborted.");
76+
Service.Log.Debug("[OnShow] Vanilla tried to return to current map, aborted.");
7777
return;
7878
}
7979

8080
showMapHook!.Original(agent, a1, a2);
81-
Service.Log.Verbose($"[OnShowHook] Called Original with A1 = {a1}, A2 = {a2}");
81+
Service.Log.Debug($"[OnShow] Called Original with A1 = {a1}, A2 = {a2}");
8282
}, Service.Log, "Exception during OnShowHook");
8383

8484
private void OpenMapById(AgentMap* agent, uint mapId, uint a3, bool a4)
8585
=> HookSafety.ExecuteSafe(() => {
8686
openMapByIdHook!.Original(agent, mapId, a3, a4);
87-
Service.Log.Debug($"[OpenMapByIdHook] Called Original with MapId = {mapId}, A3 = {a3}, A4 = {a4}");
87+
Service.Log.Debug($"[OpenMapById] Called Original with MapId = {mapId}, A3 = {a3}, A4 = {a4}");
8888
}, Service.Log, "Exception during OpenMapByMapId");
8989

9090
private void OpenMap(AgentMap* agent, OpenMapInfo* mapInfo)
9191
=> HookSafety.ExecuteSafe(() => {
9292
openMapHook!.Original(agent, mapInfo);
93-
Service.Log.Debug($"[OpenMapHook] Called Original with MapInfo [ " +
93+
Service.Log.Debug($"[OpenMap] Called Original with MapInfo [ " +
9494
$"MapId: {mapInfo->MapId}, " +
9595
$"MapType: {mapInfo->Type}, " +
9696
$"Title: {mapInfo->TitleString.ToString()}, " +
@@ -104,7 +104,7 @@ private void OpenMap(AgentMap* agent, OpenMapInfo* mapInfo)
104104

105105
switch (mapInfo->Type) {
106106
case MapType.QuestLog: {
107-
Service.Log.Debug("[OpenMapHook] Processing QuestLog Event");
107+
Service.Log.Debug("[OpenMap] Processing QuestLog Event");
108108

109109
uint targetMapId = mapInfo->MapId;
110110

@@ -120,40 +120,40 @@ private void OpenMap(AgentMap* agent, OpenMapInfo* mapInfo)
120120

121121
if (agent->SelectedMapId != targetMapId) {
122122
OpenMap(targetMapId);
123-
Service.Log.Debug($"[OpenMapHook] Opening MapId: {targetMapId}");
123+
Service.Log.Debug($"[OpenMap] Opening MapId: {targetMapId}");
124124
} else {
125-
Service.Log.Debug($"[OpenMapHook] Already in MapId: {targetMapId}, aborting.");
125+
Service.Log.Debug($"[OpenMap] Already in MapId: {targetMapId}, aborting.");
126126
}
127127

128128
if (System.SystemConfig.CenterOnQuest) {
129129
ref var targetMarker = ref agent->TempMapMarkers[0].MapMarker;
130130
CenterOnMarker(targetMarker);
131-
Service.Log.Debug($"[OpenMapHook] Centering Map on X = {targetMarker.X}, Y = {targetMarker.Y}");
131+
Service.Log.Debug($"[OpenMap] Centering Map on X = {targetMarker.X}, Y = {targetMarker.Y}");
132132
}
133133

134134
break;
135135
}
136136

137137
case MapType.GatheringLog: {
138-
Service.Log.Debug("[OpenMapHook] Processing GatheringLog Event");
138+
Service.Log.Debug("[OpenMap] Processing GatheringLog Event");
139139

140140
if (System.SystemConfig.CenterOnGathering) {
141141
ref var targetMarker = ref agent->TempMapMarkers[0].MapMarker;
142142

143143
CenterOnMarker(targetMarker);
144-
Service.Log.Debug($"[OpenMapHook] Centering Map on X = {targetMarker.X}, Y = {targetMarker.Y}");
144+
Service.Log.Debug($"[OpenMap] Centering Map on X = {targetMarker.X}, Y = {targetMarker.Y}");
145145
}
146146
break;
147147
}
148148

149149
case MapType.FlagMarker: {
150-
Service.Log.Debug("[OpenMapHook] Processing FlagMarker Event");
150+
Service.Log.Debug("[OpenMap] Processing FlagMarker Event");
151151

152152
if (System.SystemConfig.CenterOnFlag) {
153153
ref var targetMarker = ref agent->FlagMapMarker.MapMarker;
154154

155155
CenterOnMarker(targetMarker);
156-
Service.Log.Debug($"[OpenMapHook] Centering Map on X = {targetMarker.X}, Y = {targetMarker.Y}");
156+
Service.Log.Debug($"[OpenMap] Centering Map on X = {targetMarker.X}, Y = {targetMarker.Y}");
157157
}
158158
break;
159159
}

0 commit comments

Comments
 (0)