1
0
Fork 0
forked from len0rd/rockbox

nwztools: add NW-WM1A/Z model IDs

Also fix code that was supposed to sort things deterministically and was a
massive failure.

Change-Id: Iedf25f05a94ef51421710a283eb60f33ee977de1
This commit is contained in:
Amaury Pouly 2017-01-07 17:32:47 +01:00
parent 76c73c707a
commit be68b6a7bd
5 changed files with 16 additions and 12 deletions

View file

@ -201,8 +201,8 @@ with open("nwz_db.h", "w") as fp:
# create comment to explain the meaning, gather several meaning together
# if there are more than one (sorted to keep a stable order when we update)
explain = ""
if name in sorted(g_nvp_desc):
explain = " | ".join(list(g_nvp_desc[name]))
if name in g_nvp_desc:
explain = " | ".join(sorted(list(g_nvp_desc[name])))
# overwrite desc set with a single string for later
g_nvp_desc[name] = explain
fp.write(" NWZ_NVP_%s, /* %s */\n" % (name.upper(), explain))