Merge pull request #49649 from timothyqiu/project-settings-key
This commit is contained in:
commit
0cca7bb4fd
1 changed files with 2 additions and 4 deletions
|
@ -711,8 +711,7 @@ Error ProjectSettings::_save_settings_binary(const String &p_file, const Map<Str
|
|||
file->store_32(count + 1);
|
||||
//store how many properties are saved, add one for custom featuers, which must always go first
|
||||
String key = CoreStringNames::get_singleton()->_custom_features;
|
||||
file->store_32(key.length());
|
||||
file->store_string(key);
|
||||
file->store_pascal_string(key);
|
||||
|
||||
int len;
|
||||
err = encode_variant(p_custom_features, nullptr, len, false);
|
||||
|
@ -749,8 +748,7 @@ Error ProjectSettings::_save_settings_binary(const String &p_file, const Map<Str
|
|||
value = get(key);
|
||||
}
|
||||
|
||||
file->store_32(key.length());
|
||||
file->store_string(key);
|
||||
file->store_pascal_string(key);
|
||||
|
||||
int len;
|
||||
err = encode_variant(value, nullptr, len, true);
|
||||
|
|
Loading…
Reference in a new issue