MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / save_cfb

Method save_cfb

utility/pcfg_loader.cpp:198–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198Error 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
214Error 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!");

Callers 2

save_project_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected