You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user