Skip to content

Commit

Permalink
[db] minor doc, this fixes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
David Skywalker committed Jun 6, 2022
1 parent d5a80d9 commit aa54966
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libretro/libretro-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,16 +1116,20 @@ void computer_load_file() {
uint32_t hash = get_hash(retro_content_filepath);
if (hash)
{
// check clean-cpc-db hash
game_configuration.is_fail = db_fail(hash);
if(!game_configuration.is_fail)
{
// cleaned games appear with GREEN DSK
game_configuration.is_clean = db_clean(hash);
db_info(hash);
}
else
{
// warn user is a unsupported ROM
retro_message("ROM marked as NOT WORKING.");
}

LOGI("[DB] >>> file hash: 0x%x [ b=%u, l=%u, f=%u, c=%u ]\n",
hash,
game_configuration.has_btn,
Expand Down

0 comments on commit aa54966

Please sign in to comment.