MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / LoadApplicationControlData

Function LoadApplicationControlData

libs/uCommon/source/ul/menu/menu_Entries.cpp:61–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void LoadApplicationControlData(const u64 app_id, EntryControlData &out_control) {
62 UL_ASSERT_TRUE(g_ControlEntryLoadFunction != nullptr);
63
64 std::string name;
65 std::string author;
66 std::string version;
67 if(g_ControlEntryLoadFunction(app_id, name, author, version)) {
68 if(!out_control.custom_name) {
69 out_control.name = name;
70 }
71 if(!out_control.custom_author) {
72 out_control.author = author;
73 }
74 if(!out_control.custom_version) {
75 out_control.version = version;
76 }
77 }
78 }
79
80 inline void EnsureApplicationRecordsAndViews(const bool reload = false) {
81 if(reload || g_ApplicationRecords.empty()) {

Callers 1

TryLoadNacpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected