mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-06 07:17:53 +00:00
1a954b2a59
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
// Copyright 2019 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service::Glue {
|
|
|
|
class ARPManager;
|
|
class IRegistrar;
|
|
|
|
class ARP_R final : public ServiceFramework<ARP_R> {
|
|
public:
|
|
explicit ARP_R(Core::System& system_, const ARPManager& manager_);
|
|
~ARP_R() override;
|
|
|
|
private:
|
|
void GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx);
|
|
void GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestContext& ctx);
|
|
void GetApplicationControlProperty(Kernel::HLERequestContext& ctx);
|
|
void GetApplicationControlPropertyWithApplicationId(Kernel::HLERequestContext& ctx);
|
|
|
|
const ARPManager& manager;
|
|
};
|
|
|
|
class ARP_W final : public ServiceFramework<ARP_W> {
|
|
public:
|
|
explicit ARP_W(Core::System& system_, ARPManager& manager_);
|
|
~ARP_W() override;
|
|
|
|
private:
|
|
void AcquireRegistrar(Kernel::HLERequestContext& ctx);
|
|
void DeleteProperties(Kernel::HLERequestContext& ctx);
|
|
|
|
ARPManager& manager;
|
|
std::shared_ptr<IRegistrar> registrar;
|
|
};
|
|
|
|
} // namespace Service::Glue
|