Hacking on GDPatch
GDPatch is written in the Rust programming language. The specific Rust nightly toolchain will be automatically installed from the rust-toolchain.toml.
Building
Section titled “Building”When working on GDPatch, you likely want to build gdpatch-loader:
cargo build --project gdpatch-loaderCopy the output file into your game install like a normal installation.
If you’re building on Linux for use under Wine, you can use the x86_64-pc-windows-gnu target.
Project structure
Section titled “Project structure”GDPatch is split into multiple crates:
gdpatchcontains mod loading, the patcher API, configs, and other mod loader related things.gdpatch-loaderis responsible for loading GDPatch into the game process. This is built as a dynamic (shared) library.gdpatch-godotcontains Godot-specific parsers and other goodies.filesillycontains our filesystem detours for making the game read our virtual packs.
Style guidelines
Section titled “Style guidelines”Please make sure your commits pass rustfmt and Clippy:
cargo fmtcargo clippy --fix