DEV Community

Cover image for GTA 6 Running on Windows Isn't Really a Recomp. Why GitHub Took Down 3,007 Repos
Alan West
Alan West

Posted on Originally published at blog.authon.dev

GTA 6 Running on Windows Isn't Really a Recomp. Why GitHub Took Down 3,007 Repos

If you searched "GTA 6 PC" this week, you probably found two things: clips of GTA 6 running on Windows, and the news that Leonida, the GTA 6 recomp project that was supposed to make it run natively, is gone from GitHub. One DMCA notice from Take-Two took down 3,007 repositories: the main repo and every fork, all at once.

There's no official PC version and no legitimate download, so treat every "GTA 6 PC download" link going around right now as malware until proven otherwise. The engineering is still worth understanding, though, starting with the fact that the Windows clips mostly aren't a recomp at all. So is the takedown. If you host anything on GitHub that a publisher's lawyer might dislike, the fork rule that wiped Leonida applies to you too.

The Leonida timeline, from leak to DMCA

  • November 20, 2026: files from an Xbox Series build of GTA VI leak. Take-Two's notice calls them "stolen game files." According to a commenter on HN, Cyberleek posted the resources first and the game binary after; the executable was on r/GamingLeaksAndRumours by November 23.
  • November 21: ItsNotRexed/Leonida goes up, describing itself as "A Native PC Recompilation Of The Xbox Version Of Grand Theft Auto 6." Its README requires Xbox Series game files as input.
  • The next few days: the project splits the work into GitHub issues and invites people to throw their AI agents at them. A commenter on HN quoted the Discord a few hours after the executable dropped: "THE GAME ALMOST BOOTS. BLACK SCREEN, AUDIO CUTS OFF."
  • November 24: Take-Two's IP Enforcement Team files its notice and GitHub disables the whole fork network. The Discord server goes offline too. It had almost 180,000 members, according to Tom's Hardware citing TechPowerUp (via Make Tech Easier), and the creator's account says it got a two-year Discord ban. The creator is reportedly 15, and the HN headline has the ban landing while the lead dev was in school.

Is the "GTA 6 running on Windows" video a recomp at all?

Mostly not. This was the most useful correction in the HN thread on the Windows clip. One commenter wrote that "there's a lot of misconceptions going around about this being a 'recomp'." According to them, the current projects that actually put something on screen (xcl and VIctory) "basically take a Wine-like approach": they leave the Xbox code alone and fake the platform underneath it.

That checks out. Xbox Series and PC are both x86-64, and the same commenter said the binary doesn't have any special DRM or obfuscation, so running the CPU code is the easy bit. The trouble is everything around it:

  • the game ships raw RDNA 2 shaders, which have to be translated into something like DXIL before DirectX 12 on Windows will run them;
  • the Xbox has unified memory and most PCs don't, so something has to fake it;
  • Xbox DX12 differs from desktop DX12, and the game uses Xbox-specific texture formats through DirectStorage.

Nobody got far. Frame rates quoted in the HN thread are single digits: one commenter mentions clips running "at like 2fps", and the leading effort had reached in-game with "shaders running" at 4 FPS. Beebom puts it flatly: "a fully playable version has yet to materialize."

How static recompilation works (N64Recomp and XenonRecomp)

Leonida's pitch was real static recompilation, the method behind Zelda 64: Recompiled and Sonic Unleashed Recompiled. An emulator decodes guest instructions while the game is running. A static recompiler translates the whole executable into C or C++ once, ahead of time, and a normal compiler turns that into a native binary.

N64Recomp shows the idea plainly. Each MIPS function becomes a C function, and each instruction becomes a line operating on a context struct:

// addiu $r4, $r4, 0x20
ctx->r4 = ADD32(ctx->r4, 0X20);

// jalr $25  (indirect call, resolved at runtime)
LOOKUP_FUNC(ctx->r25)(rdram, ctx);
Enter fullscreen mode Exit fullscreen mode

Branch delay slots are handled by duplicating instructions. A jr that the tool can tell is reading a jump table becomes a switch. The output builds with MSVC, GCC or Clang, and N64ModernRuntime provides the rest of the console.

XenonRecomp does the same for Xbox 360 PowerPC, which is messier:

XenonAnalyse [input XEX file path] [output jump table TOML file path]
XenonRecomp [input TOML file path] [input PPC context header file path]
Enter fullscreen mode Exit fullscreen mode

Every load byte-swaps from big-endian, and every store swaps back. Loads and stores are volatile "to prevent Clang from doing unsafe code reordering." VMX vectors are stored fully reversed, so dot products use WZY instead of XYZ. Boundaries for functions with stack space come from the XEX .pdata section. Jump tables are found by pattern matching on mtctr r0 followed by bctr, and the README admits "there is no fully generic solution." Virtual function calls go through a perfect hash table that relies on function addresses sitting just past the valid XEX memory region. And there's a disclaimer in bold: "Making the game work is your responsibility."

Translating the CPU code was never the expensive part. Unleashed Recompiled also needed XenosRecomp to turn Xenos shaders into HLSL, an Xbox 360 kernel translation layer, and the plume graphics abstraction layer that gets it onto D3D12 and Vulkan. It shipped in March 2025.

GTA 6 has a bigger catch: an Xbox Series executable is already x86-64. There's no instruction set to translate, so the "recomp" label buys you very little. Almost all the work is the shader, memory and API translation from the list above, and nobody does that part in a weekend.

Why Take-Two's DMCA notice worked

Read the notice itself. It's more careful than the usual template. It doesn't claim Leonida shipped game assets. It makes three arguments:

  1. The repo "reproduces copyrighted expression" and is a derivative work.
  2. It breaks Section 2.3 of Rockstar's terms, which forbid you to "disassemble, decompile, decrypt, hack, derive source code from, reverse engineer" the software.
  3. The "bring your own files" instruction "is intentionally misleading," since the only Xbox Series copy of the game anyone has is the leak.

The third point is the one that sinks it. Unleashed Recompiled asks you to dump a game you own and can still buy. Leonida opened the day after a leak, targeted the leaked platform, and had no legal input to point to. You can argue about the derivative-work claim forever, but the timing alone told everyone what the tool was for.

Then there's GitHub's fork-network rule. If the network has more than 100 repos and the complainant alleges that all or most forks infringe as much as the parent, GitHub processes the notice against the whole network. Take-Two's own text mentions "2900+ forks"; GitHub's count was 3,007 repos in total. Nobody looked at them one by one.

My take: the ban was fair, the blast radius wasn't

I think GitHub made the right call on Leonida. A single-purpose tool that only works with a leaked build and appeared the day after the leak is piracy tooling, however nice its compiler internals are. Calling that "game preservation" for a game that isn't even out on PC yet hurts the projects that actually preserve games.

The fork rule is what bothers me. Some of those 3,006 forks were surely people studying how XenonRecomp-style analysis works, or lifting a shader translator for something else. They got the same treatment as the parent because one sworn statement said most forks infringe. You can file a counter-notice, but the default is: everyone goes down first, appeals come later.

If you maintain anything in this space, legitimate projects included, here's what I'd take from this week:

# keep a full mirror somewhere GitHub can't reach
git clone --mirror git@github.com:you/project.git
cd project.git
git remote add backup git@codeberg.org:you/project.git
git push --mirror backup
Enter fullscreen mode Exit fullscreen mode
  • Set up the mirror on day one, before anyone files a notice.
  • Only support inputs a user can get legally: a disc they own, a title that's still on sale.
  • Never ship assets, hashes or download links for leaked builds, and keep the toolchain generic. My guess is that part of why XenonRecomp is still up is that it isn't "the Sonic repo."
  • Don't run your whole community through GitHub issues and Discord. Leonida lost both at once.

So: was GitHub right to pull Leonida, or should a recompilation project be allowed to exist even when the only binary it can run is a leak? And is wiping 3,000 forks over one notice acceptable collateral damage? Tell me where I'm wrong.

Sources

Top comments (0)