mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 07:25:34 +00:00
Make return from parsemodinfo look better
This commit is contained in:
parent
3f12bb757a
commit
d9874ce70e
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ Resources/
|
|||||||
bin/
|
bin/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
key
|
key
|
||||||
|
out/
|
||||||
|
@ -528,10 +528,10 @@ void SyncResources(SOCKET Sock) {
|
|||||||
if (Ret.starts_with("R")) {
|
if (Ret.starts_with("R")) {
|
||||||
debug("This server is likely outdated, not trying to parse new mod info format");
|
debug("This server is likely outdated, not trying to parse new mod info format");
|
||||||
} else {
|
} else {
|
||||||
auto ModInfos = ModInfo::ParseModInfosFromPacket(Ret);
|
auto [success, modInfo] = ModInfo::ParseModInfosFromPacket(Ret);
|
||||||
|
|
||||||
if (ModInfos.first) {
|
if (success) {
|
||||||
NewSyncResources(Sock, Ret, ModInfos.second);
|
NewSyncResources(Sock, Ret, modInfo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user