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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user