MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetDumpSerial

Method GetDumpSerial

pcsx2/GSDumpReplayer.cpp:155–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155std::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
176u32 GSDumpReplayer::GetDumpCRC()
177{

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
GetCRCMethod · 0.45

Tested by

no test coverage detected