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 empty modlist #136

Merged
merged 4 commits into from
Oct 12, 2024
Merged

Fix empty modlist #136

merged 4 commits into from
Oct 12, 2024

Conversation

WiserTixx
Copy link
Collaborator

@WiserTixx WiserTixx commented Oct 9, 2024

This PR fixes the launcher getting confused when the server sends an empty mod list using the new downloading system.
Related server PR: BeamMP/BeamMP-Server#377

if (Ret.starts_with("R")) {
debug("This server is likely outdated, not trying to parse new mod info format");
} else {
auto ModInfos = ModInfo::ParseModInfosFromPacket(Ret);
Copy link
Member

@lionkor lionkor Oct 12, 2024

Choose a reason for hiding this comment

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

Suggested change
auto ModInfos = ModInfo::ParseModInfosFromPacket(Ret);
auto [ok, modInfos] = ModInfo::ParseModInfosFromPacket(Ret);

or something

lionkor added a commit to BeamMP/BeamMP-Server that referenced this pull request Oct 12, 2024
@lionkor lionkor merged commit 9ebd218 into master Oct 12, 2024
4 checks passed
@lionkor lionkor deleted the fix-empty-modlist branch October 12, 2024 20:10
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