예제 #1
0
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
예제 #2
0
def comp(udata):
    if hasNativeComp:
        return NativeComp.comp(udata)
    else:
        return _comp(udata)
예제 #3
0
def decomp(rom, cdata):
    if hasNativeComp:
        return NativeComp.decomp(rom, cdata)
    else:
        return _decomp(rom, cdata)