UWP: Keep upstream names for capabilities preset settings to avoid mismatch
The previous code used `camelcase_to_underscore` to prettify the names for
display in the export preset, but it leads to inconsistencies if we don't make
sure to do the reverse operation when writing to the `AppxManifest.xml`.
It's simpler to keep the same names as in the manifest, which is also what
users will see referenced in MS documentation.
Fixes #47900.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit c87e49d7bc
)
This commit is contained in:
parent
898d404f66
commit
565d205d91
1 changed files with 3 additions and 3 deletions
|
@ -1056,19 +1056,19 @@ public:
|
||||||
// Capabilities
|
// Capabilities
|
||||||
const char **basic = uwp_capabilities;
|
const char **basic = uwp_capabilities;
|
||||||
while (*basic) {
|
while (*basic) {
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/" + String(*basic).camelcase_to_underscore(false)), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/" + String(*basic)), false));
|
||||||
basic++;
|
basic++;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char **uap = uwp_uap_capabilities;
|
const char **uap = uwp_uap_capabilities;
|
||||||
while (*uap) {
|
while (*uap) {
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/" + String(*uap).camelcase_to_underscore(false)), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/" + String(*uap)), false));
|
||||||
uap++;
|
uap++;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char **device = uwp_device_capabilities;
|
const char **device = uwp_device_capabilities;
|
||||||
while (*device) {
|
while (*device) {
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/" + String(*device).camelcase_to_underscore(false)), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/" + String(*device)), false));
|
||||||
device++;
|
device++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue