Created by Bobjrsenior

Originaly F-Zero Variant can be found at: https://github.com/suloku/gcmm/blob/master/source/mcard.c#L941
(Discovered by Ralf of GSCentral forums)

Source: https://github.com/bobjrsenior/SMB_Checksum_Fixer

SMB save files and replay files use a checksum to verify its integrety.
This was probably done to avoid loading corrupted files.

To calculate and apply the checksum for a modified save file, just drop it on top of the executable.
For command line use, just use each save file as a command line parameter.

ex:
 ./SMB_Checksum_Fixer [FILE...]

Acknowledgements:

	Ralf for discovering the F-Zero variant

	suloku for having an implementation of the F-Zero variant in the GCMM repo
		https://github.com/suloku/gcmm

	dwangoAC for providing comuting power to try and brute force the polynomial

	CraftedCart for helping debug

	Wikipedia for having CRC pseudocode and explanations
		https://en.wikipedia.org/wiki/Computation_of_cyclic_redundancy_checks#Bit_ordering_.28endianness.29