fix iw8 encrypted switch string

This commit is contained in:
xensik 2022-08-05 20:05:40 +02:00
parent d8498adbc2
commit f197fb160d

View File

@ -425,7 +425,7 @@ void disassembler::disassemble_end_switch(const instruction::ptr& inst)
else if (value == 0) else if (value == 0)
{ {
inst->data.push_back("default"); inst->data.push_back("default");
stack_->read<std::uint16_t>(); stack_->read_c_string(); // this should be always [0x01 0x00] unencrypted
} }
else else
{ {
@ -596,7 +596,7 @@ void disassembler::print_function(const function::ptr& func)
print_instruction(inst); print_instruction(inst);
} }
output_->write_string(utils::string::va("end_%s\n", func->name.substr(4).data())); output_->write_string(utils::string::va("end_%s\n", func->name.data()));
} }
void disassembler::print_instruction(const instruction::ptr& inst) void disassembler::print_instruction(const instruction::ptr& inst)