| Target (Android x86) | Host | |
|---|---|---|
| Linux | ||
| Windows (MSYS2) |
This repository contains decompiled source code for the game LEGO Star Wars: The Complete Saga, based on the Android x86 build of the game.
This build was chosen due to the presence of mangled symbol names, minimal function inlining, and the ready availability of a matching compiler. Core systems and game logic are believed to be identical.
This project is for educational and research purposes only. The decompiled code is provided "as is" without any warranties. The original game is the intellectual property of its respective owners. This repository does not contain any game assets, media, original source code, or any other copyrighted material.
The project uses CMake as its build system. There are two main build targets:
The Android x86 build, which uses the NDK toolchain and targets the original Android platform. This build is used for matching the code, its output can not be run.
A host build, which uses the hosts native gcc and targets i686 Linux. This build is used for testing and development, its output can be run on the host.
# configure
cmake -B build
# build
cmake --build buildcmake -B build-host -DBUILD_FOR_HOST=ON
cmake --build build-host
# executable
./build-host/sagaContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
However, please note that any contributions which include original game assets or source code will be rejected and expunged for the sake of the project.
See CONTRIBUTING.md for more details.
Documentation and explanations for various systems and components will be added over time. Contributions to the documentation are highly appreciated.
See the docs/ directory.
- The Android app can be run with the Waydroid emulator: https://waydro.id/
- The Android NDK can be found here: https://dl.google.com/android/ndk/android-ndk-r8e-linux-x86_64.tar.bz2