Fix Black Ops II menus, mode switching, local networking and DLC #1093
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1093
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1093/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@thenotsoquietninja44-collab on GitHub · 2026-10-06 00:59 UTC · original
thenotsoquietninja44-collab:bo2-local-modes-fixes→main· +429 −12 · 18 files · 6 commits · closed without mergingThis PR adds Black Ops II fixes for menu rendering, switching between Campaign/Zombies/Multiplayer, the “content still downloading” message when PlayGo metadata is missing, local lobby networking, bundled DLC detection, and offline DLC camo visibility. The changes are split into six focused commits.
These changes were developed with substantial AI assistance from Codex, including implementation and automated checks. I tested the BO2 functionality on the combined local
7415febbuild and confirmed it works, including DLC camos and Zombies gameplay. Gameplay still stutters, and there are minor graphical glitches in the main menu.My system: AMD Ryzen 7 9800X3D, 48 GB DDR5 RAM, NVIDIA GeForce RTX 5090, Windows. Game: PPSA34502, version 01.010.000.
The combined local build passed Windows compilation and filesystem/network regression tests. The BO2-only submission matches those BO2 changes and merges cleanly with current upstream, but has not been separately built or gameplay-tested. Linux and macOS have not been tested. DLC detection uses file-presence heuristics, not full asset-integrity validation.
This submission contains only BO2-related emulator changes and tests. It includes no game files. The screenshots show DLC/DLC2 camo menus, Zombies map selection, and Zombies gameplay.
@defektu on GitHub · 2026-10-06 17:38 UTC · original
For this being a draft, I suggest you to split this up into commits with proper parts like depth, network stubs, network implementations etc. This will make it easier to take in part by part.
@coderabbitai[bot] on GitHub · 2026-10-07 00:47 UTC · original · edited 2026-10-07 00:50 UTC
📝 Walkthrough
Walkthrough
The change adds guest argument parsing and runtime forwarding, a system-service load request that can relaunch the emulator, and optional process waiting. It adds depth-to-color copy handling to the renderer. For title PPSA34502, it adds asset-based entitlement and startup checks. It also adds guest socket-option handling and UDP coverage.
Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: 🟡 Moderate · up to
4657fFix the cross-platform test failure and the relaunch and argument-boundary issues before merging. Depth-copy logging can also produce repeated output when logging is enabled.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@ -184,0 +291,4 @@const auto waited = WaitForSingleObject(previous, 30000);CloseHandle(previous);if (waited != WAIT_OBJECT_0) return;}@coderabbitai[bot] on GitHub · 2026-10-07 00:47 UTC · original
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5704
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 6819
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 6525
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 7741
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 8998
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 2330
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 3356
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 1381
Report parent-wait timeouts and fail the replacement process.
If the parent has not exited within 30 seconds,
Runreturns beforeInitinitializesLog::Lifecycle, andMainthen returns0. The replacement exits without loading the game. BecauseLoadExecstarts it withCREATE_NO_WINDOW, the proposedEXITreport has no console or initialized file logger to receive it. Persist the timeout through a sink available beforeInit, and propagate a nonzero status fromRunthroughMain.@ -58,3 +58,3 @@int argc;uint32_t pad;const char* argv[3];const char* argv[35];@coderabbitai[bot] on GitHub · 2026-10-07 00:47 UTC · original
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Reserve one more slot so
envpstays inside the parameter block.init_envsetsg_envp = argv + argc + 1.Executecan produceargc == 34: the program name, the BO2 default setting, and 32 configured arguments. In that case the terminator isargv[34]andenvppoints toargv[35]. That slot is outside both 35-entry arrays, and thememsetinExecutedoes not clear it. If the guest walksenvp, it reads stack memory that was never initialized.Make room for an empty environment terminator. Increase the size in both
InitEnvParamsandEntryParamsinsrc/loader/runtimeLinker.cppLine 97.🐛 Proposed fix
📝 Committable suggestion
@ -1356,6 +1426,7 @@ int main(int, char**) {CheckSaveRename(temporary.Path(), "replacement-save");FileSystem::Shutdown();CheckSocketWakeup();CheckGuestUdpLobbySocket();@coderabbitai[bot] on GitHub · 2026-10-07 00:47 UTC · original
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Guard
CheckGuestUdpLobbySocketfor Windows, or add non-Windows support.maincallsCheckGuestUdpLobbySocketon every platform. The function is not guarded by#if defined(_WIN32). It depends on behavior that only exists in the Windows branches ofsrc/libs/network.cpp:Net::Getsockopt(..., 0xffff, 0x10000, ...)fails on Linux and macOS.ConvertSocketOptionNamenow rejects option values above0xffff, so the call returnsENOPROTOOPT.Setsockoptwith0x1106fails on Linux and macOS. The option is translated to-1.Setsockoptwith0x10000also fails.Checkcallsstd::abort()on failure. The test binary therefore aborts on non-Windows hosts before it reachesTestNpWebApi2Memory.CheckSocketWakeupalready uses#if defined(__linux__)and#if defined(_WIN32)guards for platform-specific behavior. Apply the same guards here, or implement the options on the other platforms.Proposed fix
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-10-07 00:47 UTC · original · reviewed
Actionable comments posted: 3
🧹 Nitpick comments (1)
ℹ️ Review info
⚙️ Run configuration
ae5e775c-da9a-47a7-930a-b69408544476📥 Commits
Reviewing files that changed from the base of the PR and between
cc44a43ebcand4657fe7b0e.📒 Files selected for processing (18)
src/common/emulatorConfig.cppsrc/common/emulatorConfig.hsrc/emulator.cppsrc/emulator.hsrc/graphics/guest_gpu/command_processor/pm4Handlers.cppsrc/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/depthRenderTarget.cppsrc/graphics/host_gpu/renderer/render.hsrc/graphics/host_gpu/renderer/renderDraw.cppsrc/libs/libC.cppsrc/libs/libNet.cppsrc/libs/libPlayGo.cppsrc/libs/libSystemService.cppsrc/libs/network.cppsrc/loader/runtimeLinker.cppsrc/main.cpptests/KernelFileSystemTests.cpp💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@Nmzik on GitHub · 2026-10-11 08:26 UTC · original
@thenotsoquietninja44-collab Credited. Thanks! No longer requires hacks with PlayGo
Pull request closed