| 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()) { |