How dheison0/ps2-game-manager works
PS2 Game Manager is a command-line terminal application for managing Open PS2 Loader games in a user-supplied directory. Its principal workflow is to load the OPL catalog, present games in a terminal UI, and let users install, rename, delete, or export them; cover downloading is another documented capability. The manager maintains the catalog and game-part files, while utilities read ISO contents and resize images. The README and sampled files establish the major capabilities, but install, cover, and cleanup UI wiring is not fully evidenced, so uncertain connections are omitted.
Main entry points: manager.go Manager · game.go Game model · actions.go Game actions · main.go Startup
Components 18
Application
- Startup
main.go
Terminal interface
- Terminal UI
tui/init.go - Game list
tui/menu.go - Game actions
tui/actions.go - Install screen
tui/install.go - File selector
tui/fileSelector.go - Export screen
tui/gameExporter.go - Cover screen
tui/covers.go - Cleanup screen
tui/cleaner.go - Error dialog
tui/errorDialog.go
Game management
- Manager
manager/manager.go - OPL catalog
manager/manager.go - Game model
manager/game.go
Game assets
- ISO reader
utils/byteWorks.go - Image resizing
utils/images.go - Orphan cleanup
cleaner/cleaner.go
Other components
- Operator
- Cover repository
Connections 20
- Operator → Startup: starts
- Startup → Manager: initializes
- Startup → Terminal UI: starts UI
- Terminal UI → Game list: presents
- Game list → Game actions: opens actions
- Game actions → Manager: renames or deletes
- Game actions → Export screen: opens export
- Export screen → File selector: selects folder
- Export screen → Game model: exports ISO
- Manager → OPL catalog: reads and writes
- Manager → Game model: creates games
- Manager → ISO reader: reads ISO metadata
- Game model → OPL catalog: serializes config
- Install screen → File selector: selects ISO
- Cover screen → Game model: manages covers
- Game model → Cover repository: downloads cover
- Game model → Image resizing: resizes cover
- Cleanup screen → Orphan cleanup: cleans unused files
- Orphan cleanup → Manager: checks installed files
- Game actions → Error dialog: reports errors