mirror of
https://github.com/pj64team/Project64-Legacy.git
synced 2026-04-02 12:45:18 +00:00
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
#ifndef ROMTOOLS_H
|
|
#define ROMTOOLS_H
|
|
|
|
#define Unknown_Region 0
|
|
#define NTSC_Region 1
|
|
#define PAL_Region 2
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
void CountryCodeToString(char string[], BYTE Country, int length);
|
|
void CountryCodeToShortString(char string[], BYTE Country, int length);
|
|
int GetRomRegion(BYTE* RomData);
|
|
int GetRomRegionByCode(BYTE CountryCode);
|
|
void GetRomName(char* Name, BYTE* RomData);
|
|
void GetRomFullName(char* FullName, BYTE* RomData, char* FullPath);
|
|
void GetRomCartID(char* ID, BYTE* RomData);
|
|
void GetRomReleaseVersion(int* ReleaseVersion, BYTE* RomData);
|
|
void GetRomSdkVersion(BYTE* SdkVersion, BYTE* RomData);
|
|
void GetRomManufacturer(BYTE* Manufacturer, BYTE* RomData);
|
|
void GetRomCountry(BYTE* Country, BYTE* RomData);
|
|
void GetRomCRC1(DWORD* Crc1, BYTE* RomData);
|
|
void GetRomCRC2(DWORD* Crc2, BYTE* RomData);
|
|
enum CIC_CHIP GetRomCicChipID(BYTE* RomData);
|
|
void GetRomCicChipString(BYTE* RomData, char String[], int length);
|
|
void BuildRomCicChipString(enum CIC_CHIP ID, char String[], int length, int region);
|
|
|
|
void RomID(char* ID, BYTE* RomData);
|
|
void RomIDPreScanned(char* ID, DWORD* CRC1, DWORD* CRC2, BYTE* Country);
|
|
|
|
void RomHASH(char* ID, BYTE* FullRom, size_t rom_size);
|
|
void RomCRC32(char* ID, BYTE* FullRom, size_t rom_size);
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif |