| 35 | } |
| 36 | |
| 37 | void FCEU_Guid::scan(std::string& str) |
| 38 | { |
| 39 | char* endptr = (char*)str.c_str(); |
| 40 | FCEU_en32lsb(data,strtoul(endptr,&endptr,16)); |
| 41 | FCEU_en16lsb(data+4,strtoul(endptr+1,&endptr,16)); |
| 42 | FCEU_en16lsb(data+6,strtoul(endptr+1,&endptr,16)); |
| 43 | FCEU_en16lsb(data+8,strtoul(endptr+1,&endptr,16)); |
| 44 | endptr++; |
| 45 | for(int i=0;i<6;i++) |
| 46 | data[10+i] = hexToByte(&endptr); |
| 47 | } |
no test coverage detected