MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / Settings

Method Settings

NetStream/source/menus/menu_settings.cpp:114–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114menu::Settings::Settings()
115{
116 if (s_instance)
117 {
118 SCE_DBG_LOG_ERROR("[Settings] Attempt to create second singleton instance\n");
119 return;
120 }
121
122 menu::GenericMenu *topMenu = menu::GetTopMenu();
123 if (topMenu)
124 {
125 topMenu->DisableInput();
126 }
127
128 AppSettings::InterfaceCallbacks ifCb;
129
130 ifCb.onStartPageTransitionCb = CBOnStartPageTransition;
131 ifCb.onPageActivateCb = CBOnPageActivate;
132 ifCb.onPageDeactivateCb = CBOnPageDeactivate;
133 ifCb.onCheckVisible = CBOnCheckVisible;
134 ifCb.onPreCreateCb = CBOnPreCreate;
135 ifCb.onPostCreateCb = CBOnPostCreate;
136 ifCb.onPressCb = CBOnPress;
137 ifCb.onPressCb2 = CBOnPress2;
138 ifCb.onTermCb = CBOnTerm;
139 ifCb.onGetStringCb = CBOnGetString;
140 ifCb.onGetSurfaceCb = CBOnGetSurface;
141
142 Plugin *appSetPlug = paf::Plugin::Find("app_settings_plugin");
143 const AppSettings::Interface *appSetIf = static_cast<const sce::AppSettings::Interface *>(appSetPlug->GetInterface(1));
144 appSetIf->Show(&ifCb);
145
146 s_instance = this;
147}
148
149void menu::Settings::CBOnStartPageTransition(const char *elementId, int32_t type)
150{

Callers

nothing calls this directly

Calls 1

DisableInputMethod · 0.80

Tested by

no test coverage detected