Add JSON game database to replace dat parsing
This commit is contained in:
parent
b25030b19a
commit
ff14e8aede
24 changed files with 594 additions and 397 deletions
|
|
@ -414,6 +414,11 @@ std::string GetGameCodeForImage(CDImage* cdi, bool fallback_to_hash)
|
|||
if (!fallback_to_hash)
|
||||
return {};
|
||||
|
||||
return GetGameHashCodeForImage(cdi);
|
||||
}
|
||||
|
||||
std::string GetGameHashCodeForImage(CDImage* cdi)
|
||||
{
|
||||
std::string exe_name;
|
||||
std::vector<u8> exe_buffer;
|
||||
if (!ReadExecutableFromImage(cdi, &exe_name, &exe_buffer))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue