def decomp(rom, cdata): try: if hasNativeComp: return NativeComp.decomp(rom, cdata) else: return _decomp(rom, cdata) except SystemError: print >> sys.stderr, "Could not decompress data @ " + hex(cdata) raise
def comp(udata): if hasNativeComp: return NativeComp.comp(udata) else: return _comp(udata)
def decomp(rom, cdata): if hasNativeComp: return NativeComp.decomp(rom, cdata) else: return _decomp(rom, cdata)