1#ifndef N64CKSUM_H_ 2#define N64CKSUM_H_ 3 4#include <stdint.h> 5 6// compute N64 ROM checksums 7// buf: buffer with extended SM64 data 8// cksum: two element array to write CRC1 and CRC2 to 9void n64cksum_calc_6102(unsigned char *buf, unsigned int cksum[]); 10 11// update N64 header checksums 12// buf: buffer containing ROM data 13// checksums are written into the buffer 14void n64cksum_update_checksums(uint8_t *buf); 15 16#endif // N64CKSUM_H_ 17 18