| 548 | } |
| 549 | |
| 550 | String ProjectConfigLoader::get_as_text() { |
| 551 | RBMap<String, List<String>> proops = get_save_proops(); |
| 552 | Ref<FileAccessBuffer> f; |
| 553 | f.instantiate(); |
| 554 | f->open_new(); |
| 555 | |
| 556 | Error err = _save_settings_text_file(f, proops, major, minor); |
| 557 | ERR_FAIL_COND_V_MSG(err != OK, "", "Failed to save project.godot"); |
| 558 | return f->get_as_text(); |
| 559 | } |
| 560 | |
| 561 | String ProjectConfigLoader::get_project_settings_as_string(const String &p_path) { |
| 562 | int ver_major = GDRESettings::get_singleton()->get_ver_major(); |
no test coverage detected