Move the "localhost = multiple instances" hint into the adhoc server selector

This commit is contained in:
Henrik Rydgård committed 2026-03-10 09:05:10 +01:00
1 parent f175408968
commit e0f1b6b7d9
4 files changed
+26 -18

No files matched your search

+6
View File
@@ -5,6 +5,7 @@
#include "Common/UI/Root.h"
#include "Common/StringUtils.h"
#include "Core/HLE/sceNetAdhoc.h"
#include "UI/MiscViews.h"
class AdhocAddServerPopupScreen : public UI::PopupScreen {
public:
@@ -199,6 +200,11 @@ AdhocServerRow::AdhocServerRow(std::string *editValue, const AdhocServerListEntr
lines->Add(new TextView(entry.name));
std::string secondLine = entry.host;
if (entry.host == "localhost") {
// Special case this to add a hint.
auto n = GetI18NCategory(I18NCat::NETWORKING);
secondLine = n->T("Change proAdhocServer address hint");
}
if (!entry.location.empty()) {
secondLine += ": " + entry.location;
}