0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #977 from RytoEX/update-autoconfig-beam-to-mixer

UI: Update service names in autoconfig wizard
This commit is contained in:
Jim 2017-08-06 05:30:43 -07:00 committed by GitHub
commit 5f3cd5f5ef
2 changed files with 5 additions and 5 deletions

View File

@ -324,8 +324,8 @@ bool AutoConfigStreamPage::validatePage()
if (!wiz->customServer) {
if (wiz->serviceName == "Twitch")
wiz->service = AutoConfig::Service::Twitch;
else if (wiz->serviceName == "hitbox.tv")
wiz->service = AutoConfig::Service::Hitbox;
else if (wiz->serviceName == "Smashcast")
wiz->service = AutoConfig::Service::Smashcast;
else
wiz->service = AutoConfig::Service::Other;
} else {
@ -366,7 +366,7 @@ void AutoConfigStreamPage::ServiceChanged()
std::string service = QT_TO_UTF8(ui->service->currentText());
bool regionBased = service == "Twitch" ||
service == "hitbox.tv";
service == "Smashcast";
bool testBandwidth = ui->doBandwidthTest->isChecked();
bool custom = ui->streamType->currentIndex() == 1;
@ -692,7 +692,7 @@ bool AutoConfig::CanTestServer(const char *server)
} else if (regionOther) {
return true;
}
} else if (service == Service::Hitbox) {
} else if (service == Service::Smashcast) {
if (strcmp(server, "Default") == 0) {
return true;
} else if (astrcmp_n(server, "US-West:", 8) == 0 ||

View File

@ -33,7 +33,7 @@ class AutoConfig : public QWizard {
enum class Service {
Twitch,
Hitbox,
Smashcast,
Other
};