mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 12:55:45 +00:00
add new library app creator cmd 3
This commit is contained in:
parent
d250421904
commit
0d746d446a
6 changed files with 13 additions and 3 deletions
|
@ -12,7 +12,7 @@ Applet::Applet(Core::System& system, std::unique_ptr<Process> process_, bool is_
|
||||||
process(std::move(process_)), hid_registration(system, *process),
|
process(std::move(process_)), hid_registration(system, *process),
|
||||||
gpu_error_detected_event(context), friend_invitation_storage_channel_event(context),
|
gpu_error_detected_event(context), friend_invitation_storage_channel_event(context),
|
||||||
notification_storage_channel_event(context), health_warning_disappeared_system_event(context),
|
notification_storage_channel_event(context), health_warning_disappeared_system_event(context),
|
||||||
acquired_sleep_lock_event(context), pop_from_general_channel_event(context),
|
unkown210_event(context), acquired_sleep_lock_event(context), pop_from_general_channel_event(context),
|
||||||
library_applet_launchable_event(context), accumulated_suspended_tick_changed_event(context),
|
library_applet_launchable_event(context), accumulated_suspended_tick_changed_event(context),
|
||||||
sleep_lock_event(context), state_changed_event(context) {
|
sleep_lock_event(context), state_changed_event(context) {
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,7 @@ struct Applet {
|
||||||
Event friend_invitation_storage_channel_event;
|
Event friend_invitation_storage_channel_event;
|
||||||
Event notification_storage_channel_event;
|
Event notification_storage_channel_event;
|
||||||
Event health_warning_disappeared_system_event;
|
Event health_warning_disappeared_system_event;
|
||||||
|
Event unkown210_event;
|
||||||
Event acquired_sleep_lock_event;
|
Event acquired_sleep_lock_event;
|
||||||
Event pop_from_general_channel_event;
|
Event pop_from_general_channel_event;
|
||||||
Event library_applet_launchable_event;
|
Event library_applet_launchable_event;
|
||||||
|
|
|
@ -87,7 +87,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_, std::shared_
|
||||||
{181, nullptr, "UpgradeLaunchRequiredVersion"},
|
{181, nullptr, "UpgradeLaunchRequiredVersion"},
|
||||||
{190, nullptr, "SendServerMaintenanceOverlayNotification"},
|
{190, nullptr, "SendServerMaintenanceOverlayNotification"},
|
||||||
{200, nullptr, "GetLastApplicationExitReason"},
|
{200, nullptr, "GetLastApplicationExitReason"},
|
||||||
{210, nullptr, "Unknown210"}, //20.0.0+
|
{210, D<&IApplicationFunctions::Unknown210>, "Unknown210"}, //20.0.0+
|
||||||
{220, nullptr, "Unknown220"}, //20.0.0+
|
{220, nullptr, "Unknown220"}, //20.0.0+
|
||||||
{300, nullptr, "CreateMovieWriter"}, //19.0.0+
|
{300, nullptr, "CreateMovieWriter"}, //19.0.0+
|
||||||
{310, nullptr, "Unknown310"}, //20.0.0+
|
{310, nullptr, "Unknown310"}, //20.0.0+
|
||||||
|
@ -481,6 +481,13 @@ Result IApplicationFunctions::GetHealthWarningDisappearedSystemEvent(
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IApplicationFunctions::Unknown210(
|
||||||
|
OutCopyHandle<Kernel::KReadableEvent> out_event) {
|
||||||
|
LOG_DEBUG(Service_AM, "called");
|
||||||
|
*out_event = m_applet->unkown210_event.GetHandle();
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
Result IApplicationFunctions::PrepareForJit() {
|
Result IApplicationFunctions::PrepareForJit() {
|
||||||
LOG_WARNING(Service_AM, "(STUBBED) called");
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,7 @@ private:
|
||||||
Result TryPopFromFriendInvitationStorageChannel(Out<SharedPointer<IStorage>> out_storage);
|
Result TryPopFromFriendInvitationStorageChannel(Out<SharedPointer<IStorage>> out_storage);
|
||||||
Result GetNotificationStorageChannelEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
Result GetNotificationStorageChannelEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
||||||
Result GetHealthWarningDisappearedSystemEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
Result GetHealthWarningDisappearedSystemEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
||||||
|
Result Unknown210(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
||||||
Result PrepareForJit();
|
Result PrepareForJit();
|
||||||
|
|
||||||
const std::shared_ptr<Applet> m_applet;
|
const std::shared_ptr<Applet> m_applet;
|
||||||
|
|
|
@ -174,7 +174,7 @@ ILibraryAppletCreator::ILibraryAppletCreator(Core::System& system_, std::shared_
|
||||||
{0, D<&ILibraryAppletCreator::CreateLibraryApplet>, "CreateLibraryApplet"},
|
{0, D<&ILibraryAppletCreator::CreateLibraryApplet>, "CreateLibraryApplet"},
|
||||||
{1, nullptr, "TerminateAllLibraryApplets"},
|
{1, nullptr, "TerminateAllLibraryApplets"},
|
||||||
{2, nullptr, "AreAnyLibraryAppletsLeft"},
|
{2, nullptr, "AreAnyLibraryAppletsLeft"},
|
||||||
{3, nullptr, "Unknown3"}, //20.0.0+
|
{3, D<&ILibraryAppletCreator::CreateLibraryApplet>, "Unknown3"}, // 20.0.0+
|
||||||
{10, D<&ILibraryAppletCreator::CreateStorage>, "CreateStorage"},
|
{10, D<&ILibraryAppletCreator::CreateStorage>, "CreateStorage"},
|
||||||
{11, D<&ILibraryAppletCreator::CreateTransferMemoryStorage>, "CreateTransferMemoryStorage"},
|
{11, D<&ILibraryAppletCreator::CreateTransferMemoryStorage>, "CreateTransferMemoryStorage"},
|
||||||
{12, D<&ILibraryAppletCreator::CreateHandleStorage>, "CreateHandleStorage"},
|
{12, D<&ILibraryAppletCreator::CreateHandleStorage>, "CreateHandleStorage"},
|
||||||
|
|
|
@ -14,6 +14,7 @@ void LoopProcess(Core::System& system) {
|
||||||
|
|
||||||
server_manager->RegisterNamedService("bsd:s", std::make_shared<BSD>(system, "bsd:s"));
|
server_manager->RegisterNamedService("bsd:s", std::make_shared<BSD>(system, "bsd:s"));
|
||||||
server_manager->RegisterNamedService("bsd:u", std::make_shared<BSD>(system, "bsd:u"));
|
server_manager->RegisterNamedService("bsd:u", std::make_shared<BSD>(system, "bsd:u"));
|
||||||
|
server_manager->RegisterNamedService("bsd:a", std::make_shared<BSD>(system, "bsd:a"));
|
||||||
server_manager->RegisterNamedService("bsdcfg", std::make_shared<BSDCFG>(system));
|
server_manager->RegisterNamedService("bsdcfg", std::make_shared<BSDCFG>(system));
|
||||||
server_manager->RegisterNamedService("nsd:a", std::make_shared<NSD>(system, "nsd:a"));
|
server_manager->RegisterNamedService("nsd:a", std::make_shared<NSD>(system, "nsd:a"));
|
||||||
server_manager->RegisterNamedService("nsd:u", std::make_shared<NSD>(system, "nsd:u"));
|
server_manager->RegisterNamedService("nsd:u", std::make_shared<NSD>(system, "nsd:u"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue