Decomp ToolsA VS Code extension allowing in-editor tools. Less setup, less terminal, and less manual typing. Allows everyone to access and improve upon useful tools that might not otherwise be included in a decomp repository. Specifically made for N64 decomp, but other platforms such as GC could be supported as well. Video: https://youtu.be/5J2ZWwe3IC4 Features
DependenciesCompile gfxdis for wsl or linux. https://github.com/glankk/n64 Compiling from sourceOpen the project from VS Code and press F5 to compile and create a debugging session. UsageOpen a workspace or folder. This is required.
Then in Settings add in the paths to gfxdis and mips2C:
Open the Decomp Tools menu by navigating to the decomp icon on the activity bar. Click the M2CYou may need to click in and out of a function scope to get the M2C to appear. It only runs on functions that contain assembly in your decomps non_matching folder. gfxdisHighlight some dynamic DLs then press gfxdismultiA static displaylist generator. Find a .data file with DLs in it. Provide an offset with valid DLs and Decomp Tools will get gfxdis to generate C code until it hits a no op. Also converts Func Size ViewerInput a size in bytes to list any funcs that size or smaller. Only works for non_matching files that are not in extra folders. ConfigurationThe extension has a config file that auto recognizes decomps. The extension will need to be recompiled and updated to support more decomps. It currently has only been tested on mk64 but it has a definition for kirby. Future Desirable Features
Known Issues
ContributingPRs Welcome. |