7 changed files with 107 additions and 26 deletions
-
4src/core/CMakeLists.txt
-
28src/core/hle/service/time/time.cpp
-
22src/core/hle/service/time/time.h
-
20src/core/hle/service/time/time_s.cpp
-
18src/core/hle/service/time/time_s.h
-
23src/core/hle/service/time/time_u.cpp
-
18src/core/hle/service/time/time_u.h
@ -0,0 +1,20 @@ |
|||||
|
// Copyright 2018 yuzu emulator team
|
||||
|
// Licensed under GPLv2 or any later version
|
||||
|
// Refer to the license.txt file included.
|
||||
|
|
||||
|
#pragma once
|
||||
|
|
||||
|
#include "core/hle/service/time/time_s.h"
|
||||
|
|
||||
|
namespace Service { |
||||
|
namespace Time { |
||||
|
|
||||
|
TIME_S::TIME_S(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:s") { |
||||
|
static const FunctionInfo functions[] = { |
||||
|
{0, &TIME_S::GetStandardUserSystemClock, "GetStandardUserSystemClock"}, |
||||
|
}; |
||||
|
RegisterHandlers(functions); |
||||
|
} |
||||
|
|
||||
|
} // namespace Time
|
||||
|
} // namespace Service
|
||||
@ -0,0 +1,18 @@ |
|||||
|
// Copyright 2018 yuzu emulator team |
||||
|
// Licensed under GPLv2 or any later version |
||||
|
// Refer to the license.txt file included. |
||||
|
|
||||
|
#pragma once |
||||
|
|
||||
|
#include "core/hle/service/time/time.h" |
||||
|
|
||||
|
namespace Service { |
||||
|
namespace Time { |
||||
|
|
||||
|
class TIME_S final : public Module::Interface { |
||||
|
public: |
||||
|
explicit TIME_S(std::shared_ptr<Module> time); |
||||
|
}; |
||||
|
|
||||
|
} // namespace Time |
||||
|
} // namespace Service |
||||
@ -0,0 +1,23 @@ |
|||||
|
// Copyright 2018 yuzu emulator team
|
||||
|
// Licensed under GPLv2 or any later version
|
||||
|
// Refer to the license.txt file included.
|
||||
|
|
||||
|
#pragma once
|
||||
|
|
||||
|
#include "core/hle/service/time/time_u.h"
|
||||
|
|
||||
|
namespace Service { |
||||
|
namespace Time { |
||||
|
|
||||
|
TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time), "time:u") { |
||||
|
static const FunctionInfo functions[] = { |
||||
|
{0, &TIME_U::GetStandardUserSystemClock, "GetStandardUserSystemClock"}, |
||||
|
{1, &TIME_U::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, |
||||
|
{2, &TIME_U::GetStandardSteadyClock, "GetStandardSteadyClock"}, |
||||
|
{3, &TIME_U::GetTimeZoneService, "GetTimeZoneService"}, |
||||
|
}; |
||||
|
RegisterHandlers(functions); |
||||
|
} |
||||
|
|
||||
|
} // namespace Time
|
||||
|
} // namespace Service
|
||||
@ -0,0 +1,18 @@ |
|||||
|
// Copyright 2018 yuzu emulator team |
||||
|
// Licensed under GPLv2 or any later version |
||||
|
// Refer to the license.txt file included. |
||||
|
|
||||
|
#pragma once |
||||
|
|
||||
|
#include "core/hle/service/time/time.h" |
||||
|
|
||||
|
namespace Service { |
||||
|
namespace Time { |
||||
|
|
||||
|
class TIME_U final : public Module::Interface { |
||||
|
public: |
||||
|
explicit TIME_U(std::shared_ptr<Module> time); |
||||
|
}; |
||||
|
|
||||
|
} // namespace Time |
||||
|
} // namespace Service |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue