Skip to content

Commit

Permalink
print list type as int as a test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Apr 24, 2024
1 parent e3d9a39 commit 3be17e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int main(int argc, char** argv)
//printf("%s %s %d\n",info.key,info.name,info.type);
if (nsfplay_prop_exists(core,i))
{
if (info.type == NSFP_PROP_TYPE_INT)
if (info.type == NSFP_PROP_TYPE_INT || info.type == NSFP_PROP_TYPE_LIST)
printf("%s: %d\n",info.key,nsfplay_prop_int(core,i));
else if (info.type == NSFP_PROP_TYPE_STR)
printf("%s: %s\n",info.key,nsfplay_prop_str(core,i));
Expand All @@ -150,7 +150,7 @@ int main(int argc, char** argv)
//printf("%s %s %d\n",info.key,info.name,info.type);
if (nsfplay_songprop_exists(core,i))
{
if (info.type == NSFP_PROP_TYPE_INT)
if (info.type == NSFP_PROP_TYPE_INT || info.type == NSFP_PROP_TYPE_LIST)
printf("%s: %d\n",info.key,nsfplay_songprop_int(core,i));
else if (info.type == NSFP_PROP_TYPE_STR)
printf("%s: %s\n",info.key,nsfplay_songprop_str(core,i));
Expand Down
3 changes: 3 additions & 0 deletions enums/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ PROPBLOB NSFE_PLAYLIST
PROPBLOB NSF_HEADER
PROPINT PLAYLIST_ACTIVE BOOL

# TODO blobs for other NSFe properties?
# TODO song properties, how many of these have NSFe properties too?

# for testing UI
PROPINT TEST_INT INT
PROPINT TEST_LONG LONG
Expand Down

0 comments on commit 3be17e7

Please sign in to comment.