mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
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>
This commit is contained in:
parent
dd39855c0a
commit
c87e49d7bc
@ -1049,19 +1049,19 @@ public:
|
||||
// Capabilities
|
||||
const char **basic = uwp_capabilities;
|
||||
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++;
|
||||
}
|
||||
|
||||
const char **uap = uwp_uap_capabilities;
|
||||
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++;
|
||||
}
|
||||
|
||||
const char **device = uwp_device_capabilities;
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user