Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 23d81babb0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const bool lady_archive = | ||
| archive_name.find("em034") != std::string_view::npos; |
There was a problem hiding this comment.
Normalize the archive stem before classifying Lady
For an archive named EM034.PAC or with any other case variation, archive_variants() still recognizes and assembles the Lady layout case-insensitively, but this check is false. Slots 12/13 are consequently left as Primary scripts, the component script is routed to the wrong motion pack, and the Lady runtime bridge/dynamic visuals are skipped. Conversely, unrelated names merely containing lowercase em034 are misclassified. Compare an exact, case-normalized basename instead of using a case-sensitive substring.
Useful? React with 👍 / 👎.
| report = load_motion( | ||
| session, payload.name, payload.bytes.data(), payload.bytes.size()); | ||
| if (!report.ok || session->motion == nullptr) return report; |
There was a problem hiding this comment.
Roll back Lady state when component MOT binding fails
When a script-linked component MOT is malformed or incompatible with slot 20, the preceding block has already changed its preset and control domain to IndependentMotionScript, but this failure return performs no rollback. Because load_motion() never installed a MotionState, later clear_motion() is also a no-op, leaving the component detached or repositioned for the remainder of the session. Restore the prior component state, or explicitly reset the Lady runtime, before returning a failed report.
Useful? React with 👍 / 👎.
| report = load_motion( | ||
| session, payload.name, payload.bytes.data(), payload.bytes.size()); |
There was a problem hiding this comment.
Disable MotionScript weapon keys for raw MOT playback
For player PAC motions with populated bank/index, this raw path delegates to load_motion(), which still fills MotionState::weapon_keys from session->motion_script; apply_motion_frame() then executes those attachment changes. Thus the newly exposed “raw MOT” button is not actually script-free as its API/UI promise states. Pass an explicit raw mode or otherwise suppress script-key binding on this path.
Useful? React with 👍 / 👎.
Temporary validation only. Do not merge. Exact v72 Lady head: 23d81ba. PR #104 remains DRAFT for physical Android acceptance.