In the previous post, the native port of Saint Seiya: The Hades got lighter in fights and gained a training mode. But anyone who wanted to play still needed Linux, a compiler and the patience to run build.sh. This round had two halves: finishing what was missing in the picture, and turning the project into something you download and play.
The fight HUD at the edges
The first post’s widescreen kept the fight HUD in the middle 4:3, with the 3D stage showing at the sides. It worked, but the life bars looked stuck in a window inside the screen.
Stretching the whole HUD would distort the portraits and the timer. So the port marks the 2D drawn during a fight (from the battle’s first step until its object is freed, so the pause keeps it) and places it by bands:
- Top band (portraits, names, life bars and the timer): each point is moved. The portrait and name go to the edge, the timer’s frame stays in the middle, and the bar and its ornament are stretched to join them.
- Bottom band (the cosmo gauges): each piece goes to its side.
- The rest (the pause menu, messages): stays in the middle.

There was a side effect. The game parks the combo counters off the 4:3 screen while they’re not in use, and in 16:9 they showed at the sides all fight long. Pieces of the middle band wholly off the 4:3 screen now stay off.
The character select from edge to edge
The select’s portrait rows aren’t pictures: they’re 3D strips, each with 12 border pieces and 12 portraits. On a 4:3 screen their ends were off screen; with the wider widescreen camera you could see the strips stopping short of the edges.
To extend the strips, the port has to create pieces the game never made. Each side’s 70-element array is now allocated with 20 more (new[] is intercepted by its return address). The new pieces, 5 at each end of each border, are set up, placed and put into the draw lists next to the game’s own, and the portrait layout shows 22 instead of 12.


When you move on to the stage select, the game slides each strip out by its length. The new pieces at the trailing end were left where the strip had been, as a large crooked border over the next screen. Now the pieces at one end only show while the strip is in place or coming in from that side.
Story scenes changed too. Many are 2D layers the game zooms and pans, far larger than the screen (a sky from x -968 to 1480 on a 512-wide frame). The art existed past the 4:3 screen, but it was cut and replaced with blurred sides. When a 2D picture covers the whole 16:9 screen, it is no longer cut.
Texts with a real font
The game writes each text into a picture of its own: an 8-bit canvas in EE memory, glyph by glyph (0x00155E40), from FONT\FONT.BIN (1,693 glyphs, 22 pixels high). Then it sends that picture to the GS as an 8-bit texture. At the port’s high resolution, those letters came out blurry.
The port records each glyph written: which character (reading the character tables backwards), where and in which colour. When the GS decodes an 8-bit texture equal to one of these canvases, it gets a picture 4 times larger, with the same characters drawn by FreeType in the same boxes. The game’s layout is kept, and each letter’s core and dark rim follow the palette, as the original glyphs do.


The first version made the menus hitch. A text that fades in gets a new palette every frame, and each change rebuilt the whole 2048×1024 picture and sent it to the GPU again: 1 to 3 ms on the GS thread, with 10 to 20 ms frames. Now:
- each character is drawn once and cached;
- the canvas is found by a hash of its texels;
- only the letters’ area is sent, with the rest of the texture cleared on the GPU itself.
A palette change dropped to 0 to 0.4 ms, and the menus are still pixel-identical.
Mu’s ring
Aries Mu’s special moves draw a ring by distorting the picture around him. They had two problems.
The first was the FPS. A draw that reads its own render target first got a copy of the whole target: 1024×1024 at the render scale, 64 MB at 4x. Mu’s ring is 120 to 150 such strips per frame, and the picture dropped to about 40 fps at 1080p. Now only the rectangle the draw reads is copied, and only when it isn’t in the copy yet or was drawn over since.
The second was the ring coming out cut, as a dark disc in the screen’s corner. The effect copies the area around Mu into a 256×256 corner of the frame and reads it back with perspective coordinates (STQ). The port scaled those coordinates by the target’s size (1024) instead of the size of the texture declared in the TEX0 register (512). The read landed past the picture. With the right scale, the ring is whole.
Player requests
Three new options in the F5 menu came from players’ messages:
- Auto-mash in Big Bangs. In the clash after a counter, and when a fighter’s life runs out (Athena calling them to stand up), the port presses the buttons for the player, one every 3 frames. It does this by answering the controller queries those events make. The counter’s timing press is still the player’s.
- Revival off. The game sends a fighter at life 0 to the revival event, unless the hit was a finishing blow. The port marks the hit as a finishing blow first, and the fighter is knocked out.
- Big Bang Counter off. The computer rolls whether to counter (68 in 100 press the right button). With the option off, neither it nor the player finds a button pressed, and the attack lands.
The training mode also came out from behind F5: the character select’s mode menu gained a Training item, which leads to a fight against an idle computer.
From “build it yourself” to a download
Until now, playing took Linux, GCC and build.sh. That changed in four steps.
1. No compiler on the player’s machine. The 189 VU1 programs were translated to C and compiled with GCC while you played. Now the build does it: a first executable writes the programs as C, and the final executable is linked with them. The port is also built for x86-64-v2, any x86-64 PC from the last 12 years, instead of -march=native. It costs 4% in the VU1, and the fight stays at 60 fps.
2. Windows. The port builds for Windows with MinGW-w64, from Linux. Almost everything that changes is in a platform layer:
- the executable’s folder;
- the settings folder (
%APPDATA%); - aligned memory;
- the vblank timer: winpthreads’
clock_nanosleepdoesn’t wait for an absolute time, so it became a high-resolution waitable timer; - 64-bit
off_t, because the ISO is 4 GB.
3. Linux. The binary built here wanted glibc 2.43. The AppImage is built in a Debian 13 container (glibc 2.41), carrying the libraries the system doesn’t guarantee.
4. A setup. The player picks or drags in the ISO. The Qt 6 setup checks:
- that it’s ISO 9660;
- that
SYSTEM.CNFbootsSLES_541.62; - that this executable’s SHA-1 is the one of the executable the port was translated from.
Then it copies the image next to the game, downloads the font and starts the game. The look is drawn in the code itself, in night blue and gold, with nothing from the game.

A pipeline without the game
What was left was building the packages on GitHub, and I hit a problem: the game’s translated code was generated from the disc’s executable, and the disc’s executable can’t go to GitHub.
The way out came from Tenkaichi3Decomp, which keeps the game’s code (the decompilation) in its repository, but no data. I checked that our generated C is code only: translated instructions and an address-to-function table, with no string or table from the game. The executable’s data was already loaded from the player’s disc when the game starts. So the generated C moved into a versioned folder, generated/:
- with the disc, the build remakes that folder whenever the translator changes, and the output is byte-identical on any machine;
- without the disc, the build compiles straight from it.
To confirm, I built both packages from a copy of the repository without the disc folder. The binary ran the game to the menu, with the same picture as the normal build.
The pipeline:
- Every push compiles the port’s code for Linux and Windows, with warnings treated as errors.
- Every push to
masterthat passes gets the next version. - The AppImage and the Windows zip are built in parallel.
- The release is published with the packages and checksums.
The first one came out on its own, from a single commit, in about 6 minutes.
Readability before mods
A group that has been modding the game for years wrote to me, interested in working on top of the port. Before that, the code had to be readable by someone other than me:
- every game address the native code uses got a name in a single file (
port/hle/game.h); - the renderer became a sequence of named steps;
- compiler warnings were turned on and fixed;
- there are guides to the architecture and to debugging, in English and Portuguese.
None of this could change behaviour. The refactored files compile to the same machine code, and a 400-frame fight recording, replayed by the code before and after, produces byte-identical pictures.
What I learned
- In widescreen, stretching and centring aren’t enough. Each screen needs its own rule, and sometimes the rule is creating pieces the game never made.
- An effect that reads its own picture is expensive on a PC GPU. Copy only what it will read.
- Before deciding something can’t go into the repository, look at what it contains. The generated C was code only, and that unlocked the pipeline.
- A refactor with no behaviour change is only trustworthy with proof. Here it was the same machine code and the same pictures.
The release is at github.com/matpdev/SaintSeiyaRecomp: a zip for Windows and an AppImage for Linux. You need your own copy of the game, the European release (SLES-54162). The Windows version has only been tested under Wine so far, so reports from anyone playing on real Windows help a lot.

