core/io: fix typo 'resoucre' to 'resource'

This commit is contained in:
Indah Sylvia 2017-08-08 12:02:49 +07:00
parent f6ad0ccc63
commit 51f56a4282
3 changed files with 8 additions and 8 deletions

View File

@ -717,7 +717,7 @@ Error ResourceInteractiveLoaderBinary::poll() {
if (!r) { if (!r) {
error = ERR_FILE_CORRUPT; error = ERR_FILE_CORRUPT;
memdelete(obj); //bye memdelete(obj); //bye
ERR_EXPLAIN(local_path + ":Resoucre type in resource field not a resource, type is: " + obj->get_class()); ERR_EXPLAIN(local_path + ":Resource type in resource field not a resource, type is: " + obj->get_class());
ERR_FAIL_COND_V(!r, ERR_FILE_CORRUPT); ERR_FAIL_COND_V(!r, ERR_FILE_CORRUPT);
} }
@ -901,7 +901,7 @@ void ResourceInteractiveLoaderBinary::open(FileAccess *p_f) {
uint32_t ext_resources_size = f->get_32(); uint32_t ext_resources_size = f->get_32();
for (uint32_t i = 0; i < ext_resources_size; i++) { for (uint32_t i = 0; i < ext_resources_size; i++) {
ExtResoucre er; ExtResource er;
er.type = get_unicode_string(); er.type = get_unicode_string();
er.path = get_unicode_string(); er.path = get_unicode_string();
external_resources.push_back(er); external_resources.push_back(er);
@ -926,7 +926,7 @@ void ResourceInteractiveLoaderBinary::open(FileAccess *p_f) {
for (uint32_t i = 0; i < int_resources_size; i++) { for (uint32_t i = 0; i < int_resources_size; i++) {
IntResoucre ir; IntResource ir;
ir.path = get_unicode_string(); ir.path = get_unicode_string();
ir.offset = f->get_64(); ir.offset = f->get_64();
internal_resources.push_back(ir); internal_resources.push_back(ir);

View File

@ -56,19 +56,19 @@ class ResourceInteractiveLoaderBinary : public ResourceInteractiveLoader {
StringName _get_string(); StringName _get_string();
struct ExtResoucre { struct ExtResource {
String path; String path;
String type; String type;
}; };
Vector<ExtResoucre> external_resources; Vector<ExtResource> external_resources;
struct IntResoucre { struct IntResource {
String path; String path;
uint64_t offset; uint64_t offset;
}; };
Vector<IntResoucre> internal_resources; Vector<IntResource> internal_resources;
String get_unicode_string(); String get_unicode_string();
void _advance_padding(uint32_t p_len); void _advance_padding(uint32_t p_len);

View File

@ -98,7 +98,7 @@ public:
DOCK_SLOT_MAX DOCK_SLOT_MAX
}; };
//TODO: send a resoucre for editing to the editor node? //TODO: send a resource for editing to the editor node?
void add_control_to_container(CustomControlContainer p_location, Control *p_control); void add_control_to_container(CustomControlContainer p_location, Control *p_control);
ToolButton *add_control_to_bottom_panel(Control *p_control, const String &p_title); ToolButton *add_control_to_bottom_panel(Control *p_control, const String &p_title);