mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
This commit is contained in:
parent
2a38a5eaa8
commit
2ab83e1abb
257 changed files with 2818 additions and 3130 deletions
|
@ -830,7 +830,7 @@ Error GDScript::load_byte_code(const String& p_path) {
|
|||
Error GDScript::load_source_code(const String& p_path) {
|
||||
|
||||
|
||||
DVector<uint8_t> sourcef;
|
||||
PoolVector<uint8_t> sourcef;
|
||||
Error err;
|
||||
FileAccess *f=FileAccess::open(p_path,FileAccess::READ,&err);
|
||||
if (err) {
|
||||
|
@ -840,7 +840,7 @@ Error GDScript::load_source_code(const String& p_path) {
|
|||
|
||||
int len = f->get_len();
|
||||
sourcef.resize(len+1);
|
||||
DVector<uint8_t>::Write w = sourcef.write();
|
||||
PoolVector<uint8_t>::Write w = sourcef.write();
|
||||
int r = f->get_buffer(w.ptr(),len);
|
||||
f->close();
|
||||
memdelete(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue