layers: Fix APIDump to correctly set output file name from settings file
authorTobin Ehlis <tobin@lunarg.com>
Wed, 26 Aug 2015 22:18:52 +0000 (16:18 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Thu, 27 Aug 2015 14:09:35 +0000 (08:09 -0600)
vk-layer-generate.py

index dd6c754..9de5c10 100755 (executable)
@@ -823,6 +823,12 @@ class APIDumpSubcommand(Subcommand):
         func_body.append('{')
         func_body.append('    using namespace StreamControl;')
         func_body.append('')
+        func_body.append('    char const*const logName = getLayerOption("APIDumpLogFilename");')
+        func_body.append('    if(logName != NULL)')
+        func_body.append('    {')
+        func_body.append('        fileName = logName;')
+        func_body.append('    }')
+        func_body.append('')
         func_body.append('    char const*const detailedStr = getLayerOption("APIDumpDetailed");')
         func_body.append('    if(detailedStr != NULL)')
         func_body.append('    {')