node/lib/metasm/metasm/gui/dasm_main.rb
def start_disassemble_bg
		return if @dasm.addrs_todo.empty? and @entrypoints.all? { |ep| @dasm.decoded[ep] }
		gui_update_counter = 0
		run = false
		Gui.idle_add {
			# metasm disassembler loop
			# update gui once in a while
			if run or not @entrypoints.empty? or not @dasm.addrs_todo.empty?
				protect { run = @dasm.disassemble_mainiter(@entrypoints) }
				gui_update_counter += 1
				if gui_update_counter > @gui_update_counter_max
					gui_update_counter = 0
					gui_update
				end
				true
			else
				gui_update
				false
			end
		}
	end
# start an idle callback that will run one round of @dasm.disassemble_mainiter
start an idle callback that will run one round of @dasm.disassemble_mainiter
start an idle callback that will run one round of @dasm . disassemble_mainiter
def start_disassemble_bg
		return if @dasm.addrs_todo.empty? and @entrypoints.all? { |ep| @dasm.decoded[ep] }
		gui_update_counter = 0
		run = false
		Gui.idle_add {
			if run or not @entrypoints.empty? or not @dasm.addrs_todo.empty?
				protect { run = @dasm.disassemble_mainiter(@entrypoints) }
				gui_update_counter += 1
				if gui_update_counter > @gui_update_counter_max
					gui_update_counter = 0
					gui_update
				end
				true
			else
				gui_update
				false
			end
		}
	end
def start_disassemble_bg return if @dasm . addrs_todo . empty? and @entrypoints . all? { | ep | @dasm . decoded [ ep ] } gui_update_counter = 0 run = false Gui . idle_add { if run or not @entrypoints . empty? or not @dasm . addrs_todo . empty? protect { run = @dasm . disassemble_mainiter ( @entrypoints ) } gui_update_counter += 1 if gui_update_counter > @gui_update_counter_max gui_update_counter = 0 gui_update end true else gui_update false end } end
start an idle callback that will run one round of @dasm.disassemble_mainiter
start an idle callback that will run one round of @dasm . disassemble_mainiter
# metasm disassembler loop # update gui once in a while