class Metasm::NDS::Icon

Attributes

title_eng_short[RW]
title_fre_short[RW]
title_ger_short[RW]
title_ita_short[RW]
title_jap_short[RW]
title_spa_short[RW]

Public Instance Methods

decode(exe) click to toggle source
Calls superclass method Metasm::SerialStruct#decode
# File metasm/exe_format/nds.rb, line 53
def decode(exe)
        super(exe)

        %w[jap eng fre ger ita spa].each { |lang|
                str = instance_variable_get("@title_#{lang}")
                uchrs = str.unpack('v*')
                str = str[0, uchrs.index(\0).to_i*2]
                instance_variable_set("@title_#{lang}", str)
                str = str.unpack('v*').pack('C*')
                instance_variable_set("@title_#{lang}_short", str)
        }
end