@@ -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