https://i.stack.imgur.com/MDNRm.png
def GetJumpFunc(search):
path = GetPathByName(search[1])
lines = ReadAllLines(path)
for x in range(0, len(lines)):
if ( search[0] in lines[x] and lines[x+3].find("jump") != -1):
return GetStringBetwean2Chars(lines[x+4], "L", "")
return ''
def GetPathByName(name):
return ".\Transformice-0\{0}.class.asasm".format(name.replace("\\x", "%"))
def ReadAllLines(path):
return ReadAllText(path).split('\n')
Help me? I get error in line 2:
path = GetPathByName(search[1])
IndexError : String index out of range