| 196 | } |
| 197 | |
| 198 | Error ProjectConfigLoader::save_cfb(const String dir, uint32_t ver_major, uint32_t ver_minor) { |
| 199 | ERR_FAIL_COND_V_MSG(!loaded, ERR_INVALID_DATA, "Attempted to save project config when not loaded!"); |
| 200 | String file; |
| 201 | if (ver_major == 0) { |
| 202 | ver_major = major; |
| 203 | ver_minor = minor; |
| 204 | } |
| 205 | if (ver_major > 2) { |
| 206 | file = "project.godot"; |
| 207 | } else { |
| 208 | file = "engine.cfg"; |
| 209 | } |
| 210 | |
| 211 | return save_custom(dir.path_join(file).replace("res://", ""), ver_major, ver_minor); |
| 212 | } |
| 213 | |
| 214 | Error ProjectConfigLoader::save_cfb_binary(const String dir, uint32_t ver_major, uint32_t ver_minor) { |
| 215 | ERR_FAIL_COND_V_MSG(!loaded, ERR_INVALID_DATA, "Attempted to save project config when not loaded!"); |
no outgoing calls
no test coverage detected