Skip to content

Decompile LUB files on extact#17

Open
jezztify wants to merge 3 commits intoTokeiburu:mainfrom
jezztify:feature/decompile-lub-on-extract
Open

Decompile LUB files on extact#17
jezztify wants to merge 3 commits intoTokeiburu:mainfrom
jezztify:feature/decompile-lub-on-extract

Conversation

@jezztify
Copy link

@jezztify jezztify commented Feb 7, 2026

  • Added option in Settings > General
  • Allow decompilation of lub files instead of the binary files when extracting them
image image

- Added option in Settings > General
- Allow decompilation of lub files instead of the binary files when extracting them
Copilot AI review requested due to automatic review settings February 7, 2026 21:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new extraction-time option to decompile compiled .lub (Lua bytecode) files into text when extracting from a GRF, wiring it through configuration, startup settings, and the Settings UI.

Changes:

  • Add a new config-backed setting (DecompileLubOnExtract) exposed in Settings > General.
  • Load/apply the setting at startup into GRF.GrfSystem.Settings.
  • Update extraction thread logic to detect Lua bytecode and decompile .lub content to text during extraction.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
GRFEditor/WPF/SettingsDialog.xaml.cs Adds UI toggle for “Decompile LUB on extraction”.
GRFEditor/EditorMainWindow.xaml.cs Loads the new config setting into Settings.DecompileLubOnExtract at startup.
GRFEditor/ApplicationConfiguration/GrfEditorConfiguration.cs Persists the new setting via ConfigAsker and syncs it into Settings.
GRFEditor.sln Adds a GRF.Tests project reference/config entries.
GRF/Threading/GrfThreadExtract.cs Implements Lua bytecode detection and conditional .lub decompilation during extraction.
GRF/GrfSystem/Settings.cs Adds DecompileLubOnExtract setting to GRF runtime settings.
GRF/AssemblyInfo.cs Exposes internals to GRF.Tests via InternalsVisibleTo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…by reading source bytes, detecting bytecode, and writing the decompiled output.

- Included error handling consistent with the main extraction branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant