Make return from parsemodinfo look better

This commit is contained in:
Tixx 2024-10-12 21:12:12 +02:00
parent 3f12bb757a
commit d9874ce70e
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ Resources/
bin/
compile_commands.json
key
out/

View File

@ -528,10 +528,10 @@ void SyncResources(SOCKET Sock) {
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);
auto [success, modInfo] = ModInfo::ParseModInfosFromPacket(Ret);
if (ModInfos.first) {
NewSyncResources(Sock, Ret, ModInfos.second);
if (success) {
NewSyncResources(Sock, Ret, modInfo);
return;
}
}