mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 00:59:17 +01:00
Stub play reporting services
This commit is contained in:
parent
378e494d82
commit
2e60b5e60d
@ -124,6 +124,7 @@ add_library(skyline SHARED
|
||||
${source_DIR}/skyline/services/nifm/IRequest.cpp
|
||||
${source_DIR}/skyline/services/socket/bsd/IClient.cpp
|
||||
${source_DIR}/skyline/services/ssl/ISslService.cpp
|
||||
${source_DIR}/skyline/services/prepo/IPrepoService.cpp
|
||||
${source_DIR}/skyline/vfs/partition_filesystem.cpp
|
||||
${source_DIR}/skyline/vfs/rom_filesystem.cpp
|
||||
${source_DIR}/skyline/vfs/os_backing.cpp
|
||||
|
@ -80,6 +80,7 @@ namespace skyline::service {
|
||||
nifm_IRequest,
|
||||
socket_IClient,
|
||||
ssl_ISslService,
|
||||
prepo_IPrepoService
|
||||
};
|
||||
|
||||
/**
|
||||
@ -119,6 +120,7 @@ namespace skyline::service {
|
||||
{"nifm:u", Service::nifm_IStaticService},
|
||||
{"bsd:u", Service::socket_IClient},
|
||||
{"ssl", Service::ssl_ISslService},
|
||||
{"prepo:u", Service::prepo_IPrepoService}
|
||||
};
|
||||
|
||||
class ServiceManager;
|
||||
|
12
app/src/main/cpp/skyline/services/prepo/IPrepoService.cpp
Normal file
12
app/src/main/cpp/skyline/services/prepo/IPrepoService.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
||||
|
||||
#include "IPrepoService.h"
|
||||
|
||||
namespace skyline::service::prepo {
|
||||
IPrepoService::IPrepoService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager, Service::prepo_IPrepoService, "prepo:IPrepoService", {
|
||||
{0x2775, SFUNC(IPrepoService::SaveReportWithUser)},
|
||||
}) {}
|
||||
|
||||
void IPrepoService::SaveReportWithUser(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {}
|
||||
}
|
22
app/src/main/cpp/skyline/services/prepo/IPrepoService.h
Normal file
22
app/src/main/cpp/skyline/services/prepo/IPrepoService.h
Normal file
@ -0,0 +1,22 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <services/base_service.h>
|
||||
#include <services/serviceman.h>
|
||||
|
||||
namespace skyline::service::prepo {
|
||||
/**
|
||||
* @brief IPrepoService or prepo:u is used by applications to store statistics (https://switchbrew.org/wiki/BCAT_services#prepo:a.2C_prepo:a2.2C_prepo:m.2C_prepo:u.2C_prepo:s)
|
||||
*/
|
||||
class IPrepoService : public BaseService {
|
||||
public:
|
||||
IPrepoService(const DeviceState &state, ServiceManager &manager);
|
||||
|
||||
/**
|
||||
* @brief This saves a play report for the given user
|
||||
*/
|
||||
void SaveReportWithUser(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
};
|
||||
}
|
@ -26,6 +26,7 @@
|
||||
#include "nifm/IStaticService.h"
|
||||
#include "socket/bsd/IClient.h"
|
||||
#include "ssl/ISslService.h"
|
||||
#include "prepo/IPrepoService.h"
|
||||
#include "serviceman.h"
|
||||
|
||||
namespace skyline::service {
|
||||
@ -110,6 +111,9 @@ namespace skyline::service {
|
||||
case Service::ssl_ISslService:
|
||||
serviceObj = std::make_shared<ssl::ISslService>(state, *this);
|
||||
break;
|
||||
case Service::prepo_IPrepoService:
|
||||
serviceObj = std::make_shared<prepo::IPrepoService>(state, *this);
|
||||
break;
|
||||
default:
|
||||
throw exception("CreateService called on missing object, type: {}", serviceType);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user