diff options
| author | 2023-02-19 14:42:12 -0500 | |
|---|---|---|
| committer | 2023-03-01 10:39:49 -0500 | |
| commit | 65be230fdda302b25447f2f09b06e3238bd09e79 (patch) | |
| tree | 68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/acc | |
| parent | sm:: remove unused member (diff) | |
| download | yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip | |
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/acc')
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 68 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc.h | 38 | ||||
| -rw-r--r-- | src/core/hle/service/acc/async_context.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/acc/async_context.h | 8 |
4 files changed, 62 insertions, 62 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index c3e5c4462..ddc3a6dbe 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | #include "core/core_timing.h" | 15 | #include "core/core_timing.h" |
| 16 | #include "core/file_sys/control_metadata.h" | 16 | #include "core/file_sys/control_metadata.h" |
| 17 | #include "core/file_sys/patch_manager.h" | 17 | #include "core/file_sys/patch_manager.h" |
| 18 | #include "core/hle/ipc_helpers.h" | ||
| 19 | #include "core/hle/service/acc/acc.h" | 18 | #include "core/hle/service/acc/acc.h" |
| 20 | #include "core/hle/service/acc/acc_aa.h" | 19 | #include "core/hle/service/acc/acc_aa.h" |
| 21 | #include "core/hle/service/acc/acc_su.h" | 20 | #include "core/hle/service/acc/acc_su.h" |
| @@ -25,6 +24,7 @@ | |||
| 25 | #include "core/hle/service/acc/errors.h" | 24 | #include "core/hle/service/acc/errors.h" |
| 26 | #include "core/hle/service/acc/profile_manager.h" | 25 | #include "core/hle/service/acc/profile_manager.h" |
| 27 | #include "core/hle/service/glue/glue_manager.h" | 26 | #include "core/hle/service/glue/glue_manager.h" |
| 27 | #include "core/hle/service/ipc_helpers.h" | ||
| 28 | #include "core/hle/service/server_manager.h" | 28 | #include "core/hle/service/server_manager.h" |
| 29 | #include "core/loader/loader.h" | 29 | #include "core/loader/loader.h" |
| 30 | 30 | ||
| @@ -295,7 +295,7 @@ public: | |||
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | protected: | 297 | protected: |
| 298 | void Get(Kernel::HLERequestContext& ctx) { | 298 | void Get(HLERequestContext& ctx) { |
| 299 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); | 299 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); |
| 300 | ProfileBase profile_base{}; | 300 | ProfileBase profile_base{}; |
| 301 | UserData data{}; | 301 | UserData data{}; |
| @@ -312,7 +312,7 @@ protected: | |||
| 312 | } | 312 | } |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | void GetBase(Kernel::HLERequestContext& ctx) { | 315 | void GetBase(HLERequestContext& ctx) { |
| 316 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); | 316 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); |
| 317 | ProfileBase profile_base{}; | 317 | ProfileBase profile_base{}; |
| 318 | if (profile_manager.GetProfileBase(user_id, profile_base)) { | 318 | if (profile_manager.GetProfileBase(user_id, profile_base)) { |
| @@ -326,7 +326,7 @@ protected: | |||
| 326 | } | 326 | } |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void LoadImage(Kernel::HLERequestContext& ctx) { | 329 | void LoadImage(HLERequestContext& ctx) { |
| 330 | LOG_DEBUG(Service_ACC, "called"); | 330 | LOG_DEBUG(Service_ACC, "called"); |
| 331 | 331 | ||
| 332 | IPC::ResponseBuilder rb{ctx, 3}; | 332 | IPC::ResponseBuilder rb{ctx, 3}; |
| @@ -353,7 +353,7 @@ protected: | |||
| 353 | rb.Push<u32>(size); | 353 | rb.Push<u32>(size); |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | void GetImageSize(Kernel::HLERequestContext& ctx) { | 356 | void GetImageSize(HLERequestContext& ctx) { |
| 357 | LOG_DEBUG(Service_ACC, "called"); | 357 | LOG_DEBUG(Service_ACC, "called"); |
| 358 | IPC::ResponseBuilder rb{ctx, 3}; | 358 | IPC::ResponseBuilder rb{ctx, 3}; |
| 359 | rb.Push(ResultSuccess); | 359 | rb.Push(ResultSuccess); |
| @@ -370,7 +370,7 @@ protected: | |||
| 370 | } | 370 | } |
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | void Store(Kernel::HLERequestContext& ctx) { | 373 | void Store(HLERequestContext& ctx) { |
| 374 | IPC::RequestParser rp{ctx}; | 374 | IPC::RequestParser rp{ctx}; |
| 375 | const auto base = rp.PopRaw<ProfileBase>(); | 375 | const auto base = rp.PopRaw<ProfileBase>(); |
| 376 | 376 | ||
| @@ -402,7 +402,7 @@ protected: | |||
| 402 | rb.Push(ResultSuccess); | 402 | rb.Push(ResultSuccess); |
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | void StoreWithImage(Kernel::HLERequestContext& ctx) { | 405 | void StoreWithImage(HLERequestContext& ctx) { |
| 406 | IPC::RequestParser rp{ctx}; | 406 | IPC::RequestParser rp{ctx}; |
| 407 | const auto base = rp.PopRaw<ProfileBase>(); | 407 | const auto base = rp.PopRaw<ProfileBase>(); |
| 408 | 408 | ||
| @@ -499,7 +499,7 @@ public: | |||
| 499 | } | 499 | } |
| 500 | ~EnsureTokenIdCacheAsyncInterface() = default; | 500 | ~EnsureTokenIdCacheAsyncInterface() = default; |
| 501 | 501 | ||
| 502 | void LoadIdTokenCache(Kernel::HLERequestContext& ctx) { | 502 | void LoadIdTokenCache(HLERequestContext& ctx) { |
| 503 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | 503 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 504 | 504 | ||
| 505 | IPC::ResponseBuilder rb{ctx, 2}; | 505 | IPC::ResponseBuilder rb{ctx, 2}; |
| @@ -542,14 +542,14 @@ public: | |||
| 542 | } | 542 | } |
| 543 | 543 | ||
| 544 | private: | 544 | private: |
| 545 | void CheckAvailability(Kernel::HLERequestContext& ctx) { | 545 | void CheckAvailability(HLERequestContext& ctx) { |
| 546 | LOG_DEBUG(Service_ACC, "(STUBBED) called"); | 546 | LOG_DEBUG(Service_ACC, "(STUBBED) called"); |
| 547 | IPC::ResponseBuilder rb{ctx, 3}; | 547 | IPC::ResponseBuilder rb{ctx, 3}; |
| 548 | rb.Push(ResultSuccess); | 548 | rb.Push(ResultSuccess); |
| 549 | rb.Push(false); // TODO: Check when this is supposed to return true and when not | 549 | rb.Push(false); // TODO: Check when this is supposed to return true and when not |
| 550 | } | 550 | } |
| 551 | 551 | ||
| 552 | void GetAccountId(Kernel::HLERequestContext& ctx) { | 552 | void GetAccountId(HLERequestContext& ctx) { |
| 553 | LOG_DEBUG(Service_ACC, "called"); | 553 | LOG_DEBUG(Service_ACC, "called"); |
| 554 | 554 | ||
| 555 | IPC::ResponseBuilder rb{ctx, 4}; | 555 | IPC::ResponseBuilder rb{ctx, 4}; |
| @@ -557,7 +557,7 @@ private: | |||
| 557 | rb.PushRaw<u64>(profile_manager->GetLastOpenedUser().Hash()); | 557 | rb.PushRaw<u64>(profile_manager->GetLastOpenedUser().Hash()); |
| 558 | } | 558 | } |
| 559 | 559 | ||
| 560 | void EnsureIdTokenCacheAsync(Kernel::HLERequestContext& ctx) { | 560 | void EnsureIdTokenCacheAsync(HLERequestContext& ctx) { |
| 561 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | 561 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 562 | 562 | ||
| 563 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 563 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| @@ -565,13 +565,13 @@ private: | |||
| 565 | rb.PushIpcInterface(ensure_token_id); | 565 | rb.PushIpcInterface(ensure_token_id); |
| 566 | } | 566 | } |
| 567 | 567 | ||
| 568 | void LoadIdTokenCache(Kernel::HLERequestContext& ctx) { | 568 | void LoadIdTokenCache(HLERequestContext& ctx) { |
| 569 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | 569 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 570 | 570 | ||
| 571 | ensure_token_id->LoadIdTokenCache(ctx); | 571 | ensure_token_id->LoadIdTokenCache(ctx); |
| 572 | } | 572 | } |
| 573 | 573 | ||
| 574 | void GetNintendoAccountUserResourceCacheForApplication(Kernel::HLERequestContext& ctx) { | 574 | void GetNintendoAccountUserResourceCacheForApplication(HLERequestContext& ctx) { |
| 575 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | 575 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 576 | 576 | ||
| 577 | std::vector<u8> nas_user_base_for_application(0x68); | 577 | std::vector<u8> nas_user_base_for_application(0x68); |
| @@ -587,7 +587,7 @@ private: | |||
| 587 | rb.PushRaw<u64>(profile_manager->GetLastOpenedUser().Hash()); | 587 | rb.PushRaw<u64>(profile_manager->GetLastOpenedUser().Hash()); |
| 588 | } | 588 | } |
| 589 | 589 | ||
| 590 | void StoreOpenContext(Kernel::HLERequestContext& ctx) { | 590 | void StoreOpenContext(HLERequestContext& ctx) { |
| 591 | LOG_DEBUG(Service_ACC, "called"); | 591 | LOG_DEBUG(Service_ACC, "called"); |
| 592 | 592 | ||
| 593 | profile_manager->StoreOpenedUsers(); | 593 | profile_manager->StoreOpenedUsers(); |
| @@ -689,14 +689,14 @@ public: | |||
| 689 | } | 689 | } |
| 690 | }; | 690 | }; |
| 691 | 691 | ||
| 692 | void Module::Interface::GetUserCount(Kernel::HLERequestContext& ctx) { | 692 | void Module::Interface::GetUserCount(HLERequestContext& ctx) { |
| 693 | LOG_DEBUG(Service_ACC, "called"); | 693 | LOG_DEBUG(Service_ACC, "called"); |
| 694 | IPC::ResponseBuilder rb{ctx, 3}; | 694 | IPC::ResponseBuilder rb{ctx, 3}; |
| 695 | rb.Push(ResultSuccess); | 695 | rb.Push(ResultSuccess); |
| 696 | rb.Push<u32>(static_cast<u32>(profile_manager->GetUserCount())); | 696 | rb.Push<u32>(static_cast<u32>(profile_manager->GetUserCount())); |
| 697 | } | 697 | } |
| 698 | 698 | ||
| 699 | void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) { | 699 | void Module::Interface::GetUserExistence(HLERequestContext& ctx) { |
| 700 | IPC::RequestParser rp{ctx}; | 700 | IPC::RequestParser rp{ctx}; |
| 701 | Common::UUID user_id = rp.PopRaw<Common::UUID>(); | 701 | Common::UUID user_id = rp.PopRaw<Common::UUID>(); |
| 702 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); | 702 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); |
| @@ -706,28 +706,28 @@ void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) { | |||
| 706 | rb.Push(profile_manager->UserExists(user_id)); | 706 | rb.Push(profile_manager->UserExists(user_id)); |
| 707 | } | 707 | } |
| 708 | 708 | ||
| 709 | void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) { | 709 | void Module::Interface::ListAllUsers(HLERequestContext& ctx) { |
| 710 | LOG_DEBUG(Service_ACC, "called"); | 710 | LOG_DEBUG(Service_ACC, "called"); |
| 711 | ctx.WriteBuffer(profile_manager->GetAllUsers()); | 711 | ctx.WriteBuffer(profile_manager->GetAllUsers()); |
| 712 | IPC::ResponseBuilder rb{ctx, 2}; | 712 | IPC::ResponseBuilder rb{ctx, 2}; |
| 713 | rb.Push(ResultSuccess); | 713 | rb.Push(ResultSuccess); |
| 714 | } | 714 | } |
| 715 | 715 | ||
| 716 | void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) { | 716 | void Module::Interface::ListOpenUsers(HLERequestContext& ctx) { |
| 717 | LOG_DEBUG(Service_ACC, "called"); | 717 | LOG_DEBUG(Service_ACC, "called"); |
| 718 | ctx.WriteBuffer(profile_manager->GetOpenUsers()); | 718 | ctx.WriteBuffer(profile_manager->GetOpenUsers()); |
| 719 | IPC::ResponseBuilder rb{ctx, 2}; | 719 | IPC::ResponseBuilder rb{ctx, 2}; |
| 720 | rb.Push(ResultSuccess); | 720 | rb.Push(ResultSuccess); |
| 721 | } | 721 | } |
| 722 | 722 | ||
| 723 | void Module::Interface::GetLastOpenedUser(Kernel::HLERequestContext& ctx) { | 723 | void Module::Interface::GetLastOpenedUser(HLERequestContext& ctx) { |
| 724 | LOG_DEBUG(Service_ACC, "called"); | 724 | LOG_DEBUG(Service_ACC, "called"); |
| 725 | IPC::ResponseBuilder rb{ctx, 6}; | 725 | IPC::ResponseBuilder rb{ctx, 6}; |
| 726 | rb.Push(ResultSuccess); | 726 | rb.Push(ResultSuccess); |
| 727 | rb.PushRaw<Common::UUID>(profile_manager->GetLastOpenedUser()); | 727 | rb.PushRaw<Common::UUID>(profile_manager->GetLastOpenedUser()); |
| 728 | } | 728 | } |
| 729 | 729 | ||
| 730 | void Module::Interface::GetProfile(Kernel::HLERequestContext& ctx) { | 730 | void Module::Interface::GetProfile(HLERequestContext& ctx) { |
| 731 | IPC::RequestParser rp{ctx}; | 731 | IPC::RequestParser rp{ctx}; |
| 732 | Common::UUID user_id = rp.PopRaw<Common::UUID>(); | 732 | Common::UUID user_id = rp.PopRaw<Common::UUID>(); |
| 733 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); | 733 | LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString()); |
| @@ -737,20 +737,20 @@ void Module::Interface::GetProfile(Kernel::HLERequestContext& ctx) { | |||
| 737 | rb.PushIpcInterface<IProfile>(system, user_id, *profile_manager); | 737 | rb.PushIpcInterface<IProfile>(system, user_id, *profile_manager); |
| 738 | } | 738 | } |
| 739 | 739 | ||
| 740 | void Module::Interface::IsUserRegistrationRequestPermitted(Kernel::HLERequestContext& ctx) { | 740 | void Module::Interface::IsUserRegistrationRequestPermitted(HLERequestContext& ctx) { |
| 741 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | 741 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 742 | IPC::ResponseBuilder rb{ctx, 3}; | 742 | IPC::ResponseBuilder rb{ctx, 3}; |
| 743 | rb.Push(ResultSuccess); | 743 | rb.Push(ResultSuccess); |
| 744 | rb.Push(profile_manager->CanSystemRegisterUser()); | 744 | rb.Push(profile_manager->CanSystemRegisterUser()); |
| 745 | } | 745 | } |
| 746 | 746 | ||
| 747 | void Module::Interface::InitializeApplicationInfo(Kernel::HLERequestContext& ctx) { | 747 | void Module::Interface::InitializeApplicationInfo(HLERequestContext& ctx) { |
| 748 | LOG_DEBUG(Service_ACC, "called"); | 748 | LOG_DEBUG(Service_ACC, "called"); |
| 749 | IPC::ResponseBuilder rb{ctx, 2}; | 749 | IPC::ResponseBuilder rb{ctx, 2}; |
| 750 | rb.Push(InitializeApplicationInfoBase()); | 750 | rb.Push(InitializeApplicationInfoBase()); |
| 751 | } | 751 | } |
| 752 | 752 | ||
| 753 | void Module::Interface::InitializeApplicationInfoRestricted(Kernel::HLERequestContext& ctx) { | 753 | void Module::Interface::InitializeApplicationInfoRestricted(HLERequestContext& ctx) { |
| 754 | LOG_WARNING(Service_ACC, "(Partial implementation) called"); | 754 | LOG_WARNING(Service_ACC, "(Partial implementation) called"); |
| 755 | 755 | ||
| 756 | // TODO(ogniK): We require checking if the user actually owns the title and what not. As of | 756 | // TODO(ogniK): We require checking if the user actually owns the title and what not. As of |
| @@ -800,14 +800,14 @@ Result Module::Interface::InitializeApplicationInfoBase() { | |||
| 800 | return ResultSuccess; | 800 | return ResultSuccess; |
| 801 | } | 801 | } |
| 802 | 802 | ||
| 803 | void Module::Interface::GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx) { | 803 | void Module::Interface::GetBaasAccountManagerForApplication(HLERequestContext& ctx) { |
| 804 | LOG_DEBUG(Service_ACC, "called"); | 804 | LOG_DEBUG(Service_ACC, "called"); |
| 805 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 805 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 806 | rb.Push(ResultSuccess); | 806 | rb.Push(ResultSuccess); |
| 807 | rb.PushIpcInterface<IManagerForApplication>(system, profile_manager); | 807 | rb.PushIpcInterface<IManagerForApplication>(system, profile_manager); |
| 808 | } | 808 | } |
| 809 | 809 | ||
| 810 | void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx) { | 810 | void Module::Interface::IsUserAccountSwitchLocked(HLERequestContext& ctx) { |
| 811 | LOG_DEBUG(Service_ACC, "called"); | 811 | LOG_DEBUG(Service_ACC, "called"); |
| 812 | FileSys::NACP nacp; | 812 | FileSys::NACP nacp; |
| 813 | const auto res = system.GetAppLoader().ReadControlData(nacp); | 813 | const auto res = system.GetAppLoader().ReadControlData(nacp); |
| @@ -834,14 +834,14 @@ void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx | |||
| 834 | rb.Push(is_locked); | 834 | rb.Push(is_locked); |
| 835 | } | 835 | } |
| 836 | 836 | ||
| 837 | void Module::Interface::InitializeApplicationInfoV2(Kernel::HLERequestContext& ctx) { | 837 | void Module::Interface::InitializeApplicationInfoV2(HLERequestContext& ctx) { |
| 838 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | 838 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 839 | 839 | ||
| 840 | IPC::ResponseBuilder rb{ctx, 2}; | 840 | IPC::ResponseBuilder rb{ctx, 2}; |
| 841 | rb.Push(ResultSuccess); | 841 | rb.Push(ResultSuccess); |
| 842 | } | 842 | } |
| 843 | 843 | ||
| 844 | void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) { | 844 | void Module::Interface::GetProfileEditor(HLERequestContext& ctx) { |
| 845 | IPC::RequestParser rp{ctx}; | 845 | IPC::RequestParser rp{ctx}; |
| 846 | Common::UUID user_id = rp.PopRaw<Common::UUID>(); | 846 | Common::UUID user_id = rp.PopRaw<Common::UUID>(); |
| 847 | 847 | ||
| @@ -852,7 +852,7 @@ void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) { | |||
| 852 | rb.PushIpcInterface<IProfileEditor>(system, user_id, *profile_manager); | 852 | rb.PushIpcInterface<IProfileEditor>(system, user_id, *profile_manager); |
| 853 | } | 853 | } |
| 854 | 854 | ||
| 855 | void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) { | 855 | void Module::Interface::ListQualifiedUsers(HLERequestContext& ctx) { |
| 856 | LOG_DEBUG(Service_ACC, "called"); | 856 | LOG_DEBUG(Service_ACC, "called"); |
| 857 | 857 | ||
| 858 | // All users should be qualified. We don't actually have parental control or anything to do with | 858 | // All users should be qualified. We don't actually have parental control or anything to do with |
| @@ -863,7 +863,7 @@ void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) { | |||
| 863 | rb.Push(ResultSuccess); | 863 | rb.Push(ResultSuccess); |
| 864 | } | 864 | } |
| 865 | 865 | ||
| 866 | void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx) { | 866 | void Module::Interface::ListOpenContextStoredUsers(HLERequestContext& ctx) { |
| 867 | LOG_DEBUG(Service_ACC, "called"); | 867 | LOG_DEBUG(Service_ACC, "called"); |
| 868 | 868 | ||
| 869 | ctx.WriteBuffer(profile_manager->GetStoredOpenedUsers()); | 869 | ctx.WriteBuffer(profile_manager->GetStoredOpenedUsers()); |
| @@ -871,7 +871,7 @@ void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ct | |||
| 871 | rb.Push(ResultSuccess); | 871 | rb.Push(ResultSuccess); |
| 872 | } | 872 | } |
| 873 | 873 | ||
| 874 | void Module::Interface::StoreSaveDataThumbnailApplication(Kernel::HLERequestContext& ctx) { | 874 | void Module::Interface::StoreSaveDataThumbnailApplication(HLERequestContext& ctx) { |
| 875 | IPC::RequestParser rp{ctx}; | 875 | IPC::RequestParser rp{ctx}; |
| 876 | const auto uuid = rp.PopRaw<Common::UUID>(); | 876 | const auto uuid = rp.PopRaw<Common::UUID>(); |
| 877 | 877 | ||
| @@ -884,7 +884,7 @@ void Module::Interface::StoreSaveDataThumbnailApplication(Kernel::HLERequestCont | |||
| 884 | StoreSaveDataThumbnail(ctx, uuid, tid); | 884 | StoreSaveDataThumbnail(ctx, uuid, tid); |
| 885 | } | 885 | } |
| 886 | 886 | ||
| 887 | void Module::Interface::StoreSaveDataThumbnailSystem(Kernel::HLERequestContext& ctx) { | 887 | void Module::Interface::StoreSaveDataThumbnailSystem(HLERequestContext& ctx) { |
| 888 | IPC::RequestParser rp{ctx}; | 888 | IPC::RequestParser rp{ctx}; |
| 889 | const auto uuid = rp.PopRaw<Common::UUID>(); | 889 | const auto uuid = rp.PopRaw<Common::UUID>(); |
| 890 | const auto tid = rp.Pop<u64_le>(); | 890 | const auto tid = rp.Pop<u64_le>(); |
| @@ -893,8 +893,8 @@ void Module::Interface::StoreSaveDataThumbnailSystem(Kernel::HLERequestContext& | |||
| 893 | StoreSaveDataThumbnail(ctx, uuid, tid); | 893 | StoreSaveDataThumbnail(ctx, uuid, tid); |
| 894 | } | 894 | } |
| 895 | 895 | ||
| 896 | void Module::Interface::StoreSaveDataThumbnail(Kernel::HLERequestContext& ctx, | 896 | void Module::Interface::StoreSaveDataThumbnail(HLERequestContext& ctx, const Common::UUID& uuid, |
| 897 | const Common::UUID& uuid, const u64 tid) { | 897 | const u64 tid) { |
| 898 | IPC::ResponseBuilder rb{ctx, 2}; | 898 | IPC::ResponseBuilder rb{ctx, 2}; |
| 899 | 899 | ||
| 900 | if (tid == 0) { | 900 | if (tid == 0) { |
| @@ -920,7 +920,7 @@ void Module::Interface::StoreSaveDataThumbnail(Kernel::HLERequestContext& ctx, | |||
| 920 | rb.Push(ResultSuccess); | 920 | rb.Push(ResultSuccess); |
| 921 | } | 921 | } |
| 922 | 922 | ||
| 923 | void Module::Interface::TrySelectUserWithoutInteraction(Kernel::HLERequestContext& ctx) { | 923 | void Module::Interface::TrySelectUserWithoutInteraction(HLERequestContext& ctx) { |
| 924 | LOG_DEBUG(Service_ACC, "called"); | 924 | LOG_DEBUG(Service_ACC, "called"); |
| 925 | // A u8 is passed into this function which we can safely ignore. It's to determine if we have | 925 | // A u8 is passed into this function which we can safely ignore. It's to determine if we have |
| 926 | // access to use the network or not by the looks of it | 926 | // access to use the network or not by the looks of it |
diff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.h index a2fdafd82..6b4735c2f 100644 --- a/src/core/hle/service/acc/acc.h +++ b/src/core/hle/service/acc/acc.h | |||
| @@ -20,28 +20,28 @@ public: | |||
| 20 | const char* name); | 20 | const char* name); |
| 21 | ~Interface() override; | 21 | ~Interface() override; |
| 22 | 22 | ||
| 23 | void GetUserCount(Kernel::HLERequestContext& ctx); | 23 | void GetUserCount(HLERequestContext& ctx); |
| 24 | void GetUserExistence(Kernel::HLERequestContext& ctx); | 24 | void GetUserExistence(HLERequestContext& ctx); |
| 25 | void ListAllUsers(Kernel::HLERequestContext& ctx); | 25 | void ListAllUsers(HLERequestContext& ctx); |
| 26 | void ListOpenUsers(Kernel::HLERequestContext& ctx); | 26 | void ListOpenUsers(HLERequestContext& ctx); |
| 27 | void GetLastOpenedUser(Kernel::HLERequestContext& ctx); | 27 | void GetLastOpenedUser(HLERequestContext& ctx); |
| 28 | void GetProfile(Kernel::HLERequestContext& ctx); | 28 | void GetProfile(HLERequestContext& ctx); |
| 29 | void InitializeApplicationInfo(Kernel::HLERequestContext& ctx); | 29 | void InitializeApplicationInfo(HLERequestContext& ctx); |
| 30 | void InitializeApplicationInfoRestricted(Kernel::HLERequestContext& ctx); | 30 | void InitializeApplicationInfoRestricted(HLERequestContext& ctx); |
| 31 | void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx); | 31 | void GetBaasAccountManagerForApplication(HLERequestContext& ctx); |
| 32 | void IsUserRegistrationRequestPermitted(Kernel::HLERequestContext& ctx); | 32 | void IsUserRegistrationRequestPermitted(HLERequestContext& ctx); |
| 33 | void TrySelectUserWithoutInteraction(Kernel::HLERequestContext& ctx); | 33 | void TrySelectUserWithoutInteraction(HLERequestContext& ctx); |
| 34 | void IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx); | 34 | void IsUserAccountSwitchLocked(HLERequestContext& ctx); |
| 35 | void InitializeApplicationInfoV2(Kernel::HLERequestContext& ctx); | 35 | void InitializeApplicationInfoV2(HLERequestContext& ctx); |
| 36 | void GetProfileEditor(Kernel::HLERequestContext& ctx); | 36 | void GetProfileEditor(HLERequestContext& ctx); |
| 37 | void ListQualifiedUsers(Kernel::HLERequestContext& ctx); | 37 | void ListQualifiedUsers(HLERequestContext& ctx); |
| 38 | void ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx); | 38 | void ListOpenContextStoredUsers(HLERequestContext& ctx); |
| 39 | void StoreSaveDataThumbnailApplication(Kernel::HLERequestContext& ctx); | 39 | void StoreSaveDataThumbnailApplication(HLERequestContext& ctx); |
| 40 | void StoreSaveDataThumbnailSystem(Kernel::HLERequestContext& ctx); | 40 | void StoreSaveDataThumbnailSystem(HLERequestContext& ctx); |
| 41 | 41 | ||
| 42 | private: | 42 | private: |
| 43 | Result InitializeApplicationInfoBase(); | 43 | Result InitializeApplicationInfoBase(); |
| 44 | void StoreSaveDataThumbnail(Kernel::HLERequestContext& ctx, const Common::UUID& uuid, | 44 | void StoreSaveDataThumbnail(HLERequestContext& ctx, const Common::UUID& uuid, |
| 45 | const u64 tid); | 45 | const u64 tid); |
| 46 | 46 | ||
| 47 | enum class ApplicationType : u32_le { | 47 | enum class ApplicationType : u32_le { |
diff --git a/src/core/hle/service/acc/async_context.cpp b/src/core/hle/service/acc/async_context.cpp index 713689d8f..c9e0af90c 100644 --- a/src/core/hle/service/acc/async_context.cpp +++ b/src/core/hle/service/acc/async_context.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/hle/ipc_helpers.h" | ||
| 6 | #include "core/hle/kernel/k_event.h" | 5 | #include "core/hle/kernel/k_event.h" |
| 7 | #include "core/hle/service/acc/async_context.h" | 6 | #include "core/hle/service/acc/async_context.h" |
| 7 | #include "core/hle/service/ipc_helpers.h" | ||
| 8 | 8 | ||
| 9 | namespace Service::Account { | 9 | namespace Service::Account { |
| 10 | IAsyncContext::IAsyncContext(Core::System& system_) | 10 | IAsyncContext::IAsyncContext(Core::System& system_) |
| @@ -27,7 +27,7 @@ IAsyncContext::~IAsyncContext() { | |||
| 27 | service_context.CloseEvent(completion_event); | 27 | service_context.CloseEvent(completion_event); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | void IAsyncContext::GetSystemEvent(Kernel::HLERequestContext& ctx) { | 30 | void IAsyncContext::GetSystemEvent(HLERequestContext& ctx) { |
| 31 | LOG_DEBUG(Service_ACC, "called"); | 31 | LOG_DEBUG(Service_ACC, "called"); |
| 32 | 32 | ||
| 33 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 33 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| @@ -35,7 +35,7 @@ void IAsyncContext::GetSystemEvent(Kernel::HLERequestContext& ctx) { | |||
| 35 | rb.PushCopyObjects(completion_event->GetReadableEvent()); | 35 | rb.PushCopyObjects(completion_event->GetReadableEvent()); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | void IAsyncContext::Cancel(Kernel::HLERequestContext& ctx) { | 38 | void IAsyncContext::Cancel(HLERequestContext& ctx) { |
| 39 | LOG_DEBUG(Service_ACC, "called"); | 39 | LOG_DEBUG(Service_ACC, "called"); |
| 40 | 40 | ||
| 41 | Cancel(); | 41 | Cancel(); |
| @@ -45,7 +45,7 @@ void IAsyncContext::Cancel(Kernel::HLERequestContext& ctx) { | |||
| 45 | rb.Push(ResultSuccess); | 45 | rb.Push(ResultSuccess); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void IAsyncContext::HasDone(Kernel::HLERequestContext& ctx) { | 48 | void IAsyncContext::HasDone(HLERequestContext& ctx) { |
| 49 | LOG_DEBUG(Service_ACC, "called"); | 49 | LOG_DEBUG(Service_ACC, "called"); |
| 50 | 50 | ||
| 51 | is_complete.store(IsComplete()); | 51 | is_complete.store(IsComplete()); |
| @@ -55,7 +55,7 @@ void IAsyncContext::HasDone(Kernel::HLERequestContext& ctx) { | |||
| 55 | rb.Push(is_complete.load()); | 55 | rb.Push(is_complete.load()); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | void IAsyncContext::GetResult(Kernel::HLERequestContext& ctx) { | 58 | void IAsyncContext::GetResult(HLERequestContext& ctx) { |
| 59 | LOG_DEBUG(Service_ACC, "called"); | 59 | LOG_DEBUG(Service_ACC, "called"); |
| 60 | 60 | ||
| 61 | IPC::ResponseBuilder rb{ctx, 3}; | 61 | IPC::ResponseBuilder rb{ctx, 3}; |
diff --git a/src/core/hle/service/acc/async_context.h b/src/core/hle/service/acc/async_context.h index 26332d241..d7bffc055 100644 --- a/src/core/hle/service/acc/async_context.h +++ b/src/core/hle/service/acc/async_context.h | |||
| @@ -18,10 +18,10 @@ public: | |||
| 18 | explicit IAsyncContext(Core::System& system_); | 18 | explicit IAsyncContext(Core::System& system_); |
| 19 | ~IAsyncContext() override; | 19 | ~IAsyncContext() override; |
| 20 | 20 | ||
| 21 | void GetSystemEvent(Kernel::HLERequestContext& ctx); | 21 | void GetSystemEvent(HLERequestContext& ctx); |
| 22 | void Cancel(Kernel::HLERequestContext& ctx); | 22 | void Cancel(HLERequestContext& ctx); |
| 23 | void HasDone(Kernel::HLERequestContext& ctx); | 23 | void HasDone(HLERequestContext& ctx); |
| 24 | void GetResult(Kernel::HLERequestContext& ctx); | 24 | void GetResult(HLERequestContext& ctx); |
| 25 | 25 | ||
| 26 | protected: | 26 | protected: |
| 27 | virtual bool IsComplete() const = 0; | 27 | virtual bool IsComplete() const = 0; |