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

Scan the correct sections of modules for code #10501

Merged
merged 3 commits into from
Jan 3, 2018

Conversation

unknownbrackets
Copy link
Collaborator

Before, we were either just scanning the text section, or else scanning too much. Some games use a separate "init" section or even in some cases multiple sections with code. This meant we weren't even scanning those.

This more accurately detects those sections, and tries a bit harder to avoid scanning non-code for functions.

-[Unknown]

Also, fix some off-by-one issues with end addresses.
In this case, we often scan some garbage, but let's reduce it at least.
MIPSAnalyst::ScanForFunctions(start, end, !gotSymbols);
}

// Some games don't have any sections at all.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really? Homebrew or real games?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I only know of one so far - Frontier Gate Boost (demo). I'm not certain it's unmodified, though...

-[Unknown]

@hrydgard hrydgard merged commit 2e2d76e into hrydgard:master Jan 3, 2018
@unknownbrackets unknownbrackets deleted the analyst branch January 3, 2018 15:28
unknownbrackets added a commit to unknownbrackets/ppsspp that referenced this pull request Mar 17, 2018
This fixes the loading speed regression from hrydgard#10501.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants