Skip to content

Commit

Permalink
Remove wav from iterator, add trd and scl.
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Sep 16, 2024
1 parent a564749 commit 4672e40
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/rhash/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -3978,6 +3978,10 @@ void rc_hash_initialize_iterator(struct rc_hash_iterator* iterator, const char*
{
iterator->consoles[0] = RC_CONSOLE_THOMSONTO8; /* disk */
}
else if (rc_path_compare_extension(ext, "scl"))
{
iterator->consoles[0] = RC_CONSOLE_ZX_SPECTRUM;
}
break;

case 't':
Expand All @@ -3994,7 +3998,8 @@ void rc_hash_initialize_iterator(struct rc_hash_iterator* iterator, const char*
{
iterator->consoles[0] = RC_CONSOLE_ELEKTOR_TV_GAMES_COMPUTER;
}
else if (rc_path_compare_extension(ext, "tzx"))
else if (rc_path_compare_extension(ext, "trd") ||
rc_path_compare_extension(ext, "tzx"))
{
iterator->consoles[0] = RC_CONSOLE_ZX_SPECTRUM;
}
Expand Down Expand Up @@ -4031,10 +4036,6 @@ void rc_hash_initialize_iterator(struct rc_hash_iterator* iterator, const char*
{
iterator->consoles[0] = RC_CONSOLE_APPLE_II;
}
else if (rc_path_compare_extension(ext, "wav"))
{
iterator->consoles[0] = RC_CONSOLE_ZX_SPECTRUM;
}
break;

case 'z':
Expand Down

0 comments on commit 4672e40

Please sign in to comment.