Fix Regist on Switch

This commit is contained in:
Florian Märkl 2021-01-24 10:11:46 +01:00
parent ac8a3a3a3c
commit 078e83ec70
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
2 changed files with 3 additions and 2 deletions

View file

@ -117,6 +117,7 @@ int Host::Register(int pin)
throw Exception("Undefined PS4 system version (please run discover first)");
}
this->regist_info.pin = pin;
this->regist_info.host = this->host_addr.c_str();
this->regist_info.broadcast = false;

View file

@ -7,9 +7,9 @@
Settings::Settings()
{
#if defined(__SWITCH__)
chiaki_log_init(&this->log, CHIAKI_LOG_ALL ^ CHIAKI_LOG_VERBOSE ^ CHIAKI_LOG_DEBUG, chiaki_log_cb_print, NULL);
chiaki_log_init(&this->log, CHIAKI_LOG_ALL & ~(CHIAKI_LOG_VERBOSE | CHIAKI_LOG_DEBUG), chiaki_log_cb_print, NULL);
#else
chiaki_log_init(&this->log, CHIAKI_LOG_ALL, chiaki_log_cb_print, NULL);
chiaki_log_init(&this->log, CHIAKI_LOG_ALL & ~CHIAKI_LOG_VERBOSE, chiaki_log_cb_print, NULL);
#endif
}