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

sceNp/vm: Fix strings read, implement safe string reader #14885

Merged
merged 2 commits into from Dec 12, 2023

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Dec 11, 2023

Attempts to fix #14882, introduce a safe string reader.

@Megamouse
Copy link
Contributor

Maybe just make it a string wrapper class that evaluates to false if it can't be built properly?
You will then still have all the string functionality afterwards.

@elad335 elad335 force-pushed the save-breathe branch 8 times, most recently from 9de819f to 7aff961 Compare December 11, 2023 09:02
@Ordinary205
Copy link
Contributor

Can confirm that it resolves this issue on Full Auto 2 demo.
Full Auto
RPCS3.log.gz

@@ -3530,7 +3527,7 @@ void main_window::AddGamesFromDirs(const QStringList& paths)
Emu.AddGamesFromDir(sstr(path));
}

m_game_list_frame->AddRefreshedSlot<class KeyType>([this, paths = std::move(paths), existing = std::move(existing)](std::set<QString>& IDs)
m_game_list_frame->AddRefreshedSlot([this, paths = std::move(paths), existing = std::move(existing)](std::set<std::string>& claimed_paths)
Copy link
Contributor

Choose a reason for hiding this comment

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

The move here is the main culprit

@elad335 elad335 force-pushed the save-breathe branch 2 times, most recently from d0c7887 to 5478dd4 Compare December 12, 2023 08:12
@elad335 elad335 force-pushed the save-breathe branch 2 times, most recently from d964dc4 to 94d05d2 Compare December 12, 2023 10:38
Use paths instead of IDs,  disable typemap.
@elad335 elad335 marked this pull request as ready for review December 12, 2023 17:49
@elad335 elad335 merged commit 7549406 into RPCS3:master Dec 12, 2023
4 of 6 checks passed
@elad335 elad335 deleted the save-breathe branch May 6, 2024 15:56
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.

[NPUB90003] Full Auto 2 Battlelines Demo - Crashes on boot - Probably since #14584
3 participants