loader: Don't add duplicate JSON files from Khronos registry path.
authorNorbert Garnys <Norbert.Garnys@amd.com>
Tue, 13 Feb 2018 15:32:03 +0000 (16:32 +0100)
committerLenny Komow <lenny@lunarg.com>
Thu, 15 Feb 2018 18:10:34 +0000 (11:10 -0700)
commite714ff2b13ee9064b74123841ed6c6470e7df550
treef37f525398f61b8a1e18560cbeb199dddb872b71
parent4cbd525001d5d156fc4ba569b82b813eba05246e
loader: Don't add duplicate JSON files from Khronos registry path.

To make sure we avoid enumerating old JSON files/drivers that might be present
in the non-device specific area of the registry when a newer device specific
JSON file is present, do a check before adding.
Find the file name, without path, of the JSON file found in the non-device
specific registry location. If the same JSON file name is already found in
the list, don't add it again.
loader/loader.c