yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

service: Add ptm::gets and ptm::sets services

This commit is contained in:
Lioncash 2016-12-08 05:17:19 -05:00
parent 1840685ee8
commit 41c03f481a
6 changed files with 90 additions and 0 deletions

View File

@ -123,7 +123,9 @@ set(SRCS
hle/service/nwm_uds.cpp hle/service/nwm_uds.cpp
hle/service/pm_app.cpp hle/service/pm_app.cpp
hle/service/ptm/ptm.cpp hle/service/ptm/ptm.cpp
hle/service/ptm/ptm_gets.cpp
hle/service/ptm/ptm_play.cpp hle/service/ptm/ptm_play.cpp
hle/service/ptm/ptm_sets.cpp
hle/service/ptm/ptm_sysm.cpp hle/service/ptm/ptm_sysm.cpp
hle/service/ptm/ptm_u.cpp hle/service/ptm/ptm_u.cpp
hle/service/qtm/qtm.cpp hle/service/qtm/qtm.cpp
@ -283,7 +285,9 @@ set(HEADERS
hle/service/nwm_uds.h hle/service/nwm_uds.h
hle/service/pm_app.h hle/service/pm_app.h
hle/service/ptm/ptm.h hle/service/ptm/ptm.h
hle/service/ptm/ptm_gets.h
hle/service/ptm/ptm_play.h hle/service/ptm/ptm_play.h
hle/service/ptm/ptm_sets.h
hle/service/ptm/ptm_sysm.h hle/service/ptm/ptm_sysm.h
hle/service/ptm/ptm_u.h hle/service/ptm/ptm_u.h
hle/service/qtm/qtm.h hle/service/qtm/qtm.h

View File

@ -6,7 +6,9 @@
#include "core/file_sys/file_backend.h" #include "core/file_sys/file_backend.h"
#include "core/hle/service/fs/archive.h" #include "core/hle/service/fs/archive.h"
#include "core/hle/service/ptm/ptm.h" #include "core/hle/service/ptm/ptm.h"
#include "core/hle/service/ptm/ptm_gets.h"
#include "core/hle/service/ptm/ptm_play.h" #include "core/hle/service/ptm/ptm_play.h"
#include "core/hle/service/ptm/ptm_sets.h"
#include "core/hle/service/ptm/ptm_sysm.h" #include "core/hle/service/ptm/ptm_sysm.h"
#include "core/hle/service/ptm/ptm_u.h" #include "core/hle/service/ptm/ptm_u.h"
#include "core/hle/service/service.h" #include "core/hle/service/service.h"
@ -106,7 +108,9 @@ void CheckNew3DS(Service::Interface* self) {
} }
void Init() { void Init() {
AddService(new PTM_Gets());
AddService(new PTM_Play_Interface); AddService(new PTM_Play_Interface);
AddService(new PTM_Sets());
AddService(new PTM_Sysm_Interface); AddService(new PTM_Sysm_Interface);
AddService(new PTM_U_Interface); AddService(new PTM_U_Interface);

View File

@ -0,0 +1,19 @@
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/service/ptm/ptm_gets.h"
namespace Service {
namespace PTM {
const Interface::FunctionInfo FunctionTable[] = {
{0x04010000, nullptr, "GetSystemTime"},
};
PTM_Gets::PTM_Gets() {
Register(FunctionTable);
}
} // namespace PTM
} // namespace Service

View File

@ -0,0 +1,22 @@
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/service/service.h"
namespace Service {
namespace PTM {
class PTM_Gets final : public Interface {
public:
PTM_Gets();
std::string GetPortName() const override {
return "ptm:gets";
}
};
} // namespace PTM
} // namespace Service

View File

@ -0,0 +1,19 @@
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/service/ptm/ptm_sets.h"
namespace Service {
namespace PTM {
const Interface::FunctionInfo FunctionTable[] = {
{0x00010080, nullptr, "SetSystemTime"},
};
PTM_Sets::PTM_Sets() {
Register(FunctionTable);
}
} // namespace PTM
} // namespace Service

View File

@ -0,0 +1,22 @@
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/service/service.h"
namespace Service {
namespace PTM {
class PTM_Sets final : public Interface {
public:
PTM_Sets();
std::string GetPortName() const override {
return "ptm:sets";
}
};
} // namespace PTM
} // namespace Service