mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
GDScript: Fix loading of interdependent autoloads
Move the autoload resolution to runtime by loading it into the stack with an extra instruction. This allows an autoload to use another autoload singleton independent of load order.
This commit is contained in:
parent
a160a95ea6
commit
3d13588057
7 changed files with 46 additions and 3 deletions
|
|
@ -914,6 +914,14 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
|
|||
incr += 5;
|
||||
} break;
|
||||
DISASSEMBLE_ITERATE_TYPES(DISASSEMBLE_ITERATE);
|
||||
case OPCODE_STORE_GLOBAL: {
|
||||
text += "store global ";
|
||||
text += DADDR(1);
|
||||
text += " = ";
|
||||
text += String::num_int64(_code_ptr[ip + 2]);
|
||||
|
||||
incr += 3;
|
||||
} break;
|
||||
case OPCODE_STORE_NAMED_GLOBAL: {
|
||||
text += "store named global ";
|
||||
text += DADDR(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue