Skip to content

Commit a3982e0

Browse files
committed
Remove debug logging statement
1 parent 5d0a5be commit a3982e0

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

src/hooking/weapon.cpp

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,17 @@ void CemuHooks::hook_ChangeWeaponMtx(PPCInterpreter_t* hCPU) {
153153
if (actorPtr != 0 && boneNamePtr != 0) {
154154
sead::FixedSafeString40 actorName = getMemory<sead::FixedSafeString40>(actorPtr + offsetof(ActorWiiU, name));
155155
char* boneName = (char*)s_memoryBaseAddress + boneNamePtr;
156-
if (actorName.getLE() == "GameROMPlayer") {
157-
Log::print<INFO>("actorName = {}, boneName = {}", actorName.getLE(), boneName);
158-
if (strcmp(boneName, "Weapon_L") == 0 || strcmp(boneName, "Weapon_R") == 0) {
159-
Weapon targetActor = {};
160-
readMemory(targetActorPtr, &targetActor);
161-
162-
if (strcmp(boneName, "Weapon_L") == 0) {
163-
const bool isBow = targetActor.type.getLE() == Bow;
164-
const bool isSlateRune = targetActor.name.getLE() == "Item_Conductor";
165-
RND_Renderer::Layer2D::SetBowAimingActive(isBow || isSlateRune);
166-
}
167-
else if (targetActor.name.getLE() == "Item_Magnetglove") {
168-
RND_Renderer::Layer2D::SetBowAimingActive(true);
169-
}
156+
if (actorName.getLE() == "GameROMPlayer" && (strcmp(boneName, "Weapon_L") == 0 || strcmp(boneName, "Weapon_R") == 0)) {
157+
Weapon targetActor = {};
158+
readMemory(targetActorPtr, &targetActor);
159+
160+
if (strcmp(boneName, "Weapon_L") == 0) {
161+
const bool isBow = targetActor.type.getLE() == Bow;
162+
const bool isSlateRune = targetActor.name.getLE() == "Item_Conductor";
163+
RND_Renderer::Layer2D::SetBowAimingActive(isBow || isSlateRune);
164+
}
165+
else if (targetActor.name.getLE() == "Item_Magnetglove") {
166+
RND_Renderer::Layer2D::SetBowAimingActive(true);
170167
}
171168
}
172169
}

0 commit comments

Comments
 (0)