How therevealz/stellasora-tool works
1. Overall shape
- This is a Windows DLL cheat/injected overlay project for the game *Stella Sora*.
- The architecture is split into four main layers: DLL entry/bootstrap, game API bindings, cheat feature logic, and DirectX 11 UI/rendering.
2. Process boundary
- The tool does not run as a standalone app; it is injected into the game process.
- The target process is the game client, and the cheat code runs inside the same address space, which is why it can call game internals and hook rendering.
3. Entry and startup flow
- dllmain.cpp, main.cpp, and main.h form the startup path.
- On load, the DLL initializes logging, game bindings, hooks, and feature state before the menu becomes available.
- The repo suggests a typical injected-module lifecycle: attach → initialize → hook → render/update → cleanup.
4. Game binding layer
- src/appdata/ is a generated/embedded binding layer for the game’s IL2CPP runtime.
- Files such as il2cpp-appdata.h, il2cpp-types.h, il2cpp-functions.h, and il2cpp-init.cpp provide access to game types, methods, metadata, and initialization.
- This layer is the key boundary between the cheat logic and the Unity/IL2CPP game internals.
5. Feature framework
- Feature.h and CheatMenu.* define the shared abstraction for cheat modules and menu integration.
- Individual cheats appear to be implemented as feature modules that can be toggled and updated independently.
- This makes the cheat logic modular rather than monolithic.
6. Gameplay modification modules
- src/cheat/ contains the actual gameplay-impacting features:
- InstantBreak
- MobVacuum
- NoCD
- StatModifier
- HitEffect
- misc/About
- These modules are likely responsible for altering game state, method behavior, or in-game entity properties through IL2CPP calls and/or hooks.
- The README’s listed features map directly to these modules, with some features grouped under broader names like God Mode, Multi Hit, and Unlimited Energy.
7. Rendering and overlay subsystem
- src/render/ handles the in-game overlay and menu rendering.
- dx11-hook.cpp indicates a DirectX 11 hook, likely used to intercept the game’s render loop and draw the cheat UI.
- renderer.* and gui-util.* suggest a UI toolkit layered on top of the hook, probably for the feature menu shown with F1.
8. Hook management
- src/util/HookManager.h is the central utility boundary for installing and tracking hooks.
- This is where rendering hooks and possibly gameplay hooks are coordinated so they can be enabled, disabled, and cleaned up consistently.
- Architecturally, this is the glue between the injected module and the game/runtime interception points.
9. Logging and diagnostics
- src/util/Logger.h provides runtime logging, which is important in an injected DLL context where failures often happen during initialization, hook setup, or IL2CPP resolution.
- The logger is likely used across startup, hook, and feature code to trace success/failure inside the host process.
10. Data flow
- The main flow is:
1. DLL loads into the game process.
2. IL2CPP app data is initialized and game symbols are resolved.
3. Hooks are installed, especially the DX11 render hook.
4. The menu is rendered during the game’s frame loop.
5. Feature toggles drive per-frame or event-driven game modifications.
- In other words, render loop drives UI, while feature logic drives gameplay changes.
11. Technology and runtime boundaries
- The project is a Visual Studio C++ solution (.sln, .vcxproj) targeting Windows.
- The important external runtime is the game’s Unity IL2CPP environment, plus DirectX 11 for the overlay.
- The vendor/ directory likely contains third-party dependencies used by the renderer or hooking layer.
12. What to show in an architecture diagram
- Draw the game as the host process, with an injected DLL inside it.
- Inside the DLL, separate:
- Bootstrap/entry
- IL2CPP binding layer
- Hooking layer
- Feature modules
- DX11 overlay/menu
- Show the IL2CPP layer as the bridge to game objects/methods, and the DX11 hook as the bridge to on-screen UI rendering.
Main entry points: Feature.h Feature base · main.cpp Main runtime · il2cpp-functions.h Functions · il2cpp-init.cpp IL2CPP init
Components 22
Host process
The game client that loads and runs the injected module.
- Stella Sora · Target Windows game process hosting the injected DLL.
Injected DLL
The cheat module running inside the game process.
- DLL entry · Process attach and initial module startup path.
src/dllmain.cpp - Main runtime · Core startup and lifecycle coordination for the injected module.
src/main.cpp - Main API · Declarations for the module startup path and shared entry points.
src/main.h
IL2CPP bindings
Generated bridge to Unity IL2CPP types, metadata, and functions.
- IL2CPP init · Initializes access to the game's IL2CPP runtime.
src/appdata/il2cpp-init.cpp - App data · Generated access to game types and metadata.
src/appdata/il2cpp-appdata.h - Types · IL2CPP type declarations and pointer aliases.
src/appdata/il2cpp-types.h - Functions · Resolved game method declarations and call wrappers.
src/appdata/il2cpp-functions.h
Cheat features
Gameplay-modifying modules exposed through the feature framework.
- Feature base · Shared abstraction for toggleable cheat modules.
src/Feature.h - Cheat menu · Menu integration and feature presentation.
src/CheatMenu.cpp - Menu API · Declarations for menu state and feature wiring.
src/CheatMenu.h - Stat modifier · Alters player or entity stats through game internals.
src/cheat/StatModifier.cpp - Instant break · Forces fast object or resource breaking behavior.
src/cheat/InstantBreak.cpp - Mob vacuum · Pulls enemies or objects toward the player.
src/cheat/MobVacuum.cpp - No cooldown · Removes ability or action cooldowns.
src/cheat/NoCD.cpp - Hit effect · Modifies hit or impact behavior in combat.
src/cheat/HitEffect.cpp - About · Informational miscellaneous feature page.
src/cheat/misc/About.cpp
Overlay rendering
DirectX 11 hook and in-game menu rendering.
Utilities
Shared support for hooks and logging.
- Hook manager · Installs, tracks, and cleans up runtime hooks.
src/util/HookManager.h - Logger · Runtime logging for startup, hook setup, and failures.
src/util/Logger.h
Connections 27
- Stella Sora → DLL entry: loads · The game process loads the injected DLL.
- DLL entry → Main runtime: starts · DLL entry transfers control to module startup.
- Main runtime → Logger: logs · Startup and runtime events are recorded for diagnostics.
- Main runtime → IL2CPP init: initializes · The module resolves and initializes IL2CPP access.
- IL2CPP init → App data: binds · Initialization uses generated app data bindings.
- IL2CPP init → Types: resolves · Type information is prepared for runtime access.
- IL2CPP init → Functions: resolves · Method and function wrappers are prepared for calls.
- Main runtime → Hook manager: installs · Core runtime sets up hook coordination.
- Hook manager → DX11 hook: manages · Hook manager controls render hook lifecycle.
- DX11 hook → Renderer: drives · Render hook triggers overlay drawing each frame.
- Renderer → GUI utils: uses · Renderer relies on shared UI helpers.
- Renderer → Cheat menu: renders · The overlay menu is drawn through the renderer.
- Cheat menu → Feature base: hosts · Menu presents the toggleable feature abstraction.
- Main runtime → Cheat menu: registers · Startup wires feature UI into the runtime.
- Feature base → Stat modifier: implements · Concrete feature module.
- Feature base → Instant break: implements · Concrete feature module.
- Feature base → Mob vacuum: implements · Concrete feature module.
- Feature base → No cooldown: implements · Concrete feature module.
- Feature base → Hit effect: implements · Concrete feature module.
- Feature base → About: implements · Concrete misc feature module.
- Stat modifier → Functions: calls · Gameplay features use resolved game methods.
- Instant break → Functions: calls · Gameplay features use resolved game methods.
- Mob vacuum → Functions: calls · Gameplay features use resolved game methods.
- No cooldown → Functions: calls · Gameplay features use resolved game methods.
- Hit effect → Functions: calls · Gameplay features use resolved game methods.
- Main runtime → Main API: declares · Startup header supports the module entry flow.
- Cheat menu → Menu API: declares · Menu implementation uses its public interface.