wut v1.9.1
Wii U Toolchain
Loading...
Searching...
No Matches
QuickStartApplicationSelector.h
Go to the documentation of this file.
1#pragma once
2
3#include <wut.h>
4#include <nn/result.h>
11
12#ifdef __cplusplus
13
14namespace nn::sl
15{
16namespace details
17{
28WUT_CHECK_SIZE(QuickStartApplicationSelectorInternal, 0x1C);
29WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x00, preferentialTitleAccessor);
30WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x04, defaultTitleAccessor);
31WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x08, whiteListAccessor);
32WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x0C, titleListCache);
33WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x10, settingsAccessor);
34WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x14, blackListAccessor);
35WUT_CHECK_OFFSET(QuickStartApplicationSelectorInternal, 0x18, vtable);
36
37extern "C" QuickStartApplicationSelectorInternal *
39extern "C" nn::Result
41extern "C" void
50} // namespace details
51
53{
54public:
56 mPreferentialTitleAccessorFromPtr(nullptr),
57 mDefaultTitleAccessorFromPtr(nullptr),
58 mWhiteListAccessorFromPtr(nullptr),
59 mTitleListCacheFromPtr(nullptr),
60 mSettingAccessorFromPtr(nullptr),
61 mBlackListAccessorFromPtr(nullptr)
62 {
63 if (__ct__Q3_2nn2sl29QuickStartApplicationSelectorFv(&mInstance) != nullptr) {
64 mPreferentialTitleAccessorFromPtr = details::PreferentialTitleAccessorFromPtr(mInstance.preferentialTitleAccessor);
65 mDefaultTitleAccessorFromPtr = details::DefaultTitleAccessorFromPtr(mInstance.defaultTitleAccessor);
66 mWhiteListAccessorFromPtr = details::WhiteListAccessorFromPtr(mInstance.whiteListAccessor);
67 mTitleListCacheFromPtr = TitleListCacheFromPtr(mInstance.titleListCache);
68 mSettingAccessorFromPtr = details::SettingAccessorFromPtr(mInstance.settingsAccessor);
69 mBlackListAccessorFromPtr = details::BlackListAccessorFromPtr(mInstance.blackListAccessor);
70 }
71 }
72
74
77 {
78 return mPreferentialTitleAccessorFromPtr;
79 }
80
83 {
84 return mDefaultTitleAccessorFromPtr;
85 }
86
89 {
90 return mWhiteListAccessorFromPtr;
91 }
92
95 {
96 return mTitleListCacheFromPtr;
97 }
98
101 {
102 return mSettingAccessorFromPtr;
103 }
104
107 {
108 return mBlackListAccessorFromPtr;
109 }
110
112 Select(nn::sl::TitleInfo *titleInfos, int num)
113 {
114 return Select__Q3_2nn2sl29QuickStartApplicationSelectorFPQ3_2nn2sl9TitleInfoi(&mInstance, titleInfos, num);
115 }
116
117 void
119 details::IDefaultTitleAccessorBase &defaultTitleAccessor,
120 details::IWhiteListAccessorBase &whiteListAccessor,
121 details::ITitleListCacheBase &titleListCache,
122 details::ISettingAccessorBase &settingAccessor,
123 details::IBlackListAccessorBase &blackListAccessor)
124 {
125 Initialize__Q3_2nn2sl29QuickStartApplicationSelectorFRQ3_2nn2sl26IPreferentialTitleAccessorRQ3_2nn2sl21IDefaultTitleAccessorRQ3_2nn2sl18IWhiteListAccessorRQ3_2nn2sl14TitleListCacheRQ3_2nn2sl16ISettingAccessorRQ3_2nn2sl18IBlackListAccessor(
126 &mInstance,
127 preferentialTitleAccessor.GetInternal(),
128 defaultTitleAccessor.GetInternal(),
129 whiteListAccessor.GetInternal(),
130 titleListCache.GetInternal(),
131 settingAccessor.GetInternal(),
132 blackListAccessor.GetInternal());
133 mPreferentialTitleAccessorFromPtr = details::PreferentialTitleAccessorFromPtr(preferentialTitleAccessor.GetInternal());
134 mDefaultTitleAccessorFromPtr = details::DefaultTitleAccessorFromPtr(defaultTitleAccessor.GetInternal());
135 mWhiteListAccessorFromPtr = details::WhiteListAccessorFromPtr(whiteListAccessor.GetInternal());
136 mTitleListCacheFromPtr = TitleListCacheFromPtr(titleListCache.GetInternal());
137 mSettingAccessorFromPtr = details::SettingAccessorFromPtr(settingAccessor.GetInternal());
138 mBlackListAccessorFromPtr = details::BlackListAccessorFromPtr(blackListAccessor.GetInternal());
139 }
140
141private:
143 details::PreferentialTitleAccessorFromPtr mPreferentialTitleAccessorFromPtr;
144 details::DefaultTitleAccessorFromPtr mDefaultTitleAccessorFromPtr;
145 details::WhiteListAccessorFromPtr mWhiteListAccessorFromPtr;
146 TitleListCacheFromPtr mTitleListCacheFromPtr;
147 details::SettingAccessorFromPtr mSettingAccessorFromPtr;
148 details::BlackListAccessorFromPtr mBlackListAccessorFromPtr;
149};
150} // namespace nn::sl
151
152#endif
Result value type used by nn libraries.
Definition result.h:70
details::IDefaultTitleAccessorBase & GetDefaultTitleAccessor()
nn::Result Select(nn::sl::TitleInfo *titleInfos, int num)
details::ITitleListCacheBase & GetTitleListCache()
details::IWhiteListAccessorBase & GetWhiteListAccessor()
void Initialize(details::IPreferentialTitleAccessorBase &preferentialTitleAccessor, details::IDefaultTitleAccessorBase &defaultTitleAccessor, details::IWhiteListAccessorBase &whiteListAccessor, details::ITitleListCacheBase &titleListCache, details::ISettingAccessorBase &settingAccessor, details::IBlackListAccessorBase &blackListAccessor)
details::IBlackListAccessorBase & GetBlackListAccessor()
details::IPreferentialTitleAccessorBase & GetPreferentialTitleAccessor()
details::ISettingAccessorBase & GetSettingAccessor()
QuickStartApplicationSelectorInternal * __ct__Q3_2nn2sl29QuickStartApplicationSelectorFv(QuickStartApplicationSelectorInternal *)
nn::Result Select__Q3_2nn2sl29QuickStartApplicationSelectorFPQ3_2nn2sl9TitleInfoi(QuickStartApplicationSelectorInternal *, nn::sl::TitleInfo *, int)
void Initialize__Q3_2nn2sl29QuickStartApplicationSelectorFRQ3_2nn2sl26IPreferentialTitleAccessorRQ3_2nn2sl21IDefaultTitleAccessorRQ3_2nn2sl18IWhiteListAccessorRQ3_2nn2sl14TitleListCacheRQ3_2nn2sl16ISettingAccessorRQ3_2nn2sl18IBlackListAccessor(QuickStartApplicationSelectorInternal *, IPreferentialTitleAccessorInternal *, IDefaultTitleAccessorInternal *, IWhiteListAccessorInternal *, ITitleListCacheInternal *, ISettingAccessorInternal *, details::IBlackListAccessorInternal *)