# updeshxp/sf3tsoereborn architecture

> Architecture diagram of the GitHub repository updeshxp/sf3tsoereborn, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/updeshxp/sf3tsoereborn
- Repository: https://github.com/updeshxp/sf3tsoereborn

## Overview

SF3TSOEReborn is a Windows/Linux static recompilation of Street Fighter III: 3rd Strike Online Edition, with a small ReXGlue host runtime. The player supplies an Xbox 360 game package; extraction prepares assets, and the build converts the XEX into a native executable that launches through ReXGlue. At runtime, the app configures settings and hooks Xbox Live sign-in behavior, while rendering is provided by the SDK’s Xenia graphics backend. The graph includes documented extraction and title-update stages; unsampled build details and SDK internals are represented only where the README or excerpts support them.

Main entry points: [`src/sf3tsoereborn_app.h`](https://github.com/updeshxp/sf3tsoereborn/blob/main/src/sf3tsoereborn_app.h) (App lifecycle), [`scripts/build.py`](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/build.py) (Build orchestration), [`scripts/extract_tu.py`](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_tu.py) (TU extraction), [`scripts/extract_game_xbla.py`](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_game_xbla.py) (Game extraction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Game preparation"]
  node_game_extract["Game extraction"]
  node_game_assets["Game assets"]
  node_tu_extract["TU extraction<br/>[extract_tu.py]"]
  node_dlc_extract["DLC extraction<br/>[extract_dlc.py]"]
end

subgraph group_recomp["Recompilation"]
  node_build["Build orchestration<br/>[build.py]"]
  node_sdk["ReXGlue SDK"]
  node_native_game["Native game"]
end

subgraph group_host["Host runtime"]
  node_entry["App entry<br/>[main.cpp]"]
  node_app["App lifecycle"]
  node_settings["Settings UI<br/>[settings.cpp]"]
  node_xbox_live["Xbox Live stubs<br/>[xbox_live.cpp]"]
end

subgraph group_integrations["Runtime integrations"]
  node_rendering["Xenia rendering"]
end

node_owner(("Game owner"))
node_xbla["XBLA package"]
node_tu_package["Title update"]
node_player(("Player"))

node_owner -->|"provides"| node_xbla
node_xbla -->|"extracts from"| node_game_extract
node_game_extract -->|"writes assets"| node_game_assets
node_owner -->|"provides"| node_tu_package
node_tu_package -->|"extracts from"| node_tu_extract
node_tu_extract -.->|"supplies update"| node_build
node_tu_extract -->|"shares STFS reader"| node_dlc_extract
node_game_assets -->|"codegen input"| node_build
node_build -->|"uses SDK"| node_sdk
node_build -->|"produces"| node_native_game
node_player -->|"launches"| node_entry
node_entry -->|"creates"| node_app
node_app -->|"configures"| node_settings
node_app -.->|"registers hooks"| node_xbox_live
node_app -->|"runs with"| node_rendering
node_app -->|"runs"| node_native_game
node_player -->|"configures options"| node_settings

click node_game_extract "https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_game_xbla.py"
click node_tu_extract "https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_tu.py"
click node_dlc_extract "https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_dlc.py"
click node_build "https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/build.py"
click node_entry "https://github.com/updeshxp/sf3tsoereborn/blob/main/src/main.cpp"
click node_app "https://github.com/updeshxp/sf3tsoereborn/blob/main/src/sf3tsoereborn_app.h"
click node_settings "https://github.com/updeshxp/sf3tsoereborn/blob/main/src/settings.cpp"
click node_xbox_live "https://github.com/updeshxp/sf3tsoereborn/blob/main/src/xbox_live.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_game_extract,node_game_assets,node_tu_extract,node_dlc_extract toneBlue
class node_build,node_sdk,node_native_game toneAmber
class node_entry,node_app,node_settings,node_xbox_live toneMint
class node_rendering toneRose
class node_owner,node_xbla,node_tu_package,node_player toneIndigo
```

## Components

### Game preparation

- [Game extraction](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_game_xbla.py): `scripts/extract_game_xbla.py`
- **Game assets**
- [TU extraction](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_tu.py): `scripts/extract_tu.py`
- [DLC extraction](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/extract_dlc.py): `scripts/extract_dlc.py`

### Recompilation

- [Build orchestration](https://github.com/updeshxp/sf3tsoereborn/blob/main/scripts/build.py): `scripts/build.py`
- **ReXGlue SDK**
- **Native game**

### Host runtime

- [App entry](https://github.com/updeshxp/sf3tsoereborn/blob/main/src/main.cpp): `src/main.cpp`
- [App lifecycle](https://github.com/updeshxp/sf3tsoereborn/blob/main/src/sf3tsoereborn_app.h): `src/sf3tsoereborn_app.h`
- [Settings UI](https://github.com/updeshxp/sf3tsoereborn/blob/main/src/settings.cpp): `src/settings.cpp`
- [Xbox Live stubs](https://github.com/updeshxp/sf3tsoereborn/blob/main/src/xbox_live.cpp): `src/xbox_live.cpp`

### Runtime integrations

- **Xenia rendering**

### Other components

- **Game owner**
- **XBLA package**
- **Title update**
- **Player**

## Connections

- Game owner → XBLA package: provides (evidence: `README.md`)
- XBLA package → Game extraction: extracts from (evidence: `README.md`)
- Game extraction → Game assets: writes assets (evidence: `README.md`)
- Game owner → Title update: provides (evidence: `README.md`)
- Title update → TU extraction: extracts from (evidence: `scripts/extract_tu.py`)
- TU extraction → Build orchestration: supplies update (evidence: `scripts/build.py`)
- TU extraction → DLC extraction: shares STFS reader (evidence: `scripts/extract_dlc.py`)
- Game assets → Build orchestration: codegen input (evidence: `README.md`)
- Build orchestration → ReXGlue SDK: uses SDK (evidence: `README.md`)
- Build orchestration → Native game: produces (evidence: `README.md`)
- Player → App entry: launches (evidence: `README.md`)
- App entry → App lifecycle: creates (evidence: `src/main.cpp`)
- App lifecycle → Settings UI: configures (evidence: `src/sf3tsoereborn_app.h`)
- App lifecycle → Xbox Live stubs: registers hooks
- App lifecycle → Xenia rendering: runs with (evidence: `README.md`)
- App lifecycle → Native game: runs (evidence: `README.md`)
- Player → Settings UI: configures options (evidence: `README.md`)
