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:
parent
76c73c707a
commit
be68b6a7bd
5 changed files with 16 additions and 12 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue