Files
Project64-Legacy/RomTools_Common.h
rgarciaz80 64588eb486 Changes to display CIC properly, based on region
Rom Browser and Rom Information have been updated

Common will contain the one unified place to build the string.
2021-04-13 10:00:44 -05:00

25 lines
986 B
C

#ifndef ROMTOOLS_H
#define ROMTOOLS_H
#define Unknown_Region 0
#define NTSC_Region 1
#define PAL_Region 2
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 GetRomManufacturer (BYTE *Manufacturer, BYTE *RomData);
void GetRomCountry (BYTE *Country, BYTE *RomData);
void GetRomCRC1 (DWORD *Crc1, BYTE *RomData);
void GetRomCRC2 (DWORD *Crc2, BYTE *RomData);
int GetRomCicChipID (BYTE *RomData);
void GetRomCicChipString(BYTE* RomData, char String[], int length);
void BuildRomCicChipString(int ID, char String[], int length, int region);
void RomID (char *ID, BYTE *RomData);
void RomIDPreScanned (char *ID, DWORD *CRC1, DWORD *CRC2, BYTE *Country);
#endif