How oaleex/openshao works
OpenShao is a native PC port of Mortal Kombat: Shaolin Monks, running a statically recompiled Xbox game. The user-facing path is launcher setup and game selection, followed by game startup, input, rendering, and persistent saves. Separate branches cover mod management, photo mode, and pipeline preparation. The README documents capabilities and the launch flow; source evidence is sampled unevenly, so unsampled subsystem links are omitted rather than inferred as calls.
Main entry points: vk_backend.cpp Vulkan Backend · launcher.h Launcher · linux_main.cpp Linux Entry · photo_mode.h Photo Mode
Components 22
Launch and Setup
- Launcher
src/launcher.h - Linux Entry
src/linux/linux_main.cpp - Updater
src/updater.cpp
Game Runtime
- Game Host
src/host.h - Input Controls
src/input_bindings.h - Campaign
src/campaign_moves.cpp - Survival Mode
src/survival_mode.cpp - Difficulty
src/difficulty.cpp
Graphics
- Vulkan Backend
src/linux/vk/vk_backend.cpp - Vulkan API
src/linux/vk/vk_api.h - Aspect Ratio
src/aspect_ratio.h - Pipeline Assets
src/pipeline_assets.cpp - Pipeline Precompile
src/pipeline_precompile.cpp - Screen Pipeline State
src/pipeline_screen_state.h
Mods and Enhancements
- Photo Mode
src/photo_mode.h - Photo Effects
src/photo_mode_effects.h - Mod Manager
src/mods/manager.cpp - Mod Routines
src/mods/routines.h - Language Packs
src/language_pack.h
Persistence
- Save Storage
src/save_storage.cpp - Runtime Paths
src/runtime_paths.h
Other components
- Player
Connections 26
- Player → Launcher: chooses game
- Launcher → Linux Entry: starts game
src/linux/linux_main.cpp - Linux Entry → Game Host: configures
src/linux/linux_main.cpp - Linux Entry → Input Controls: loads input
src/linux/linux_main.cpp - Linux Entry → Photo Mode: initializes
src/linux/linux_main.cpp - Game Host → Save Storage: uses storage
src/host.h - Player → Input Controls: plays with
- Player → Campaign: selects fighters
- Player → Survival Mode: chooses mode
- Player → Difficulty: sets difficulty
- Player → Photo Mode: captures photos
- Vulkan Backend → Vulkan API: uses API
src/linux/vk/vk_backend.cpp - Vulkan Backend → Pipeline Assets: starts pipelines
src/linux/vk/vk_backend.cpp - Vulkan Backend → Pipeline Precompile: builds pipelines
src/linux/vk/vk_backend.cpp - Vulkan Backend → Photo Mode: supports mode
src/linux/vk/vk_backend.cpp - Pipeline Assets → Screen Pipeline State: includes state
src/pipeline_assets.cpp - Pipeline Assets → Pipeline Precompile: uses precompiler
- Photo Mode → Photo Effects: offers effects
- Player → Mod Manager: manages mods
- Mod Manager → Mod Routines: uses routines
src/mods/manager.cpp - Player → Language Packs: chooses language
- Player → Updater: requests update
- Launcher → Updater: checks updates
- Player → Save Storage: stores progress
- Launcher → Runtime Paths: accesses files
- Vulkan Backend → Aspect Ratio: adapts display
src/linux/vk/vk_backend.cpp