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

Function GetHbloaderSetting

projects/uLoader/source/main.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15 template<typename T>
16 inline Result GetHbloaderSetting(const char *key, T &out_value) {
17 u64 setting_size;
18 UL_RC_TRY(setsysGetSettingsItemValue(HbloaderSettingsSectionName, key, std::addressof(out_value), sizeof(out_value), &setting_size));
19
20 if(setting_size != sizeof(out_value)) {
21 return MAKERESULT(Module_Libnx, LibnxError_BadInput);
22 }
23
24 return ul::ResultSuccess;
25 }
26
27 constexpr size_t HeapSize = 64_KB;
28 u8 g_Heap[HeapSize] = {};

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected