Most of the functions within the memory reading should be refactored to use this function
|
def readVal(address, bytes=1): |
|
global baseValue |
|
key = baseValue + address |
|
retVal = process.readBytes(key, bytes) |
|
return retVal |
makes the code a lot cleaner and easier to understand.
Most of the functions within the memory reading should be refactored to use this function
FFX_TAS_Python/memory/main.py
Lines 3344 to 3348 in 2cfcfc8
makes the code a lot cleaner and easier to understand.