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

Add SceAvSetting for higher firmware versions #44

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

chaitan3
Copy link
Contributor

@chaitan3 chaitan3 commented Aug 8, 2023

This allows the emulator to work on samples and Sonic Mania on a firmware version higher than 5.05.

Not sure if this is the right thing to do in long term, but thought might share a quick fix.

Comment on lines 40 to +45
} else if (name == "/rpcsx-SceNpPlusLogger") {
realFlags |= O_CREAT;
size = 0x4400;
} else if (name == "/rpcsx-SceAvSetting") {
realFlags |= O_CREAT;
size = 0x4400;

Choose a reason for hiding this comment

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

Suggested change
} else if (name == "/rpcsx-SceNpPlusLogger") {
realFlags |= O_CREAT;
size = 0x4400;
} else if (name == "/rpcsx-SceAvSetting") {
realFlags |= O_CREAT;
size = 0x4400;
} else if ((name == "/rpcsx-SceNpPlusLogger") || (name == "/rpcsx-SceAvSetting")) {
realFlags |= O_CREAT;
size = 0x4400;
}

no need two if for same setting set

@ryzendew
Copy link
Contributor

Tested and working it also let other games boot and work at least 4 more great work

@DHrpcs3 DHrpcs3 merged commit b145c14 into RPCSX:master Aug 15, 2023
3 checks passed
@chaitan3 chaitan3 deleted the fix_sce_ave branch August 24, 2023 02:59
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.

4 participants