mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +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.
26 lines
962 B
C++
26 lines
962 B
C++
// Copyright 2018 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "core/hle/service/caps/caps.h"
|
|
#include "core/hle/service/caps/caps_a.h"
|
|
#include "core/hle/service/caps/caps_c.h"
|
|
#include "core/hle/service/caps/caps_sc.h"
|
|
#include "core/hle/service/caps/caps_ss.h"
|
|
#include "core/hle/service/caps/caps_su.h"
|
|
#include "core/hle/service/caps/caps_u.h"
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service::Capture {
|
|
|
|
void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
|
|
std::make_shared<CAPS_A>(system)->InstallAsService(sm);
|
|
std::make_shared<CAPS_C>(system)->InstallAsService(sm);
|
|
std::make_shared<CAPS_U>(system)->InstallAsService(sm);
|
|
std::make_shared<CAPS_SC>(system)->InstallAsService(sm);
|
|
std::make_shared<CAPS_SS>(system)->InstallAsService(sm);
|
|
std::make_shared<CAPS_SU>(system)->InstallAsService(sm);
|
|
}
|
|
|
|
} // namespace Service::Capture
|