Skip to content

Commit

Permalink
decompiler: fix secret-disable form in defskelgroup detection (#3713
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Hat-Kid authored Oct 14, 2024
1 parent a7a7110 commit c623190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion decompiler/IR2/Form.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3175,7 +3175,7 @@ goos::Object DefskelgroupElement::ClothParams::to_list(const std::string& ag_nam
pretty_print::to_symbol(std::to_string(timestep_freq))}));
}
if (secret != 0) {
auto bits = decompile_bitfield_enum_from_int(TypeSpec("game-secrets"), env.dts->ts, flags);
auto bits = decompile_bitfield_enum_from_int(TypeSpec("game-secrets"), env.dts->ts, secret);
result.push_back(pretty_print::build_list(
{pretty_print::to_symbol("secret-disable"),
pretty_print::to_symbol(fmt::format("(game-secrets {})", fmt::join(bits, " ")))}));
Expand Down
10 changes: 5 additions & 5 deletions goal_src/jak3/engine/common-obs/scene-actor.gc
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@
(drag 0.151)
(num-iterations 1)
(timestep-frequency 7)
(secret-disable (game-secrets scene-player-1 scene-player-3))
(secret-disable (game-secrets kleever-diaper))
)
((mesh kleever-highres-kleever-R1-cg)
(gravity-constant (meters 24))
Expand All @@ -484,7 +484,7 @@
(drag 0.151)
(num-iterations 1)
(timestep-frequency 7)
(secret-disable (game-secrets scene-player-1 scene-player-3))
(secret-disable (game-secrets kleever-diaper))
)
((mesh kleever-highres-kleever-Center-cg)
(gravity-constant (meters 24))
Expand All @@ -499,7 +499,7 @@
(drag 0.151)
(num-iterations 1)
(timestep-frequency 7)
(secret-disable (game-secrets scene-player-1 scene-player-3))
(secret-disable (game-secrets kleever-diaper))
)
((mesh kleever-highres-kleever-L2-cg)
(gravity-constant (meters 12))
Expand All @@ -514,7 +514,7 @@
(drag 0.151)
(num-iterations 1)
(timestep-frequency 7)
(secret-disable (game-secrets scene-player-1 scene-player-3))
(secret-disable (game-secrets kleever-diaper))
)
((mesh kleever-highres-kleever-R2-cg)
(gravity-constant (meters 12))
Expand All @@ -529,7 +529,7 @@
(drag 0.151)
(num-iterations 1)
(timestep-frequency 7)
(secret-disable (game-secrets scene-player-1 scene-player-3))
(secret-disable (game-secrets kleever-diaper))
)
)
)
Expand Down

0 comments on commit c623190

Please sign in to comment.