-
-
Notifications
You must be signed in to change notification settings - Fork 1
Building
David M edited this page Feb 10, 2022
·
4 revisions
https://www.rust-lang.org/tools/install
The repo is set up so it should automatically build with the correct toolchain and target (i686-pc-windows-gnu).
You might have to install them first:
rustup target add i686-pc-windows-gnu
rustup toolchain install nightly-i686-pc-windows-gnu
Feel free to try building on other combinations but idk if it'll work.
Nightly is required due to needing to use the "thiscall" calling convention.
Tracking issue: https://github.com/rust-lang/rust/issues/42202
Clone the repo:
git clone https://github.com/PieKing1215/ptcMod.git
Build:
cargo build --release
(there will be a "ptc-mod.exe" and "ptc_mod.dll" in target/i686-pc-windows-gnu/release/)
Run:
cargo run --release