Support port offset by @ANR2ME

Useful of adhoc of non-windows
This commit is contained in:
sum2012 committed 2016-01-24 16:52:39 +08:00
1 parent 5a06439a04
commit bbeaf67cd6
7 files changed
+19 -13

No files matched your search

+1
View File
@@ -477,6 +477,7 @@ void GameSettingsScreen::CreateViews() {
#endif
networkingSettings->Add(new CheckBox(&g_Config.bEnableAdhocServer, n->T("Enable built-in PRO Adhoc Server", "Enable built-in PRO Adhoc Server")));
networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.sMACAddress, n->T("Change Mac Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeMacAddress);
networkingSettings->Add(new PopupSliderChoice(&g_Config.iPortOffset, 0, 60000, n->T("Port offset", "Port offset(0 = PSP compatibility)"), 100, screenManager()));
ViewGroup *toolsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
toolsScroll->SetTag("GameSettingsTools");