# irfanlesnar/ps2-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/irfanlesnar/ps2-launcher
- Repository: https://github.com/irfanlesnar/ps2-launcher

## Overview

PS2 Launcher is a console-style PS2 game launcher. Users browse a unified game list or open Apps and Files, configure devices and game options, then launch a game or ELF; the EE core applies configured runtime features as the game starts. The README also documents cover downloads, VMC, cheats, GSM resolutions, IGR, and controller emulation. The graph includes these product branches and key IOP services; several are represented at their source-directory level because their implementation was not sampled. Edges are limited to README-described flows or relationships visible in the excerpts.

Main entry points: [`ee_core/src/main.c`](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/main.c) (EE game core), [`src/menusys.c`](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/menusys.c) (Menu navigation), [`src/guigame.c`](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/guigame.c) (Game browser), [`src/dialogs.c`](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/dialogs.c) (Settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Launcher interface"]
  node_menus["Menu navigation<br/>[menusys.c]"]
  node_game_ui["Game browser<br/>[guigame.c]"]
  node_config_ui["Settings<br/>[dialogs.c]"]
  node_files_ui["Files tab<br/>[ioman.c]"]
end

subgraph group_library["Games and files"]
  node_game_catalog["Game catalog<br/>[opl.c]"]
  node_storage[("Storage devices")]
  node_usb_fat["USB FAT access<br/>[fat_write.c]"]
  node_isofs["ISO and ZSO<br/>[isofs.c]"]
  node_covers["Cover downloads<br/>[httpclient.c]"]
end

subgraph group_runtime["Game runtime"]
  node_ee_core["EE game core<br/>[main.c]"]
  node_core_config["Core configuration<br/>[coreconfig.h]"]
  node_mod_manager["Module manager<br/>[modmgr.c]"]
  node_cheats["Cheat engine<br/>[cheat_api.c]"]
  node_gsm["GSM video modes<br/>[gsm_api.c]"]
  node_igr["In-game return<br/>[cd_igr_rpc.c]"]
  node_vmc["Virtual memory cards"]
end

subgraph group_platform["PS2 platform services"]
  node_controllers["Controller emulation<br/>[ds34bt.c]"]
  node_bluetooth_driver["Bluetooth controller driver<br/>[ds34bt.c]"]
end

subgraph group_network["Network services"]
  node_smb["SMB support<br/>[main.c]"]
  node_http_service["HTTP client service<br/>[main.c]"]
  node_tcpip["TCP/IP stack"]
  node_smap["SMAP network interface<br/>[main.c]"]
end

node_user(("Player"))

node_user -->|"uses"| node_menus
node_menus -->|"opens Games"| node_game_ui
node_menus -->|"opens Settings"| node_config_ui
node_menus -->|"opens Files"| node_files_ui
node_game_ui -->|"shows games"| node_game_catalog
node_game_catalog -->|"lists sources"| node_storage
node_files_ui -->|"manages files"| node_storage
node_storage -.->|"uses FAT access"| node_usb_fat
node_config_ui -->|"downloads covers"| node_covers
node_covers -.->|"requests HTTP"| node_http_service
node_game_ui -->|"launches game"| node_ee_core
node_ee_core -->|"reads settings"| node_core_config
node_ee_core -->|"uses modules"| node_mod_manager
node_ee_core -->|"enables cheats"| node_cheats
node_ee_core -->|"configures GSM"| node_gsm
node_ee_core -->|"supports return"| node_igr
node_game_ui -->|"configures VMC"| node_vmc
node_config_ui -->|"sets options"| node_core_config
node_ee_core -.->|"supports emulation"| node_controllers
node_controllers -.->|"uses driver"| node_bluetooth_driver
node_smb -.->|"uses networking"| node_tcpip
node_smap -->|"feeds packets"| node_tcpip
node_http_service -.->|"uses networking"| node_tcpip
node_game_catalog -.->|"reads disc images"| node_isofs

click node_menus "https://github.com/irfanlesnar/ps2-launcher/blob/main/src/menusys.c"
click node_game_ui "https://github.com/irfanlesnar/ps2-launcher/blob/main/src/guigame.c"
click node_config_ui "https://github.com/irfanlesnar/ps2-launcher/blob/main/src/dialogs.c"
click node_files_ui "https://github.com/irfanlesnar/ps2-launcher/blob/main/src/ioman.c"
click node_game_catalog "https://github.com/irfanlesnar/ps2-launcher/blob/main/src/opl.c"
click node_storage "https://github.com/irfanlesnar/ps2-launcher/tree/main/modules"
click node_usb_fat "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/usbhdfsd/src/fat_write.c"
click node_isofs "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/isofs/isofs.c"
click node_covers "https://github.com/irfanlesnar/ps2-launcher/blob/main/src/httpclient.c"
click node_ee_core "https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/main.c"
click node_core_config "https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/include/coreconfig.h"
click node_mod_manager "https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/modmgr.c"
click node_cheats "https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/cheat_api.c"
click node_gsm "https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/gsm_api.c"
click node_igr "https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/cd_igr_rpc.c"
click node_vmc "https://github.com/irfanlesnar/ps2-launcher/tree/main/modules/mcemu"
click node_controllers "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/pademu/ds34bt.c"
click node_bluetooth_driver "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/ds34bt/iop/ds34bt.c"
click node_smb "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/network/smbinit/main.c"
click node_http_service "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/network/httpclient/main.c"
click node_tcpip "https://github.com/irfanlesnar/ps2-launcher/tree/main/modules/network/SMSTCPIP"
click node_smap "https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/network/smap-ingame/main.c"

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_menus,node_game_ui,node_config_ui,node_files_ui toneBlue
class node_game_catalog,node_storage,node_usb_fat,node_isofs,node_covers toneAmber
class node_ee_core,node_core_config,node_mod_manager,node_cheats,node_gsm,node_igr,node_vmc toneMint
class node_controllers,node_bluetooth_driver toneRose
class node_smb,node_http_service,node_tcpip,node_smap,node_user toneIndigo
```

## Components

### Launcher interface

- [Menu navigation](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/menusys.c): `src/menusys.c`
- [Game browser](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/guigame.c): `src/guigame.c`
- [Settings](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/dialogs.c): `src/dialogs.c`
- [Files tab](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/ioman.c): `src/ioman.c`

### Games and files

- [Game catalog](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/opl.c): `src/opl.c`
- [Storage devices](https://github.com/irfanlesnar/ps2-launcher/tree/main/modules): `modules`
- [USB FAT access](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/usbhdfsd/src/fat_write.c): `modules/usbhdfsd/src/fat_write.c`
- [ISO and ZSO](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/isofs/isofs.c): `modules/isofs/isofs.c`
- [Cover downloads](https://github.com/irfanlesnar/ps2-launcher/blob/main/src/httpclient.c): `src/httpclient.c`

### Game runtime

- [EE game core](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/main.c): `ee_core/src/main.c`
- [Core configuration](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/include/coreconfig.h): `ee_core/include/coreconfig.h`
- [Module manager](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/modmgr.c): `ee_core/src/modmgr.c`
- [Cheat engine](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/cheat_api.c): `ee_core/src/cheat_api.c`
- [GSM video modes](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/gsm_api.c): `ee_core/src/gsm_api.c`
- [In-game return](https://github.com/irfanlesnar/ps2-launcher/blob/main/ee_core/src/cd_igr_rpc.c): `ee_core/src/cd_igr_rpc.c`
- [Virtual memory cards](https://github.com/irfanlesnar/ps2-launcher/tree/main/modules/mcemu): `modules/mcemu`

### PS2 platform services

- [Controller emulation](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/pademu/ds34bt.c): `modules/pademu/ds34bt.c`
- [Bluetooth controller driver](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/ds34bt/iop/ds34bt.c): `modules/ds34bt/iop/ds34bt.c`

### Network services

- [SMB support](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/network/smbinit/main.c): `modules/network/smbinit/main.c`
- [HTTP client service](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/network/httpclient/main.c): `modules/network/httpclient/main.c`
- [TCP/IP stack](https://github.com/irfanlesnar/ps2-launcher/tree/main/modules/network/SMSTCPIP): `modules/network/SMSTCPIP`
- [SMAP network interface](https://github.com/irfanlesnar/ps2-launcher/blob/main/modules/network/smap-ingame/main.c): `modules/network/smap-ingame/main.c`

### Other components

- **Player**

## Connections

- Player → Menu navigation: uses (evidence: `README.md`)
- Menu navigation → Game browser: opens Games (evidence: `README.md`)
- Menu navigation → Settings: opens Settings (evidence: `README.md`)
- Menu navigation → Files tab: opens Files (evidence: `README.md`)
- Game browser → Game catalog: shows games (evidence: `README.md`)
- Game catalog → Storage devices: lists sources (evidence: `README.md`)
- Files tab → Storage devices: manages files (evidence: `README.md`)
- Storage devices → USB FAT access: uses FAT access (evidence: `modules/usbhdfsd/src/fat_write.c`)
- Settings → Cover downloads: downloads covers (evidence: `README.md`)
- Cover downloads → HTTP client service: requests HTTP
- Game browser → EE game core: launches game (evidence: `README.md`)
- EE game core → Core configuration: reads settings (evidence: `ee_core/src/main.c`)
- EE game core → Module manager: uses modules (evidence: `ee_core/src/main.c`)
- EE game core → Cheat engine: enables cheats (evidence: `ee_core/src/main.c`)
- EE game core → GSM video modes: configures GSM (evidence: `ee_core/src/main.c`)
- EE game core → In-game return: supports return (evidence: `README.md`)
- Game browser → Virtual memory cards: configures VMC (evidence: `README.md`)
- Settings → Core configuration: sets options (evidence: `README.md`)
- EE game core → Controller emulation: supports emulation
- Controller emulation → Bluetooth controller driver: uses driver
- SMB support → TCP/IP stack: uses networking
- SMAP network interface → TCP/IP stack: feeds packets (evidence: `modules/network/smap-ingame/main.c`)
- HTTP client service → TCP/IP stack: uses networking
- Game catalog → ISO and ZSO: reads disc images
