early-access version 1630

This commit is contained in:
pineappleEA 2021-04-24 20:10:00 +02:00
parent 019c8f8091
commit dafcd22813
7 changed files with 60 additions and 2 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 1628. This is the source code for early-access 1630.
## Legal Notice ## Legal Notice

View file

@ -377,6 +377,8 @@ add_library(core STATIC
hle/service/glue/arp.h hle/service/glue/arp.h
hle/service/glue/bgtc.cpp hle/service/glue/bgtc.cpp
hle/service/glue/bgtc.h hle/service/glue/bgtc.h
hle/service/glue/ectx.cpp
hle/service/glue/ectx.h
hle/service/glue/errors.h hle/service/glue/errors.h
hle/service/glue/glue.cpp hle/service/glue/glue.cpp
hle/service/glue/glue.h hle/service/glue/glue.h

View file

@ -687,7 +687,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system_,
{501, nullptr, "SuppressDisablingSleepTemporarily"}, {501, nullptr, "SuppressDisablingSleepTemporarily"},
{502, nullptr, "IsSleepEnabled"}, {502, nullptr, "IsSleepEnabled"},
{503, nullptr, "IsDisablingSleepSuppressed"}, {503, nullptr, "IsDisablingSleepSuppressed"},
{900, nullptr, "SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled"}, {900, &ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled, "SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled"},
}; };
// clang-format on // clang-format on
@ -817,6 +817,14 @@ void ICommonStateGetter::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
apm_sys->SetCpuBoostMode(ctx); apm_sys->SetCpuBoostMode(ctx);
} }
void ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(
Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
}
IStorageImpl::~IStorageImpl() = default; IStorageImpl::~IStorageImpl() = default;
class StorageDataImpl final : public IStorageImpl { class StorageDataImpl final : public IStorageImpl {

View file

@ -196,6 +196,7 @@ private:
void EndVrModeEx(Kernel::HLERequestContext& ctx); void EndVrModeEx(Kernel::HLERequestContext& ctx);
void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx); void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx);
void SetCpuBoostMode(Kernel::HLERequestContext& ctx); void SetCpuBoostMode(Kernel::HLERequestContext& ctx);
void SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(Kernel::HLERequestContext& ctx);
std::shared_ptr<AppletMessageQueue> msg_queue; std::shared_ptr<AppletMessageQueue> msg_queue;
bool vr_mode_state{}; bool vr_mode_state{};

View file

@ -0,0 +1,22 @@
// Copyright 2021 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/service/glue/ectx.h"
namespace Service::Glue {
ECTX_AW::ECTX_AW(Core::System& system_) : ServiceFramework{system_, "ectx:aw"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "CreateContextRegistrar"},
{1, nullptr, "CommitContext"},
};
// clang-format on
RegisterHandlers(functions);
}
ECTX_AW::~ECTX_AW() = default;
} // namespace Service::Glue

View file

@ -0,0 +1,21 @@
// Copyright 2021 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/service/service.h"
namespace Core {
class System;
}
namespace Service::Glue {
class ECTX_AW final : public ServiceFramework<ECTX_AW> {
public:
explicit ECTX_AW(Core::System& system_);
~ECTX_AW() override;
};
} // namespace Service::Glue

View file

@ -6,6 +6,7 @@
#include "core/core.h" #include "core/core.h"
#include "core/hle/service/glue/arp.h" #include "core/hle/service/glue/arp.h"
#include "core/hle/service/glue/bgtc.h" #include "core/hle/service/glue/bgtc.h"
#include "core/hle/service/glue/ectx.h"
#include "core/hle/service/glue/glue.h" #include "core/hle/service/glue/glue.h"
namespace Service::Glue { namespace Service::Glue {
@ -20,6 +21,9 @@ void InstallInterfaces(Core::System& system) {
// BackGround Task Controller // BackGround Task Controller
std::make_shared<BGTC_T>(system)->InstallAsService(system.ServiceManager()); std::make_shared<BGTC_T>(system)->InstallAsService(system.ServiceManager());
std::make_shared<BGTC_SC>(system)->InstallAsService(system.ServiceManager()); std::make_shared<BGTC_SC>(system)->InstallAsService(system.ServiceManager());
// Error Context
std::make_shared<ECTX_AW>(system)->InstallAsService(system.ServiceManager());
} }
} // namespace Service::Glue } // namespace Service::Glue