diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-24 08:47:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-25 20:42:04 +0200 |
commit | 3c1cb3b11e84aae62b4a16a139fab62c3b697e4c (patch) | |
tree | f5541dba18f5b2f86016d0a7713d40db0afcecb3 /src/core/hle/service | |
parent | time: Simplify interface creation (diff) | |
download | yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.tar yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.tar.gz yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.tar.bz2 yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.tar.lz yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.tar.xz yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.tar.zst yuzu-3c1cb3b11e84aae62b4a16a139fab62c3b697e4c.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/time/interface.cpp | 12 | ||||
-rw-r--r-- | src/core/hle/service/time/interface.h | 4 | ||||
-rw-r--r-- | src/core/hle/service/time/time.cpp | 5 |
3 files changed, 11 insertions, 10 deletions
diff --git a/src/core/hle/service/time/interface.cpp b/src/core/hle/service/time/interface.cpp index e61788db8..048d5b077 100644 --- a/src/core/hle/service/time/interface.cpp +++ b/src/core/hle/service/time/interface.cpp @@ -6,14 +6,14 @@ namespace Service::Time { -TIME::TIME(std::shared_ptr<Module> time, const char* name) +Time::Time(std::shared_ptr<Module> time, const char* name) : Module::Interface(std::move(time), name) { static const FunctionInfo functions[] = { - {0, &TIME::GetStandardUserSystemClock, "GetStandardUserSystemClock"}, - {1, &TIME::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, - {2, &TIME::GetStandardSteadyClock, "GetStandardSteadyClock"}, - {3, &TIME::GetTimeZoneService, "GetTimeZoneService"}, - {4, &TIME::GetStandardLocalSystemClock, "GetStandardLocalSystemClock"}, + {0, &Time::GetStandardUserSystemClock, "GetStandardUserSystemClock"}, + {1, &Time::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, + {2, &Time::GetStandardSteadyClock, "GetStandardSteadyClock"}, + {3, &Time::GetTimeZoneService, "GetTimeZoneService"}, + {4, &Time::GetStandardLocalSystemClock, "GetStandardLocalSystemClock"}, {5, nullptr, "GetEphemeralNetworkSystemClock"}, {50, nullptr, "SetStandardSteadyClockInternalOffset"}, {100, nullptr, "IsStandardUserSystemClockAutomaticCorrectionEnabled"}, diff --git a/src/core/hle/service/time/interface.h b/src/core/hle/service/time/interface.h index 0f97cec35..183a53db1 100644 --- a/src/core/hle/service/time/interface.h +++ b/src/core/hle/service/time/interface.h @@ -8,9 +8,9 @@ namespace Service::Time { -class TIME final : public Module::Interface { +class Time final : public Module::Interface { public: - explicit TIME(std::shared_ptr<Module> time, const char* name); + explicit Time(std::shared_ptr<Module> time, const char* name); }; } // namespace Service::Time diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index dbaa661bb..e32c088e8 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp @@ -211,8 +211,9 @@ Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) void InstallInterfaces(SM::ServiceManager& service_manager) { auto time = std::make_shared<Module>(); - std::make_shared<TIME>(time, "time:s")->InstallAsService(service_manager); - std::make_shared<TIME>(time, "time:u")->InstallAsService(service_manager); + std::make_shared<Time>(time, "time:a")->InstallAsService(service_manager); + std::make_shared<Time>(time, "time:s")->InstallAsService(service_manager); + std::make_shared<Time>(time, "time:u")->InstallAsService(service_manager); } } // namespace Service::Time |