Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Memory Reading #177

Open
MrTyton opened this issue Oct 30, 2022 · 0 comments
Open

Refactor Memory Reading #177

MrTyton opened this issue Oct 30, 2022 · 0 comments
Assignees
Labels

Comments

@MrTyton
Copy link
Contributor

MrTyton commented Oct 30, 2022

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants