mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-21 12:08:11 -05:00
service: Eliminate usages of the global system instance
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
This commit is contained in:
@ -15,7 +15,7 @@ namespace Service::LBL {
|
||||
|
||||
class LBL final : public ServiceFramework<LBL> {
|
||||
public:
|
||||
explicit LBL() : ServiceFramework{"lbl"} {
|
||||
explicit LBL(Core::System& system_) : ServiceFramework{system_, "lbl"} {
|
||||
// clang-format off
|
||||
static const FunctionInfo functions[] = {
|
||||
{0, nullptr, "SaveCurrentSetting"},
|
||||
@ -84,8 +84,8 @@ private:
|
||||
bool vr_mode_enabled = false;
|
||||
};
|
||||
|
||||
void InstallInterfaces(SM::ServiceManager& sm) {
|
||||
std::make_shared<LBL>()->InstallAsService(sm);
|
||||
void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
|
||||
std::make_shared<LBL>(system)->InstallAsService(sm);
|
||||
}
|
||||
|
||||
} // namespace Service::LBL
|
||||
|
Reference in New Issue
Block a user