depot/third_party/nixpkgs/pkgs/games/gimx/variant.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

14 lines
426 B
Nix

{
afterglow = ''
substituteInPlace ./shared/gimxcontroller/include/x360.h \
--replace "0x045e" "0x0e6f" --replace "0x028e" "0x0213"
HEX="./loader/firmware/EMU360.hex"
sed -i '34s|1B2100|1B2110|' "$HEX"
sed -i '38s|092100|092110|' "$HEX"
sed -i '40s|5E048E021001|6F0E13020001|' "$HEX"
sed -i '34s|1C\r|0C\r|' "$HEX"
sed -i '38s|FE\r|EE\r|' "$HEX"
sed -i '40s|6D\r|DD\r|' "$HEX"
'';
}