[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112885":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},112885,"bo2-mac","adrbn\u002Fbo2-mac","adrbn","Call of Duty: Black Ops II statically recompiled from 32-bit x86 Windows to native ARM64 macOS: Remill → LLVM IR, a hand-written Win32 runtime, Direct3D 11 drawn by Metal. No Wine, no game files.",null,"C++",279,20,221,1,0,23,58,8,63.2,"GNU General Public License v3.0",false,"main",[24,25,26,27,28,29,30,31],"apple-silicon","black-ops-2","call-of-duty","llvm","macos","metal","remill","static-recompilation","2026-11-23 18:34:08","2026-11-23 15:44:45","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"docs\u002Fassets\u002Fhero-public-light.svg\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fhero-public.svg\" alt=\"bo2-mac: Call of Duty: Black Ops II statically recompiled from x86-32 Windows to native ARM64 macOS, from your own Steam copy. On an Apple M1: campaign 51 to 60 frames per second, Zombies 57 to 60, multiplayer against bots 53 to 60.\" width=\"100%\">\n\u003C\u002Fpicture>\n\n# bo2-mac\n\n**Call of Duty: Black Ops II, statically recompiled from 32-bit x86 Windows to native ARM64 macOS.**\u003Cbr>\nCampaign, Zombies and multiplayer against bots, built on your Mac from your own Steam copy.\n\n\u003Cb>English\u003C\u002Fb> · \u003Ca href=\"README.zh.md\">中文\u003C\u002Fa>\n\n\u003Ca href=\"#install\">\u003Cimg src=\"docs\u002Fassets\u002Fbtn-play.svg\" alt=\"Play it\" height=\"40\">\u003C\u002Fa>&nbsp;\n\u003Ca href=\"#results\">\u003Cimg src=\"docs\u002Fassets\u002Fbtn-results.svg\" alt=\"Results\" height=\"40\">\u003C\u002Fa>&nbsp;\n\u003Ca href=\"#pipeline\">\u003Cimg src=\"docs\u002Fassets\u002Fbtn-pipeline.svg\" alt=\"Pipeline\" height=\"40\">\u003C\u002Fa>&nbsp;\n\u003Ca href=\"#findings\">\u003Cimg src=\"docs\u002Fassets\u002Fbtn-findings.svg\" alt=\"Findings\" height=\"40\">\u003C\u002Fa>&nbsp;\n\u003Ca href=\"#roadmap\">\u003Cimg src=\"docs\u002Fassets\u002Fbtn-roadmap.svg\" alt=\"Roadmap\" height=\"40\">\u003C\u002Fa>\n\n\u003Ca href=\"https:\u002F\u002Fnews.ycombinator.com\u002Fitem?id=50449891\">\u003Cimg src=\"docs\u002Fassets\u002Fbtn-hackernews.svg\" alt=\"Featured on Hacker News\" height=\"44\">\u003C\u002Fa>\n\n![source: x86-32 Windows](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fsource-x86--32%20Windows-ff6a00?style=flat-square&labelColor=0b0b0c)\n![target: ARM64 macOS](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftarget-ARM64%20macOS-ff6a00?style=flat-square&labelColor=0b0b0c)\n![lifter: Remill, LLVM 17](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flifter-Remill%20%E2%86%92%20LLVM%2017-ff6a00?style=flat-square&labelColor=0b0b0c)\n![renderer: D3D11 to Metal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frenderer-D3D11%20%E2%86%92%20Metal-ff6a00?style=flat-square&labelColor=0b0b0c)\n![Wine: none](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWine-none-ff6a00?style=flat-square&labelColor=0b0b0c)\n![game files in this repository: none](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fgame%20files-none-f4f1ea?style=flat-square&labelColor=0b0b0c)\n![status: beta](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstatus-beta-f4f1ea?style=flat-square&labelColor=0b0b0c)\n\n\u003Csub>[Why](#why) · [Abstract](#abstract) · [Method](#method) · [Limits](#limits) · [Repository](#repository) · [Legal](#legal)\u003C\u002Fsub>\u003Cbr>\n\u003Csub>Beta, 2026-11-03 · measured on one Apple M1 (4 performance + 4 efficiency cores, 16 GB)\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fadrbn\u002Fbo2-mac\u002Fraw\u002Fmain\u002Fdocs\u002Fassets\u002Fgameplay.mp4\">\u003Cimg src=\"docs\u002Fassets\u002Fpreview.gif\" alt=\"Campaign, Zombies and multiplayer running natively on macOS\" width=\"560\">\u003C\u002Fa>\u003Cbr>\n\u003Csub>Campaign (Angola), Zombies (Town) and multiplayer (Hijacked, against bots) on an Apple M1, recorded while playing; the number in the top right corner is frames per second, and the screen recording itself costs some, mostly in the campaign. \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fadrbn\u002Fbo2-mac\u002Fraw\u002Fmain\u002Fdocs\u002Fassets\u002Fgameplay.mp4\">80-second video (MP4, 20 MB)\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Fp>\n\n> [!IMPORTANT]\n> **This repository contains no game file and no translated game code.** It turns your own Steam copy of Black Ops\n> II into an app for your Mac, on your Mac. The game's code ends up inside that app, so nobody can hand you a\n> ready-made one: each player builds their own, and it may not be shared. Unofficial fan project, not affiliated with\n> Activision, Treyarch or Microsoft. To play, buy the game. Beta: read [what has and has not been proven](docs\u002FPRERELEASE.md).\n\n---\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-01.svg\" alt=\"\" width=\"100%\">\n\n## Why\n\nBlack Ops II never came out on Mac, and on Apple Silicon it was not really playable before.\n[AppleGamingWiki](https:\u002F\u002Fwww.applegamingwiki.com\u002Fwiki\u002FCall_of_Duty:_Black_Ops_II) lists it as unplayable under\nCrossOver and not supported under Rosetta 2. What remains is a Windows ARM virtual machine in Parallels, with reports\nranging from 1 frame per second in matches on an M1 Max to 60–80 on M3 and M4\n([MacGamingDB](https:\u002F\u002Fmacgamingdb.app\u002Fgames\u002Fcall-of-duty-black-ops-ii)). Here the game is translated once, before it\nstarts, into a native ARM64 app: 51–60 frames per second on a base M1, with no Windows and no virtual machine. Being\nnative also means it can be fixed and extended like any Mac app: split-screen, which the PC version never had, is in\nprogress.\n\n## Abstract\n\nbo2-mac takes the three executables of Black Ops II, the campaign (`t6sp.exe`), Zombies (`t6zm.exe`) and\nmultiplayer (`t6mp.exe`), and turns their x86 machine code into ARM64 machine code ahead of time.\n[Remill](https:\u002F\u002Fgithub.com\u002Flifting-bits\u002Fremill) lifts each function to LLVM IR, a chain of our own passes rewrites\nthat IR, and the result is linked with a Win32 runtime written by hand, whose Direct3D 11 is drawn by Metal. There is\nno Wine and no JIT: the game runs as native code, in one process. About 150,000 functions are translated across the\nthree executables. Only the short sequences that the copy protection hides run in a small x86 interpreter, and so does\nany code the translation missed, so a hole is built to cost speed rather than crash the game.\n\nOn an Apple M1 the campaign runs at **51–60 frames per second**, and every mission loads and hands over to the next\none, down to the end credits. Zombies is played solo on **six maps** through the game's own menus at **57–60**.\nMultiplayer is played against bots through its real menus, eleven game modes, at **53–60**. One app,\n`Black Ops II.app`, opens the campaign, and the CAMPAIGN \u002F ZOMBIES \u002F MULTIPLAYER entries of each menu switch to the\nother game.\n\nNothing is downloaded from anyone but you: the converter reads the executables of the copy you bought, checks them\nbyte for byte, and builds the app on your machine.\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-02.svg\" alt=\"\" width=\"100%\">\n\n## Results\n\n| | measured | conditions |\n|---|---|---|\n| Campaign | **51–60 fps** | every mission loads and chains to the end credits; not all played end to end |\n| Zombies | **57–60 fps** (Die Rise 43–58) | TranZit, Mob of the Dead, Nuketown, Origins, Buried, Die Rise, solo, through the real menus |\n| Multiplayer against bots | **53–60 fps** | eleven game modes through the real menus: a full round, the scoreboard, back to the lobby |\n| Game world against real time | **≈ 1.0×** | the game's own server clock against wall time |\n| Conversion on the player's Mac | **about 1 hour 45** on an M1 (the campaign alone: about 45 minutes) | the campaign is playable as soon as it is converted; Zombies and multiplayer follow |\n| Disk | peak about **10 GB**, about **4 GB** kept | after the conversion, only the linked binaries stay |\n\nFrame rate counts the drawables really presented to the screen, checked against the screen and the Metal HUD.\n\n**What you can play**\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Cimg src=\"docs\u002Fassets\u002Fcard-public-campaign.svg\" alt=\"Campaign\" width=\"100%\">\u003Cbr>\nThe real main menu: NEW STORY, RESUME STORY, REPLAY MISSION. From \u003Ccode>angola\u003C\u002Fcode> to the end credits, the\nmissions load and hand over to the next one. Strike Force missions start with a click.\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Cimg src=\"docs\u002Fassets\u002Fcard-public-zombies.svg\" alt=\"Zombies\" width=\"100%\">\u003Cbr>\nThe six maps, solo: main menu, lobby, match, Game Over, scoreboard, then another match in the same process.\nDLC maps play if your Steam account owns them.\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Cimg src=\"docs\u002Fassets\u002Fcard-public-multi.svg\" alt=\"Multiplayer\" width=\"100%\">\u003Cbr>\nCustom Games against bots from the real menus: CHOOSE CLASS, the HUD, a full round, the scoreboard\nand back to the lobby. The match rules are this project's own script.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\nAll three modes: keyboard and mouse, or a DualSense as XInput through GameController.framework; sound on; movement\nkeys follow their position on your keyboard (ZQSD on AZERTY, WASD on QWERTY), unless you bound them yourself in the\ngame's options.\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-03.svg\" alt=\"\" width=\"100%\">\n\n## Pipeline\n\nIn five steps, all on the player's Mac:\n\n1. **Check.** The converter accepts only the exact Steam build of each executable, checked by SHA-256. The\n   launcher asks the Steam client on your Mac whether the signed-in account owns the game, and refuses otherwise.\n2. **Catalogue and lift.** Ghidra lists the functions of your own executable; Remill v6.0.1 lifts each one to\n   LLVM IR. Five patches to the lifter are carried in [tools\u002Fremill-patches\u002F](tools\u002Fremill-patches\u002F), among them the\n   x87 rounding mode, and one that forks a running Remill for each function instead of reloading its x86 semantics.\n3. **Fold.** Remill's IR is correct but slow: every guest memory access, flag and x87 push is a call or a store\n   into a `State` structure. Our passes rewrite it before `clang -O2`: guest reads and writes are inlined, `lock`\n   sequences become hardware atomics, the guest `ret` stays inside the lifted code, and the x87 stack is promoted to\n   locals.\n4. **Runtime.** [runtime\u002F](runtime\u002F) implements the Windows imports the game really calls, with exact stdcall\n   arities (the Steam API ones taken from Valve's public headers). Guest memory is one 4 GiB mapping. Direct3D 11 is\n   a fake-COM layer over Metal; DXBC shaders go through [HLSLcc](third_party\u002FHLSLcc). XAudio2 goes to CoreAudio, and\n   the videos are decoded natively with libvpx.\n5. **Threads.** Guest threads start as coroutines on one host thread, which removes most sources of\n   non-determinism and makes a run replayable. The fast configuration moves the server, the render backend, sound mixing and decoding, and the job\n   workers onto real host threads. ARM is not TSO, so this needed real memory barriers.\n\n**The copy protection is executed, not bypassed.** The game hides integrity checks behind hardware exceptions,\nsingle-step traps and code it decrypts into the heap. A small x86 machine built on Unicorn\n([x86_guest_vm.cpp](runtime\u002Fwin32\u002Fx86_guest_vm.cpp), [heap_code.cpp](runtime\u002Fwin32\u002Fheap_code.cpp)) runs exactly those\nsequences and hands control back to the recompiled code. No check result is forced and no key is placed by hand.\n\n**A hole in the translation is built to cost speed, not a crash.** When the game reaches x86 code that was never lifted, the\nsame machine runs its original bytes ([interp.cpp](runtime\u002Fwin32\u002Finterp.cpp)) and gives control back to the\nrecompiled code at the next translated block, call or return. Each interpreted address is logged (`[INTERP]`).\n\n**The online service is answered locally.** Zombies and multiplayer expect Demonware; a responder written from the\ngame's own requests ([dw_local.cpp](runtime\u002Fwin32\u002Fdw_local.cpp)) answers the lobby, storage and ticket on your Mac.\nNothing leaves the machine.\n\n\u003Cdetails>\n\u003Csummary>Why not Wine, CrossOver, DXVK or DXMT?\u003C\u002Fsummary>\n\nThey translate Windows calls at run time and keep the x86 code under Rosetta. Here the x86 code itself is gone: it is\nARM64 machine code before the game starts. DXVK and DXMT are PE DLLs that reach their native backend through Wine's\nunixlib mechanism; this port has no Wine, and its Direct3D 11 is its own layer over 32-bit guest memory. Only shader\ntranslation was needed from outside, and HLSLcc, a plain C++ library, covers it.\n\u003C\u002Fdetails>\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-04.svg\" alt=\"\" width=\"100%\">\n\n## Findings\n\nEach entry is a symptom seen on screen, the cause that was measured, and the effect of the fix.\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Thirteen findings\u003C\u002Fb>, from the x87 rounding mode to a false start inside one instruction\u003C\u002Fsummary>\n\n\n**F1 · The lifter ignored the x87 rounding mode.** In Zombies the prone view shook. `fistp` rounded to nearest where\nthe game had asked for truncation, inside the network codec of the view height. The height received by the client was\nwrong on 8 samples out of 8, and on 0 out of 8 after a Remill patch and a re-lift of the codec.\n\n**F2 · One reserved bit of the x87 control word.** A campaign mission froze in an effects loop, only with real\nthreads. The lifter stored bit 6 of the control word differently from real hardware. A one-line Remill patch and four\nre-lifted runtime functions fixed it, with no slowdown.\n\n**F3 · A CPU feature flag changes the algorithm.** Our `IsProcessorFeaturePresent` answered \"no SSE2\", so the C\nruntime took its x87 `ceil`, which rounded to nearest under our runtime. An effect then sampled index −1 forever: two\nmissions froze.\n\n**F4 · Our own log caused the stutter.** Hitches of 170–430 ms were the render thread blocked in `write()`: our log,\nredirected to a file on a nearly full disk. Sending it through a pipe to a child process took the hitches per run from\n12 and 8 to 0 and 0.\n\n**F5 · Shader translation moved constants by 4 bytes.** HLSLcc placed a `float2` after a `float` at offset 24 where\nDirect3D reads it at 20. 31 of 2,664 shaders were affected, among them the eyes and the reticles.\n\n**F6 · The protection has to run.** The options menu froze 8 times out of 8. An integrity check rewrites its own return\naddress to point at code decrypted into the heap, which the runtime ignored. Running that code, as Windows does, gave\n3 out of 3 without a freeze.\n\n**F7 · Our own safety guards were the obstacle.** One guard of ours stopped the game at 28 seconds of play. The largest\ngains of the project came from removing our own guards and false sharing, not from clever code.\n\n**F8 · An empty API stub looks like a broken service.** Two stubs that returned nothing (`CryptGenRandom`,\n`StringFromGUID2`) looked like a network failure in Zombies.\n\n**F9 · Thread priorities are part of the program.** `SetThreadPriority` was a stub. Passing the mixer's request to\nmacOS cut the short audio buffers of a run from 908–1872 to 7–71, and the sound gaps with them.\n\n**F10 · Native skinning, bit for bit.** CPU skinning rewritten in NEON gives the same bits as the original x86 and took\na heavy scene from 17.8 to 30.3 fps.\n\n**F11 · Decals need the game's depth bias.** Scorch marks and blood appeared or vanished with a slight turn of the\ncamera. The game asks for a depth bias on decals; our layer left it at zero. Passing the game's values to Metal fixed it.\n\n**F12 · The render thread was copying the level's geometry every frame.** In multiplayer and Zombies it copied 23–63 MB\nof vertex data to the GPU per frame, most of it static. Keeping static buffers resident in Metal brought the copies to\n3.5–5 MB per frame: multiplayer 51.8 → 60 fps, Zombies 43.1 → 58.2. The same change does nothing in the campaign,\nwhere the pace is set by the scheduler thread. A speed-up helps only the mode whose bottleneck it touches.\n\n**F13 · A false start inside one instruction cost half the frame rate in combat.** In the first conversions from a\nfresh Steam copy, Zombies fell to 25 fps whenever the player fired. Hot functions were running in the interpreter: the\ncatalogue placed the start of the next function inside the first instruction of a root, so its bounded sweep\ndecoded zero bytes and the root was dropped without a word. Sweeping such roots without the bound, as the one-by-one\nlifter already did, put them back in the translated code.\n\n\u003C\u002Fdetails>\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-05.svg\" alt=\"\" width=\"100%\">\n\n## Method\n\n**Predict, then measure.**\n\n- A prediction is written before the result is read: about 1,100 numbered ones by the time of this beta.\n- At least three runs per configuration. Run-to-run noise is 30–64%, so a difference under about 40% cannot be seen at n = 3.\n- A change must prove it is active: the log has to show it firing.\n- A run that never reaches the level is a dead run, not a data point.\n- The screen beats the log. When the screen contradicts a probe, the probe is wrong.\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Record and replay, retractions, clean room, who does what\u003C\u002Fb>\u003C\u002Fsummary>\n\n**Deterministic record and replay.** With every guest thread a coroutine on one host thread, most sources of\nnon-determinism are gone; the replay is checked against the recording, not assumed. Three boundaries capture all outside input: the import dispatcher, the window message drain, and the\nconsumed audio buffers. The journal is about 16 MB. It allows the same run twice with exactly one flag changed.\n\n**The instrument is the thing that fails.** Nearly 200 findings were taken back along the way. The largest share\n(31%) were an instrument that answered a different question; the next (17%), one that could not answer at all. So\nevery oracle here names its input and refuses to answer when that input is missing.\n\n**Clean room for the match rules.** Multiplayer and Zombies take their match rules from a daily patch file that Steam\nno longer ships. The replacement in [runtime\u002Fmatch_rules\u002F](runtime\u002Fmatch_rules\u002F) was written by a team that never saw the\noriginal script: one team wrote a behavioural specification from the game, the other wrote the code from that\nspecification alone, and the two only spoke through written questions and answers, kept with their dates.\n\n**Who does what.** AI agents supply the throughput: writing the shims, bisecting millions of calls per run, reading tens\nof thousands of lines. The human supplies the goal, the corrections from what is really on screen, and refuses the\nflattering conclusion. This is one game, months of work and heavy manual intervention.\n\n\u003C\u002Fdetails>\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-07.svg\" alt=\"\" width=\"100%\">\n\n## Limits\n\n- **Local only.** Multiplayer and Zombies run against the responder on your Mac. There is no online play, no LAN and\n  no co-op yet. League Play is refused.\n- **Match rules are ours.** Written in a clean room (see [Method](#method)); behaviour may differ from the original in\n  places.\n- **Heat.** The Mac runs very hot during long sessions (111–116 °C reported on the M1). Play plugged in: on battery,\n  macOS throttles the game hard. Plugging in avoids the slowdown, not the heat.\n- **First game on each map.** In Zombies and multiplayer, shaders are translated for Metal while the map loads, so\n  that first load is longer and the first minute can still hitch slightly. In the campaign they are translated when\n  they first appear, so the loading cinematic stays smooth and the first pass through a place can hitch. Everything\n  is cached: the next time, it loads fast and runs smooth.\n- **Window.** The game runs in a 1280×720 window.\n- **Other Macs.** Only one M1 has been measured. M2, M3 and M4 should be faster, but no number is claimed.\n- **Campaign.** Every mission loads and chains; not every one has been played end to end.\n- **Zombies.** Grief and Turned need a second player, and there is no co-op yet.\n- **macOS audio.** When the system's `coreaudiod` is unhealthy the campaign stalls on its first video. Check that\n  `afplay -t 1 \u002FSystem\u002FLibrary\u002FSounds\u002FTink.aiff` takes about 1 s; restarting the Mac fixes it.\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-08.svg\" alt=\"\" width=\"100%\">\n\n## Install\n\nYou need an Apple silicon Mac, macOS 14 or later, at least **20 GB free** (the conversion peaks at about 10 GB and about\n4 GB stays), Homebrew, and Steam for Mac signed in to the account that owns the game.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fadrbn\u002Fbo2-mac.git && cd bo2-mac\nbrew install llvm@17 cmake ninja libvpx unicorn\npip3 install capstone\nscripts\u002Fmake_app.sh --from-source\n```\n\nOpen `Black Ops II.app`, point it at your game folder and let it convert: about 1 hour 45 on an M1, the campaign first in about 45 minutes. The campaign is\nplayable as soon as it is converted: play it then, and Zombies and multiplayer are converted when you first pick them\nin the game's menu. Otherwise the conversion goes on through all three. If the disk falls under\n8 GB free, the conversion stops cleanly and resumes where it was.\n\n**Updating, or if the conversion stops.** Run `git pull && scripts\u002Fmake_app.sh --from-source` in the repository\nfolder: what is already converted is kept and the conversion resumes. An update redoes only what its changes touch: a\nfix to the runtime relinks the three modes in about 3 minutes on an M1 instead of converting again. If it still fails,\nopen an issue with the log it names.\n\nThe converter only accepts the exact Steam build, checked by SHA-256. The Steam executables are encrypted by Valve's\nSteamStub wrapper and **this repository provides no way to remove it**: the converter expects the three decrypted\nimages in `~\u002F.bo2-native\u002Fsteam\u002F` (`t6sp.exe.unpacked.exe`, `t6mp.exe.unpacked.exe`, `t6zm.exe.unpacked.exe`). You make\nthem yourself from the copy you bought, with a separate tool of your choice. Only the wrapper must go: the file names\nabove and the SHA-256 check tell you at once whether a file is right. Never share these files.\n\n**DLC.** The launcher asks your Steam client which DLC your account owns, exactly as the game does on Windows. A DLC map\nplays when you own it and its files are in your game folder.\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-09.svg\" alt=\"\" width=\"100%\">\n\n## Repository\n\n| path | what it holds |\n|---|---|\n| [runtime\u002Fwin32\u002F](runtime\u002Fwin32\u002F) | the Win32 runtime: kernel32, the scheduler, Direct3D 11, sound, input, the local service responder |\n| [runtime\u002Fgfx\u002F](runtime\u002Fgfx\u002F) | the Metal backend: presentation, shader cache, render targets |\n| [runtime\u002Fmatch_rules\u002F](runtime\u002Fmatch_rules\u002F) | the clean-room match rules for multiplayer and Zombies |\n| [tools\u002F](tools\u002F) | the lift driver, the catalogue, the IR passes, the disassembly and analysis tools |\n| [tools\u002Fremill-patches\u002F](tools\u002Fremill-patches\u002F) | the patches carried on top of Remill v6.0.1 |\n| [scripts\u002F](scripts\u002F) | `make_app.sh`, the Steam installer and converter, the launchers |\n| [third_party\u002FHLSLcc](third_party\u002FHLSLcc) | DXBC to Metal shader translation |\n| [docs\u002F](docs\u002F) | the prerelease status, the toolchain |\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-10.svg\" alt=\"\" width=\"100%\">\n\n## Roadmap\n\n1. **This beta**: the three modes from a fresh Steam copy, on other Macs than the one that built them. Your reports\n   (Mac model, frame rate, what broke) decide what comes next.\n   First outside report, 2026-11-05: on an M2 Pro (16 GB), the conversion completed and the game started, after three\n   fixes found on the way ([#4](https:\u002F\u002Fgithub.com\u002Fadrbn\u002Fbo2-mac\u002Fissues\u002F4), [#5](https:\u002F\u002Fgithub.com\u002Fadrbn\u002Fbo2-mac\u002Fissues\u002F5), [#6](https:\u002F\u002Fgithub.com\u002Fadrbn\u002Fbo2-mac\u002Fissues\u002F6)).\n2. **No Terminal**: one app to download and open, then drop the game folder on its window. It carries its tools\n   already built, so nothing is compiled on your Mac but the game itself (macOS 26 or later; macOS 14 and 15 keep the\n   Terminal install).\n3. **Fully translated**: the 46 code blocks that still run through the Unicorn interpreter are translated ahead of\n   time, and every translated instruction is checked against the interpreter;\n   any translated function can be sent back to the interpreter, to find a wrong one by halving.\n4. **No shader wait**: shaders built before the first match, instead of at launch (about 3 minutes in multiplayer) and\n   during play (freezes when a new effect appears). Started: shaders now compile in batches, and the ones from the\n   last sessions compile in the background at launch. In multiplayer on an M1 without Xcode (a few tries, not a\n   benchmark), shader compiling during the first two minutes of a match went from 18–25 s to 10–14 s on a first\n   launch and about 5 s on the next one; freezes over 300 ms went from 15–22 to 13–15, then 7. The first launch\n   still freezes about as often.\n5. **Shorter conversion**: down from about 2.5 hours to 1 hour 45 on an M1 (2026-11-06, measured on all three modes:\n   the preparation reads the executable once, the lift and the fold use every core the memory allows). An update now redoes\n   only what changed (a runtime fix: about 3 minutes). Next: less optimisation for code that rarely runs. The three modes share only 4 % of\n   their functions, so converting shared code once would gain little.\n6. **Faster, without heat**: the campaign is bound by the scheduler thread, not by rendering; multiplayer with 11 bots\n   is bound by the server thread. Native rewrites of the hottest functions come next, then frame rates above 60 for\n   120 Hz screens.\n7. **Controllers**: vibration and aim assist.\n8. **Together**: real UDP sockets for Zombies co-op, Grief and Turned, and multiplayer over LAN. Then local split\n   screen, which the PC version never had: two copies of the game drawn in one window, one controller each, joined over\n   that LAN.\n9. **Later**: MetalFX, post-processing when the frame is presented, and replacement textures loaded from the player's own copy.\n\n\u003Cimg src=\"docs\u002Fassets\u002Frule-11.svg\" alt=\"\" width=\"100%\">\n\n## Legal\n\nFor a copy the user owns, on hardware the user owns.\n\n- No engine source and no leaked code are used.\n- Neither the input binary nor the recompiled output is distributed. No game file is included: the player needs their\n  own Steam copy of Call of Duty: Black Ops II. The converter only accepts the exact Steam build (SHA-256), and\n  ownership is checked each time the game starts by the player's own Steam client: the game refuses to run when Steam\n  is not signed in or the account does not own it.\n- The copy protection is executed as the game wrote it; nothing in it is patched out. This repository provides no way\n  to remove Valve's SteamStub wrapper.\n- The online service the game expects is answered by a local responder written from the game's own requests: no\n  Activision server is contacted, there is no online play, and game ownership is still checked by the player's Steam.\n  The match rules were written in a clean room.\n- The code written here is licensed under GPL-3.0 ([LICENSE](LICENSE)).\n- Unicorn (GPL-2.0) is linked statically from Homebrew when you build ([tools\u002Fboot.py](tools\u002Fboot.py)). GPL-2.0 and\n  GPL-3.0 code cannot be shipped together in one binary, so the prebuilt tools of roadmap step 2 cannot embed Unicorn\n  as it is linked today. Building from source on your own Mac is not affected.\n\nThis is an unofficial fan project. Call of Duty and Black Ops are trademarks of Activision Publishing, Inc. Steam is a\ntrademark of Valve Corporation. This project is not affiliated with, endorsed by or sponsored by Activision, Treyarch,\nMicrosoft or Valve. To play, buy the game.\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F#adrbn\u002Fbo2-mac&Date\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=adrbn\u002Fbo2-mac&type=Date&theme=dark\" \u002F>\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=adrbn\u002Fbo2-mac&type=Date\" \u002F>\n    \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=adrbn\u002Fbo2-mac&type=Date\" \u002F>\n  \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Ffooter.svg\" alt=\"\" width=\"100%\">\u003C\u002Fdiv>\n","bo2-mac 是一款将《使命召唤：黑色行动II》从32位x86 Windows平台静态重编译为原生ARM64 macOS的开源项目。它基于Remill进行二进制提升至LLVM IR，配合手写Win32运行时和Direct3D 11到Metal的图形后端映射，实现零依赖Wine、不捆绑游戏文件的纯本地运行。支持单人战役、僵尸模式及AI对战多人模式，在Apple M1设备上可达50–60 FPS。适用于苹果芯片Mac用户在无虚拟化\u002F兼容层条件下原生运行经典Windows游戏的场景。",2,"2026-11-24 04:44:29","CREATED_QUERY"]