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

Fix custom achievements #391

Merged
merged 4 commits into from Apr 23, 2022

Conversation

xiaoxiao921
Copy link
Member

Latest game patch changed the method r2api was hooking for custom achievements.
The method change made two issues appear:
It can easily throw and stop its execution because it uses GetTypes without handling reflection load exceptions.
So I made a fix in the RoR2Bepinexpack, but because I didnt want to bother IL Hooking it, I totally replaced the method.
By doing that it made the r2api hook impossible to work. I didnt realize at first.
I ended up adding a convenient action event in the RoR2Bepinexpack, which is the perfect place for adding custom defs and so on and that r2api now uses.

R2API/R2API.csproj Show resolved Hide resolved
R2API/UnlockableAPI.cs Outdated Show resolved Hide resolved
@tristanmcpherson tristanmcpherson merged commit 9012b33 into risk-of-thunder:master Apr 23, 2022
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.

None yet

2 participants