Skip to content

Commit

Permalink
apidump: Fix file setting being ignored
Browse files Browse the repository at this point in the history
If the 'file' option is set in the settings file, it will now be used
to determine whether to write to a file output or not. Previously it was
being ignored entirely, resulting in all output heading to a file.
  • Loading branch information
charles-lunarg committed Dec 15, 2023
1 parent 5c92444 commit 4b47af7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions layersvt/api_dump.h
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,14 @@ class ApiDumpSettings {
bool file = false;
vkuGetLayerSettingValue(layerSettingSet, kSettingsKeyFile, file);

if (output_format == ApiDumpFormat::Html) {
filename_string = "vk_apidump.html";
} else if (output_format == ApiDumpFormat::Json) {
filename_string = "vk_apidump.json";
} else {
filename_string = "vk_apidump.txt";
if (file) {
if (output_format == ApiDumpFormat::Html) {
filename_string = "vk_apidump.html";
} else if (output_format == ApiDumpFormat::Json) {
filename_string = "vk_apidump.json";
} else {
filename_string = "vk_apidump.txt";
}
}
}

Expand Down

0 comments on commit 4b47af7

Please sign in to comment.