2 Common Source Code Project
3 MSX Series (experimental)
16 #include "../../types/util_configwrapper.h"
18 static RomType hashRomType(uint8_t *rom, int size)
20 int crc32 = get_crc32(rom, size);
22 _TCHAR str_romtype[32];
23 my_stprintf_s(str_crc32, 10, _T("%08X"), crc32);
24 MyGetPrivateProfileString(_T("CRC32"), str_crc32, _T("NONE"), str_romtype, sizeof(str_romtype)/sizeof(_TCHAR), create_local_path(_T("romhash.ini")));
27 if ((!_tcscmp(typestr[i].p, str_romtype)) || (typestr[i].type == ROMTYPE_NONE)) {
28 return (RomType)(typestr[i].type);
31 return (RomType)ROMTYPE_NONE;