Stratosphere: Fix IServer constructors. SM is fully functional on hardware now.

This commit is contained in:
Michael Scire
2018-04-22 05:13:33 -06:00
parent 674528b246
commit ecf2517bd5
7 changed files with 26 additions and 31 deletions

View File

@@ -4,10 +4,10 @@
template <typename T>
class ServiceServer : public IServer<T> {
private:
virtual Result register_self(const char *service_name) {
return smRegisterService(&this->port_handle, service_name, false, this->max_sessions);
}
public:
ServiceServer(const char *service_name, unsigned int max_s) : IServer<T>(service_name, max_s) { }
ServiceServer(const char *service_name, unsigned int max_s) : IServer<T>(service_name, max_s) {
if (R_FAILED(smRegisterService(&this->port_handle, service_name, false, this->max_sessions))) {
/* TODO: Panic. */
}
}
};