| 103 | } |
| 104 | |
| 105 | Error EditorExportPlatformWeb::_write_or_error(const uint8_t *p_content, int p_size, String p_path) { |
| 106 | Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::WRITE); |
| 107 | if (f.is_null()) { |
| 108 | add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), vformat(TTR("Could not write file: \"%s\"."), p_path)); |
| 109 | return ERR_FILE_CANT_WRITE; |
| 110 | } |
| 111 | f->store_buffer(p_content, p_size); |
| 112 | return OK; |
| 113 | } |
| 114 | |
| 115 | void EditorExportPlatformWeb::_replace_strings(const HashMap<String, String> &p_replaces, Vector<uint8_t> &r_template) { |
| 116 | String str_template = String::utf8(reinterpret_cast<const char *>(r_template.ptr()), r_template.size()); |
nothing calls this directly
no test coverage detected