forked from suyu/suyu
c061e27155
Converts the PL_U internals to use the PImpl idiom and makes the state part of the Impl struct, eliminating mutable global/file state.
29 lines
779 B
C++
29 lines
779 B
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service::NS {
|
|
|
|
class PL_U final : public ServiceFramework<PL_U> {
|
|
public:
|
|
PL_U();
|
|
~PL_U() override;
|
|
|
|
private:
|
|
void RequestLoad(Kernel::HLERequestContext& ctx);
|
|
void GetLoadState(Kernel::HLERequestContext& ctx);
|
|
void GetSize(Kernel::HLERequestContext& ctx);
|
|
void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx);
|
|
void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx);
|
|
void GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx);
|
|
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl;
|
|
};
|
|
|
|
} // namespace Service::NS
|