Skip to content

[Tweak] Move Personal Notes to Save File #3909

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

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Feb 5, 2024

This makes the personal notes save in the save file under a new "itemTracker" section. This fixes rare issues with notes bleeding through saves (since CVarSet doesn't save blank strings), as well as the problem of notes not being copied to new save slots when a save is copied in-game.

Build Artifacts

@Malkierian Malkierian changed the base branch from develop to develop-macready February 5, 2024 19:19
Copy link
Contributor

@inspectredc inspectredc left a comment

Choose a reason for hiding this comment

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

Idk what best practices are for pushing null terminators like this is but everything else looks good to me

@Malkierian
Copy link
Contributor Author

The null push was carried over from what it was before. I didn't add that, it's just necessary to prevent crashes with an empty vector for loading/display. There's probably a more elegant way to do it, that just wasn't my focus for this, so I didn't look.

@garrettjoecox garrettjoecox merged commit 30a063b into HarbourMasters:develop-macready Feb 16, 2024
@Malkierian Malkierian deleted the personal-notes-save-section branch February 16, 2024 02:45
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.

5 participants