mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-16 17:15:46 -04:00
Add JSON game database to replace dat parsing
This commit is contained in:
@ -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))
|
||||
|
@ -72,6 +72,7 @@ ConsoleRegion GetConsoleRegionForDiscRegion(DiscRegion region);
|
||||
std::string GetExecutableNameForImage(CDImage* cdi);
|
||||
bool ReadExecutableFromImage(CDImage* cdi, std::string* out_executable_name, std::vector<u8>* out_executable_data);
|
||||
|
||||
std::string GetGameHashCodeForImage(CDImage* cdi);
|
||||
std::string GetGameCodeForImage(CDImage* cdi, bool fallback_to_hash);
|
||||
std::string GetGameCodeForPath(const char* image_path, bool fallback_to_hash);
|
||||
DiscRegion GetRegionForCode(std::string_view code);
|
||||
|
Reference in New Issue
Block a user