Esempio n. 1
0
def ebEntryGenerator(spec, table_map):
    if not spec.has_key("type"):
        return genericEntryGenerator(spec, table_map)
    elif spec['type'] == 'pointer':
        return PointerTableEntry(spec["name"], spec["size"])
    elif spec['type'] == 'palette':
        return PaletteTableEntry(spec["name"], spec["size"])
    elif spec['type'] == 'standardtext':
        return TextTableEntry(spec["name"], spec["size"])
    else:
        return genericEntryGenerator(spec, table_map)
Esempio n. 2
0
def ebEntryGenerator(spec, table_map):
    if not spec.has_key("type"):
        return genericEntryGenerator(spec, table_map)
    elif spec["type"] == "pointer":
        return PointerTableEntry(spec["name"], spec["size"])
    elif spec["type"] == "palette":
        return PaletteTableEntry(spec["name"], spec["size"])
    elif spec["type"] == "standardtext":
        return TextTableEntry(spec["name"], spec["size"])
    elif spec["type"] == "standardtext null-terminated":
        return NullTerminatedTextTableEntry(spec["name"], spec["size"])
    else:
        return genericEntryGenerator(spec, table_map)
Esempio n. 3
0
def eb0EntryGenerator(spec, table_map):
    if not spec.has_key("type"):
        return genericEntryGenerator(spec, table_map)
    else:
        return genericEntryGenerator(spec, table_map)