Repository navigation
Conversation
sgLoopGyoRace was still a Ps2Unimplemented placeholder, so starting a Finny Frenzy race aborted the game. Bring the retail loop over from ps2/src/gyorace.cpp in place of its forward declaration. Native changes to the retail body: - CSceneEventData is declared plainly rather than inside an anonymous union; its member initializers delete the union's default constructor. The memset that follows is kept. - The results name copy uses dc2::text::Copy/Append instead of strcpy/strncpy, keeping retail's padding to 18 spaces. - printf becomes dc2::log::PrintGame, as elsewhere in the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db80b5ef66
ℹ️ 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".
|
|
||
| if (camera_pos.f[1] < 0.0f) { | ||
| mgSetAmbient(ambient.f); | ||
| water_cam = true; |
There was a problem hiding this comment.
Port the underwater pass off packed GIF data
When AutoCam selects either negative-Y camera during a normal race, this assignment makes sgEffectDrawGyoRace take its underwater branch (gyorace.cpp:1323-1345). That branch still builds the distortion strips with packed BeginPrim2(4, ...) at line 1267, but mgCDrawPrim::Data explicitly ignores packed runs (port/src/render/mg_drawprim.cpp:778-798), so the framebuffer/water overlay is never submitted and the race logs the "caller needs a port override" warning; port DivSpriteScreen to mgPortPrimVertex/mgPortPrimSubmit when enabling this loop.
Useful? React with 👍 / 👎.
|
This is the stub behind #215. In English, the reporter's second log reaches the race course and stops at I merged this branch with current master (
I haven't run a full race with it: I couldn't script the entry through the hall's menus. |
sgLoopGyoRaceinport/src/object/subgame/gyorace.cppwas still aPs2Unimplementedplaceholder, so the game aborted as soon as a Finny Frenzy race started. This brings the retail loop over fromps2/src/gyorace.cppin place of the forward declaration (retail order) and drops the placeholder and its stray includes at the end of the file.Native changes to the retail body:
CSceneEventData: declared plainly instead of inside an anonymousunion. The native struct has member initializers, which delete the union's default constructor, so the retail form doesn't compile. Thememsetthat follows stays.dc2::text::Copy/Appendreplacestrcpy/strncpy(the native architecture audit bans those). The name is still padded with spaces to 18 characters as in retail, and is now always terminated.printfbecomesdc2::log::PrintGame, as elsewhere in the file.Everything else is the retail code as-is, including the helpers the file already uses (
grGetFishProgress,AutoCam,SetGyoRaceRanking, thesndSe*calls).Also drops the "GyoRace hits the
sgLoopGyoRacestub" line fromdocs/DEBUG.md.docs/port/stubs.mdstill lists it, but that generated file is already out of date on master (it uses old-layout paths and its counts don't match a fresh run), so I didn't touch it here.Testing: the same loop, compiled from retail on an old-layout local build, ran a race on map 96 (
i03h05) from start to finish: laps and timers counted and the results event (350) played. I couldn't build the new layout locally (no Docker), so this PR relies on CI to compile it. The repo'snative_architecturesource check finds no issues in the file.🤖 Generated with Claude Code