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 gnustl vector and map (and a lot of other dependencies those have) #1255

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

0x5abe
Copy link
Contributor

@0x5abe 0x5abe commented Mar 1, 2025

It's a lot of new code that I copied from the gcc libstdc++v3 at the first commit of 2014. I don't expect this to get merged soon but if someone else cares about this and bothers to check nothing breaks because of it then I'm all for it getting merged. Some mods like mine (PlatformerSaves/PersistenceAPI) rely on the memory structure of these stl types and until robtop decides to update the ndk the game uses this is the next best thing I guess. Making it a draft PR cause there's a bunch of little hacks and just in general stuff I scrambled together to get it to compile at all, and I just tested for a bit that geode launched properly with this and played for a bit.

@matcool
Copy link
Member

matcool commented Mar 1, 2025

how does this differ from the existing gnustl map implementation?

@0x5abe
Copy link
Contributor Author

0x5abe commented Mar 1, 2025

how does this differ from the existing gnustl map implementation?

Building PersistenceAPI (my mod) with the old implementation for vector/map resulted in random crashes that appeared to be memory corruption. I wasn't able to pinpoint the exact cause but using this "official" gnustl implementation fixed those.

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