mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Do not use Dictionary::keys() for Dictionary iteration.
This commit is contained in:
parent
4b36c0491e
commit
8ae16699c5
18 changed files with 78 additions and 102 deletions
|
|
@ -54,10 +54,9 @@ void OpenXRSelectRuntime::_update_items() {
|
|||
set_item_metadata(index, "");
|
||||
index++;
|
||||
|
||||
Array keys = runtimes.keys();
|
||||
for (int i = 0; i < keys.size(); i++) {
|
||||
String key = keys[i];
|
||||
String path = runtimes[key];
|
||||
for (const KeyValue<Variant, Variant> &kv : runtimes) {
|
||||
const String &key = kv.key;
|
||||
const String &path = kv.value;
|
||||
String adj_path = path.replace("~", home_folder);
|
||||
|
||||
if (da->file_exists(adj_path)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue