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

Function LoadHomebrewControlData

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

Source from the content-addressed store, hash-verified

51 }
52
53 void LoadHomebrewControlData(const std::string &nro_path, EntryControlData &out_control, loader::TargetInput &target_input) {
54 const auto cache_nacp_path = GetHomebrewCacheNacpPath(nro_path);
55 if(fs::ExistsFile(cache_nacp_path)) {
56 UL_ASSERT_TRUE(fs::ReadFile(cache_nacp_path, &g_TempNacp, sizeof(NacpStruct)));
57 ParseNacpFields(out_control);
58 }
59 }
60
61 void LoadApplicationControlData(const u64 app_id, EntryControlData &out_control) {
62 UL_ASSERT_TRUE(g_ControlEntryLoadFunction != nullptr);

Callers 1

TryLoadNacpMethod · 0.85

Calls 4

GetHomebrewCacheNacpPathFunction · 0.85
ExistsFileFunction · 0.85
ReadFileFunction · 0.85
ParseNacpFieldsFunction · 0.85

Tested by

no test coverage detected