
Example: If the CRC-32 result is B05A4BA1, then type in A1 4B 5A B0.
Insert the CRC-32 checksum in the results pane into the file by manually typing the bytes in reverse order. and select CRC-32 as the algorithm and press OK. In HxD, navigate to Analysis > Checksums.
Calculate the CRC-32 checksum of the resulting file. (Accept the warning about resizing the file from HxD). Scroll to the bottom of the file in HxD and delete the last 4 bytes of the file. Save and close gameinputmodule.pf and re-open the file in HxD or another hex editor. Modify the m_Primary's m_DeviceType value to 1.
Modify the m_Primary's m_ControlElement value to 403 for Mouse 4 or 404 for Mouse 5. Navigate to the desired controls by finding the desired m_Control tag and locating its sibling m_Primary's a few lines above. Open the gameinputmodule.pf located under %USERPROFILE%\ Documents\My Games\Mafia Definitive Edition\Data\ \profiles\temporaryprofile\gameinputmodule.pf in a text editor such as Notepad++.