How gdretools/gdsdecomp works
Godot RE Tools recovers and converts Godot projects, with archive extraction and creation as related workflows. The principal recovery path starts with a PCK, APK, embedded executable, or project directory; it loads project data, decompiles scripts, restores resource formats and plugin configuration, then writes recovered files. The README documents these stages and CLI/GUI entry points. Source excerpts are partial, so internal recovery links rely on documented behavior where implementation calls were not shown; plugin discovery is shown separately as an additional capability.
Main entry points: gdre_settings.h Project loading · gdre_editor.cpp GUI recovery · cli_helper.h CLI commands · plugin_source.cpp Plugin sources
Components 18
User entry points
- GUI recovery
editor/gdre_editor.cpp - CLI commands
utility/cli_helper.h
Project recovery
- Project loading
utility/gdre_settings.h - Pack extraction
utility/pck_dumper.cpp - APK access
utility/file_access_apk.cpp - Encrypted access
crypto/file_access_encrypted_custom.cpp - Legacy resource loading
compat/resource_loader_compat.cpp - GDScript decompilation
bytecode/bytecode_base.cpp - Resource restoration
exporters - Plugin configuration
utility/pcfg_loader.cpp - Recovered project
Conversion tools
- Text-binary conversion
compat/resource_compat_text.cpp - Pack creation
utility/pck_creator.cpp - Translation patching
exporters/translation_exporter.cpp
Extensions
- Plugin manager
plugin_manager/plugin_manager.cpp - Plugin sources
plugin_manager/plugin_source.cpp
Other components
- User
- Plugin hosting services
Connections 17
- User → GUI recovery: starts recovery
- User → CLI commands: runs command
- GUI recovery → Project loading: loads project
editor/gdre_editor.cpp - CLI commands → Project loading: loads project
utility/gdre_settings.h - Project loading → Pack extraction: extracts pack
- Project loading → APK access: reads APK
- Project loading → Encrypted access: decrypts data
- Project loading → Legacy resource loading: loads resources
- Project loading → GDScript decompilation: decompiles scripts
bytecode/bytecode_base.cpp - Project loading → Resource restoration: restores imports
exporters/scene_exporter.cpp - Project loading → Plugin configuration: recreates config
- Project loading → Recovered project: writes project
- User → Text-binary conversion: converts resources
- User → Pack creation: creates pack
- User → Translation patching: patches translations
- Plugin manager → Plugin sources: queries sources
plugin_manager/plugin_manager.cpp - Plugin sources → Plugin hosting services: fetches releases