| 153 | } |
| 154 | |
| 155 | std::string GSDumpReplayer::GetDumpSerial() |
| 156 | { |
| 157 | std::string ret; |
| 158 | |
| 159 | if (!s_dump_file->GetSerial().empty()) |
| 160 | { |
| 161 | ret = s_dump_file->GetSerial(); |
| 162 | } |
| 163 | else if (s_dump_file->GetCRC() != 0) |
| 164 | { |
| 165 | // old dump files don't have serials, but we have the crc... |
| 166 | // so, let's try searching the game list for a crc match. |
| 167 | auto lock = GameList::GetLock(); |
| 168 | const GameList::Entry* entry = GameList::GetEntryByCRC(s_dump_file->GetCRC()); |
| 169 | if (entry) |
| 170 | ret = entry->serial; |
| 171 | } |
| 172 | |
| 173 | return ret; |
| 174 | } |
| 175 | |
| 176 | u32 GSDumpReplayer::GetDumpCRC() |
| 177 | { |