node/lib/metasm/metasm/disassemble_api.rb
def load_plugin(plugin_filename)
		if not File.exist?(plugin_filename)
			if File.exist?(plugin_filename+'.rb')
				plugin_filename += '.rb'
			elsif defined? Metasmdir
				# try autocomplete
				pf = File.join(Metasmdir, 'samples', 'dasm-plugins', plugin_filename)
				if File.exist? pf
					plugin_filename = pf
				elsif File.exist? pf + '.rb'
					plugin_filename = pf + '.rb'
				end
			end
		end

		instance_eval File.read(plugin_filename)
	end
# loads a disassembler plugin script
# this is simply a ruby script instance_eval() in the disassembler
# the filename argument is autocompleted with '.rb' suffix, and also
#  searched for in the Metasmdir/samples/dasm-plugins subdirectory if not found in cwd
loads a disassembler plugin script
this is simply a ruby script instance_eval() in the disassembler
the filename argument is autocompleted with '.rb' suffix, and also
searched for in the Metasmdir/samples/dasm-plugins subdirectory if not found in cwd
loads a disassembler plugin script this is simply a ruby script instance_eval () in the disassembler the filename argument is autocompleted with ' . rb ' suffix and also searched for in the Metasmdir / samples / dasm - plugins subdirectory if not found in cwd
def load_plugin(plugin_filename)
		if not File.exist?(plugin_filename)
			if File.exist?(plugin_filename+'.rb')
				plugin_filename += '.rb'
			elsif defined? Metasmdir
				pf = File.join(Metasmdir, 'samples', 'dasm-plugins', plugin_filename)
				if File.exist? pf
					plugin_filename = pf
				elsif File.exist? pf + '.rb'
					plugin_filename = pf + '.rb'
				end
			end
		end
		instance_eval File.read(plugin_filename)
	end
def load_plugin ( plugin_filename ) if not File . exist? ( plugin_filename ) if File . exist? ( plugin_filename + '.rb' ) plugin_filename += '.rb' elsif defined? Metasmdir pf = File . join ( Metasmdir , 'samples' , 'dasm-plugins' , plugin_filename ) if File . exist? pf plugin_filename = pf elsif File . exist? pf + '.rb' plugin_filename = pf + '.rb' end end end instance_eval File . read ( plugin_filename ) end
loads a disassembler plugin script
this is simply a ruby script instance_eval() in the disassembler
the filename argument is autocompleted with '.rb' suffix, and also
searched for in the Metasmdir/samples/dasm-plugins subdirectory if not found in cwd
loads a disassembler plugin script this is simply a ruby script instance_eval () in the disassembler the filename argument is autocompleted with ' . rb ' suffix and also searched for in the Metasmdir / samples / dasm - plugins subdirectory if not found in cwd
# try autocomplete
plugin_filename